	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_get_target_power_eeprom
_ar9003_hw_get_target_power_eeprom:     ## @ar9003_hw_get_target_power_eeprom
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_IS_CHAN_2GHZ
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_ath9k_hw_common
	movq	%rax, %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r13d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	callq	_ar9003_hw_get_cck_target_powers
LBB0_2:
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_ar9003_hw_get_legacy_target_powers
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_ar9003_hw_get_ht20_target_powers
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_IS_CHAN_HT40
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_ar9003_hw_get_ht40_target_powers
LBB0_4:
	movq	_ar9300RateSize@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_REGULATORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12,%rbx,4), %r8d
	movq	%r14, %rdi
	movq	%r15, %rdx
	movq	%r14, %r13
	movq	%rcx, %r14
	movl	%ebx, %ecx
	callq	_ath_dbg
	movq	%r14, %rcx
	movq	%r13, %r14
	incq	%rbx
	movl	(%rcx), %eax
	cmpq	%rax, %rbx
	jb	LBB0_6
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ar9300RateSize,4,2             ## @ar9300RateSize
	.comm	_REGULATORY,4,2                 ## @REGULATORY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TPC[%02d] 0x%08x\n"

	.no_dead_strip	_ar9003_hw_get_target_power_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_get_target_power_eeprom
_ar9003_hw_get_target_power_eeprom:     ; @ar9003_hw_get_target_power_eeprom
	.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, x2
	mov	x23, x1
	mov	x21, x0
	mov	x0, x1
	bl	_IS_CHAN_2GHZ
	mov	x22, x0
	mov	x0, x21
	bl	_ath9k_hw_common
	mov	x20, x0
	ldr	w24, [x23]
	cbz	w22, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x19
	bl	_ar9003_hw_get_cck_target_powers
LBB0_2:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x19
	mov	x3, x22
	bl	_ar9003_hw_get_legacy_target_powers
	mov	x0, x21
	mov	x1, x24
	mov	x2, x19
	mov	x3, x22
	bl	_ar9003_hw_get_ht20_target_powers
	mov	x0, x23
	bl	_IS_CHAN_HT40
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x19
	mov	x3, x22
	bl	_ar9003_hw_get_ht40_target_powers
LBB0_4:
Lloh0:
	adrp	x23, _ar9300RateSize@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ar9300RateSize@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_7
; %bb.5:
	mov	x21, #0
Lloh2:
	adrp	x24, _REGULATORY@GOTPAGE
Lloh3:
	ldr	x24, [x24, _REGULATORY@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	ldr	w4, [x19, x21, lsl #2]
	mov	x0, x20
	mov	x2, x22
	mov	x3, x21
	bl	_ath_dbg
	add	x21, x21, #1
	ldr	w8, [x23]
	cmp	x21, x8
	b.lo	LBB0_6
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ar9300RateSize,4,2             ; @ar9300RateSize
	.comm	_REGULATORY,4,2                 ; @REGULATORY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TPC[%02d] 0x%08x\n"

	.no_dead_strip	_ar9003_hw_get_target_power_eeprom
.subsections_via_symbols
