	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_cal_data_offset_2413
_ath5k_cal_data_offset_2413:            ## @ath5k_cal_data_offset_2413
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	callq	_AR5K_EEPROM_CAL_DATA_START
	movl	%eax, %r14d
	cmpl	$129, %ebx
	je	LBB0_4
## %bb.1:
	cmpl	$128, %ebx
	jne	LBB0_6
## %bb.2:
	movl	(%r15), %edi
	callq	_AR5K_EEPROM_HDR_11B
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movl	$129, %esi
	callq	_ath5k_pdgains_size_2413
	movq	_AR5K_EEPROM_N_2GHZ_CHAN_2413@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	addl	%r14d, %eax
	addl	%edx, %eax
	movl	%eax, %r14d
LBB0_4:
	movl	(%r15), %edi
	callq	_AR5K_EEPROM_HDR_11A
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movl	$130, %esi
	callq	_ath5k_pdgains_size_2413
	movq	_AR5K_EEPROM_N_5GHZ_CHAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	addl	%r14d, %eax
	addl	%edx, %eax
	movl	%eax, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_EEPROM_N_2GHZ_CHAN_2413,4,2 ## @AR5K_EEPROM_N_2GHZ_CHAN_2413
	.comm	_AR5K_EEPROM_N_5GHZ_CHAN,4,2    ## @AR5K_EEPROM_N_5GHZ_CHAN
	.no_dead_strip	_ath5k_cal_data_offset_2413
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_cal_data_offset_2413
_ath5k_cal_data_offset_2413:            ; @ath5k_cal_data_offset_2413
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_AR5K_EEPROM_CAL_DATA_START
	mov	x19, x0
	cmp	w21, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w21, #128
	b.ne	LBB0_6
; %bb.2:
	ldr	w0, [x20]
	bl	_AR5K_EEPROM_HDR_11B
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	w1, #129
	bl	_ath5k_pdgains_size_2413
Lloh0:
	adrp	x8, _AR5K_EEPROM_N_2GHZ_CHAN_2413@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR5K_EEPROM_N_2GHZ_CHAN_2413@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w9, w0, w19
	add	w19, w9, w8, asr #1
LBB0_4:
	ldr	w0, [x20]
	bl	_AR5K_EEPROM_HDR_11A
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	w1, #130
	bl	_ath5k_pdgains_size_2413
Lloh3:
	adrp	x8, _AR5K_EEPROM_N_5GHZ_CHAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR5K_EEPROM_N_5GHZ_CHAN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w9, w0, w19
	add	w19, w9, w8, asr #1
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_EEPROM_N_2GHZ_CHAN_2413,4,2 ; @AR5K_EEPROM_N_2GHZ_CHAN_2413
	.comm	_AR5K_EEPROM_N_5GHZ_CHAN,4,2    ; @AR5K_EEPROM_N_5GHZ_CHAN
	.no_dead_strip	_ath5k_cal_data_offset_2413
.subsections_via_symbols
