	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar5008_hw_init_rate_txpower    ## -- Begin function ar5008_hw_init_rate_txpower
	.p2align	4, 0x90
_ar5008_hw_init_rate_txpower:           ## @ar5008_hw_init_rate_txpower
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rdx, %rdi
	callq	_IS_CHAN_5GHZ
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_AR5008_11NA_OFDM_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ar5008_hw_init_txpower_ofdm
	movq	%r13, %rdi
	callq	_IS_CHAN_HT20
	movq	_AR5008_11NA_HT_DS_SHIFT@GOTPCREL(%rip), %r14
	movq	_AR5008_11NA_HT_SS_SHIFT@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_5
LBB0_4:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ar5008_hw_init_txpower_cck
	movq	_AR5008_11NG_OFDM_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ar5008_hw_init_txpower_ofdm
	movq	%r13, %rdi
	callq	_IS_CHAN_HT20
	movq	_AR5008_11NG_HT_DS_SHIFT@GOTPCREL(%rip), %r14
	movq	_AR5008_11NG_HT_SS_SHIFT@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_3
LBB0_5:
	movq	%r13, %rdi
	callq	_IS_CHAN_HT40
	testq	%rax, %rax
	je	LBB0_6
LBB0_3:
	movl	(%rbx), %ebx
	movl	(%r14), %r14d
	movq	%r13, %rdi
	callq	_IS_CHAN_HT40
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	movq	%rax, %r8
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ar5008_hw_init_txpower_ht      ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5008_11NA_OFDM_SHIFT,4,2     ## @AR5008_11NA_OFDM_SHIFT
	.comm	_AR5008_11NA_HT_SS_SHIFT,4,2    ## @AR5008_11NA_HT_SS_SHIFT
	.comm	_AR5008_11NA_HT_DS_SHIFT,4,2    ## @AR5008_11NA_HT_DS_SHIFT
	.comm	_AR5008_11NG_OFDM_SHIFT,4,2     ## @AR5008_11NG_OFDM_SHIFT
	.comm	_AR5008_11NG_HT_SS_SHIFT,4,2    ## @AR5008_11NG_HT_SS_SHIFT
	.comm	_AR5008_11NG_HT_DS_SHIFT,4,2    ## @AR5008_11NG_HT_DS_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar5008_hw_init_rate_txpower    ; -- Begin function ar5008_hw_init_rate_txpower
	.p2align	2
_ar5008_hw_init_rate_txpower:           ; @ar5008_hw_init_rate_txpower
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	bl	_IS_CHAN_5GHZ
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _AR5008_11NA_OFDM_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR5008_11NA_OFDM_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_ar5008_hw_init_txpower_ofdm
	mov	x0, x22
	bl	_IS_CHAN_HT20
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x22
	bl	_IS_CHAN_HT40
	cbz	x0, LBB0_8
LBB0_3:
Lloh3:
	adrp	x8, _AR5008_11NA_HT_DS_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR5008_11NA_HT_DS_SHIFT@GOTPAGEOFF]
Lloh5:
	adrp	x9, _AR5008_11NA_HT_SS_SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AR5008_11NA_HT_SS_SHIFT@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	mov	x0, x21
	mov	x1, x20
	bl	_ar5008_hw_init_txpower_cck
Lloh7:
	adrp	x8, _AR5008_11NG_OFDM_SHIFT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AR5008_11NG_OFDM_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_ar5008_hw_init_txpower_ofdm
	mov	x0, x22
	bl	_IS_CHAN_HT20
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x22
	bl	_IS_CHAN_HT40
	cbz	x0, LBB0_8
LBB0_6:
Lloh10:
	adrp	x8, _AR5008_11NG_HT_DS_SHIFT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AR5008_11NG_HT_DS_SHIFT@GOTPAGEOFF]
Lloh12:
	adrp	x9, _AR5008_11NG_HT_SS_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AR5008_11NG_HT_SS_SHIFT@GOTPAGEOFF]
LBB0_7:
	ldr	w23, [x9]
	ldr	w24, [x8]
	mov	x0, x22
	bl	_IS_CHAN_HT40
	mov	x4, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	mov	x3, x24
	mov	x5, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ar5008_hw_init_txpower_ht
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5008_11NA_OFDM_SHIFT,4,2     ; @AR5008_11NA_OFDM_SHIFT
	.comm	_AR5008_11NA_HT_SS_SHIFT,4,2    ; @AR5008_11NA_HT_SS_SHIFT
	.comm	_AR5008_11NA_HT_DS_SHIFT,4,2    ; @AR5008_11NA_HT_DS_SHIFT
	.comm	_AR5008_11NG_OFDM_SHIFT,4,2     ; @AR5008_11NG_OFDM_SHIFT
	.comm	_AR5008_11NG_HT_SS_SHIFT,4,2    ; @AR5008_11NG_HT_SS_SHIFT
	.comm	_AR5008_11NG_HT_DS_SHIFT,4,2    ; @AR5008_11NG_HT_DS_SHIFT
.subsections_via_symbols
