	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_setup_calibration
_ar9003_hw_setup_calibration:           ## @ar9003_hw_setup_calibration
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_ath9k_hw_common
	movq	%rax, %r14
	movq	(%rbx), %rax
	cmpl	$128, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_AR_PHY_TIMING4@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_AR_PHY_TIMING4_IQCAL_LOG_COUNT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	4(%rax), %ecx
	movq	%r15, %rdi
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_CALMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_CALMODE_IQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_REG_WRITE
	movq	_CALIBRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_ath_dbg
	movl	(%rbx), %esi
	movq	_AR_PHY_TIMING4_DO_CAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_SET_BIT                    ## TAILCALL
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_PHY_TIMING4,4,2             ## @AR_PHY_TIMING4
	.comm	_AR_PHY_TIMING4_IQCAL_LOG_COUNT_MAX,4,2 ## @AR_PHY_TIMING4_IQCAL_LOG_COUNT_MAX
	.comm	_AR_PHY_CALMODE,4,2             ## @AR_PHY_CALMODE
	.comm	_AR_PHY_CALMODE_IQ,4,2          ## @AR_PHY_CALMODE_IQ
	.comm	_CALIBRATE,4,2                  ## @CALIBRATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"starting IQ Mismatch Calibration\n"

	.comm	_AR_PHY_TIMING4_DO_CAL,4,2      ## @AR_PHY_TIMING4_DO_CAL
L_.str.1:                               ## @.str.1
	.asciz	"Invalid calibration type\n"

	.no_dead_strip	_ar9003_hw_setup_calibration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_setup_calibration
_ar9003_hw_setup_calibration:           ; @ar9003_hw_setup_calibration
	.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	x19, x0
	bl	_ath9k_hw_common
	mov	x20, x0
	ldr	x8, [x21]
	ldr	w9, [x8]
	cmp	w9, #128
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x21, _AR_PHY_TIMING4@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AR_PHY_TIMING4@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x9, _AR_PHY_TIMING4_IQCAL_LOG_COUNT_MAX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AR_PHY_TIMING4_IQCAL_LOG_COUNT_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x9]
	ldr	w3, [x8, #4]
	mov	x0, x19
	bl	_REG_RMW_FIELD
Lloh5:
	adrp	x8, _AR_PHY_CALMODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AR_PHY_CALMODE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _AR_PHY_CALMODE_IQ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AR_PHY_CALMODE_IQ@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_WRITE
Lloh11:
	adrp	x8, _CALIBRATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CALIBRATE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ath_dbg
	ldr	w1, [x21]
Lloh16:
	adrp	x8, _AR_PHY_TIMING4_DO_CAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AR_PHY_TIMING4_DO_CAL@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	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
	b	_REG_SET_BIT
LBB0_2:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	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
	b	_ath_err
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_PHY_TIMING4,4,2             ; @AR_PHY_TIMING4
	.comm	_AR_PHY_TIMING4_IQCAL_LOG_COUNT_MAX,4,2 ; @AR_PHY_TIMING4_IQCAL_LOG_COUNT_MAX
	.comm	_AR_PHY_CALMODE,4,2             ; @AR_PHY_CALMODE
	.comm	_AR_PHY_CALMODE_IQ,4,2          ; @AR_PHY_CALMODE_IQ
	.comm	_CALIBRATE,4,2                  ; @CALIBRATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"starting IQ Mismatch Calibration\n"

	.comm	_AR_PHY_TIMING4_DO_CAL,4,2      ; @AR_PHY_TIMING4_DO_CAL
l_.str.1:                               ; @.str.1
	.asciz	"Invalid calibration type\n"

	.no_dead_strip	_ar9003_hw_setup_calibration
.subsections_via_symbols
