	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_init_cal_settings
_ar9003_hw_init_cal_settings:           ## @ar9003_hw_init_cal_settings
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_iq_cal_single_sample@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rdi)
	callq	_AR_SREV_9300_20_OR_LATER
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_TX_IQ_CAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_AR_SREV_9485_OR_LATER
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_AR_SREV_9340
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_TX_IQ_ON_AGC_CAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_4:
	movq	_IQ_MISMATCH_CAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_iq_cal_single_sample,4,2       ## @iq_cal_single_sample
	.comm	_TX_IQ_CAL,4,2                  ## @TX_IQ_CAL
	.comm	_TX_IQ_ON_AGC_CAL,4,2           ## @TX_IQ_ON_AGC_CAL
	.comm	_IQ_MISMATCH_CAL,4,2            ## @IQ_MISMATCH_CAL
	.no_dead_strip	_ar9003_hw_init_cal_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_init_cal_settings
_ar9003_hw_init_cal_settings:           ; @ar9003_hw_init_cal_settings
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _iq_cal_single_sample@GOTPAGE
Lloh1:
	ldr	x8, [x8, _iq_cal_single_sample@GOTPAGEOFF]
	str	x8, [x0, #8]
	bl	_AR_SREV_9300_20_OR_LATER
	cbz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _TX_IQ_CAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TX_IQ_CAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_AR_SREV_9485_OR_LATER
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_AR_SREV_9340
	cbnz	w0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _TX_IQ_ON_AGC_CAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TX_IQ_ON_AGC_CAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_4:
Lloh8:
	adrp	x8, _IQ_MISMATCH_CAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IQ_MISMATCH_CAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_iq_cal_single_sample,4,2       ; @iq_cal_single_sample
	.comm	_TX_IQ_CAL,4,2                  ; @TX_IQ_CAL
	.comm	_TX_IQ_ON_AGC_CAL,4,2           ; @TX_IQ_ON_AGC_CAL
	.comm	_IQ_MISMATCH_CAL,4,2            ; @IQ_MISMATCH_CAL
	.no_dead_strip	_ar9003_hw_init_cal_settings
.subsections_via_symbols
