	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_eeprom_read_target_rate_pwr_info
_ath5k_eeprom_read_target_rate_pwr_info: ## @ath5k_eeprom_read_target_rate_pwr_info
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	40(%rdi), %edi
	callq	_AR5K_EEPROM_TARGET_PWRSTART
	movq	%rax, %r14
	movq	(%rbx), %r12
	cmpl	$128, %r15d
	je	LBB0_4
## %bb.1:
	cmpl	$129, %r15d
	je	LBB0_5
## %bb.2:
	cmpl	$130, %r15d
	jne	LBB0_11
## %bb.3:
	movq	8(%rbx), %rdi
	callq	_AR5K_EEPROM_TARGET_PWR_OFF_11A
	leaq	32(%rbx), %rcx
	movq	_AR5K_EEPROM_N_5GHZ_RATE_CHAN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	jmp	LBB0_6
LBB0_4:
	movq	8(%rbx), %rdi
	callq	_AR5K_EEPROM_TARGET_PWR_OFF_11G
	leaq	16(%rbx), %rcx
	movq	_AR5K_EEPROM_N_2GHZ_CHAN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	jmp	LBB0_6
LBB0_5:
	movq	8(%rbx), %rdi
	callq	_AR5K_EEPROM_TARGET_PWR_OFF_11B
	leaq	24(%rbx), %rcx
	movl	$2, %edx
LBB0_6:
	movl	%r15d, %r13d
	movq	(%rcx), %rsi
	movq	(%rbx), %rcx
	movl	%edx, (%rcx,%r13,4)
	movl	%eax, %eax
	addq	%rax, %r14
	movq	8(%rbx), %rcx
	movq	_AR5K_EEPROM_VERSION_3_2@GOTPCREL(%rip), %rdx
	movl	(%r12,%r13,4), %eax
	cmpq	(%rdx), %rcx
## %bb.7:
	testl	%eax, %eax
	jle	LBB0_8
## %bb.10:
	movl	%r14d, %edi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_AR5K_EEPROM_READ
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_ath5k_eeprom_bin2freq
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	$0, 8(%rcx)
	incl	%r14d
	movl	%r14d, %edi
	callq	_AR5K_EEPROM_READ
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax,%r13,4)
	jmp	LBB0_12
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_12
LBB0_8:
	xorl	%r12d, %r12d
LBB0_12:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_EEPROM_N_5GHZ_RATE_CHAN,4,2 ## @AR5K_EEPROM_N_5GHZ_RATE_CHAN
	.comm	_AR5K_EEPROM_N_2GHZ_CHAN,4,2    ## @AR5K_EEPROM_N_2GHZ_CHAN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AR5K_EEPROM_VERSION_3_2,8,3    ## @AR5K_EEPROM_VERSION_3_2
	.comm	_AR5K_EEPROM_CHANNEL_DIS,8,3    ## @AR5K_EEPROM_CHANNEL_DIS
	.no_dead_strip	_ath5k_eeprom_read_target_rate_pwr_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_eeprom_read_target_rate_pwr_info
_ath5k_eeprom_read_target_rate_pwr_info: ; @ath5k_eeprom_read_target_rate_pwr_info
	.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, x1
	mov	x20, x0
	ldr	w0, [x0, #40]
	bl	_AR5K_EEPROM_TARGET_PWRSTART
	mov	x21, x0
	ldr	x22, [x20]
	cmp	w19, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w19, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w19, #130
	b.ne	LBB0_9
; %bb.3:
	ldr	x0, [x20, #8]
	bl	_AR5K_EEPROM_TARGET_PWR_OFF_11A
	add	x9, x20, #32
Lloh0:
	adrp	x8, _AR5K_EEPROM_N_5GHZ_RATE_CHAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR5K_EEPROM_N_5GHZ_RATE_CHAN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	b	LBB0_6
LBB0_4:
	ldr	x0, [x20, #8]
	bl	_AR5K_EEPROM_TARGET_PWR_OFF_11G
	add	x9, x20, #16
Lloh3:
	adrp	x8, _AR5K_EEPROM_N_2GHZ_CHAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR5K_EEPROM_N_2GHZ_CHAN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	b	LBB0_6
LBB0_5:
	ldr	x0, [x20, #8]
	bl	_AR5K_EEPROM_TARGET_PWR_OFF_11B
	add	x9, x20, #24
	mov	w8, #2
LBB0_6:
	mov	w23, w19
	ldr	x24, [x9]
	lsl	x9, x23, #2
	ldp	x10, x11, [x20]
	str	w8, [x10, x9]
	add	x21, x21, w0, uxtw
Lloh6:
	adrp	x8, _AR5K_EEPROM_VERSION_3_2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR5K_EEPROM_VERSION_3_2@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x8]
	ldr	w8, [x22, x9]
	cmp	x11, x10
; %bb.7:
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x0, x21
	bl	_AR5K_EEPROM_READ
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	bl	_ath5k_eeprom_bin2freq
	stp	x0, xzr, [x24]
	add	w0, w21, #1
	bl	_AR5K_EEPROM_READ
	mov	w0, #0
	str	wzr, [x22, x23, lsl #2]
	b	LBB0_11
LBB0_9:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_EEPROM_N_5GHZ_RATE_CHAN,4,2 ; @AR5K_EEPROM_N_5GHZ_RATE_CHAN
	.comm	_AR5K_EEPROM_N_2GHZ_CHAN,4,2    ; @AR5K_EEPROM_N_2GHZ_CHAN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AR5K_EEPROM_VERSION_3_2,8,3    ; @AR5K_EEPROM_VERSION_3_2
	.comm	_AR5K_EEPROM_CHANNEL_DIS,8,3    ; @AR5K_EEPROM_CHANNEL_DIS
	.no_dead_strip	_ath5k_eeprom_read_target_rate_pwr_info
.subsections_via_symbols
