	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath_mci_cal_msg
_ath_mci_cal_msg:                       ## @ath_mci_cal_msg
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %r12
	movq	%r12, %rdi
	callq	_ath9k_hw_common
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	cmpl	$129, %ebx
	je	LBB0_6
## %bb.1:
	movq	%rax, %r14
	cmpl	$128, %ebx
	jne	LBB0_8
## %bb.2:
	movl	(%r12), %ecx
	movq	_MCI_BT_AWAKE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_4
## %bb.3:
	movq	_MCI_BT_CAL_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	_RESET_TYPE_MCI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ath9k_queue_reset
	movl	(%r12), %ecx
LBB0_4:
	movq	_MCI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_10
## %bb.5:
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath_dbg                        ## TAILCALL
LBB0_6:
	movq	_MCI_GPM_WLAN_CAL_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_MCI_GPM_SET_CAL_TYPE
	movq	(%r15), %rdi
	movq	_MCI_GPM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, (%rsp)
	xorl	%edx, %edx
	movq	%rbx, %rcx
	movl	$16, %r8d
	xorl	%r9d, %r9d
	callq	_ar9003_mci_send_message
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_10
## %bb.7:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_MCI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath_dbg                        ## TAILCALL
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MCI_BT_AWAKE,4,2               ## @MCI_BT_AWAKE
	.comm	_MCI_BT_CAL_START,4,2           ## @MCI_BT_CAL_START
	.comm	_RESET_TYPE_MCI,4,2             ## @RESET_TYPE_MCI
	.comm	_MCI,4,2                        ## @MCI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MCI State : %d\n"

	.comm	_MCI_GPM_WLAN_CAL_DONE,4,2      ## @MCI_GPM_WLAN_CAL_DONE
	.comm	_MCI_GPM,4,2                    ## @MCI_GPM
L_.str.1:                               ## @.str.1
	.asciz	"Unknown GPM CAL message\n"

	.no_dead_strip	_ath_mci_cal_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath_mci_cal_msg
_ath_mci_cal_msg:                       ; @ath_mci_cal_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x21, [x0]
	mov	x0, x21
	bl	_ath9k_hw_common
	stp	xzr, xzr, [sp, #8]
	cmp	w22, #129
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x0
	cmp	w22, #128
	b.ne	LBB0_8
; %bb.2:
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _MCI_BT_AWAKE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MCI_BT_AWAKE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _MCI_BT_CAL_START@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MCI_BT_CAL_START@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x21]
Lloh9:
	adrp	x8, _RESET_TYPE_MCI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RESET_TYPE_MCI@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ath9k_queue_reset
	ldr	w8, [x21]
LBB0_4:
Lloh12:
	adrp	x9, _MCI@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MCI@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath_dbg
	b	LBB0_6
LBB0_5:
Lloh17:
	adrp	x8, _MCI_GPM_WLAN_CAL_DONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MCI_GPM_WLAN_CAL_DONE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_MCI_GPM_SET_CAL_TYPE
	ldr	x0, [x20]
Lloh20:
	adrp	x8, _MCI_GPM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MCI_GPM@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	w2, #0
	mov	w4, #16
	mov	w5, #0
	mov	w6, #1
	bl	_ar9003_mci_send_message
LBB0_6:
	ldr	x8, [sp, #24]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
Lloh26:
	adrp	x8, _MCI@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MCI@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	x8, [sp, #24]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
Lloh32:
	adrp	x2, l_.str.1@PAGE
Lloh33:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ath_dbg
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_MCI_BT_AWAKE,4,2               ; @MCI_BT_AWAKE
	.comm	_MCI_BT_CAL_START,4,2           ; @MCI_BT_CAL_START
	.comm	_RESET_TYPE_MCI,4,2             ; @RESET_TYPE_MCI
	.comm	_MCI,4,2                        ; @MCI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MCI State : %d\n"

	.comm	_MCI_GPM_WLAN_CAL_DONE,4,2      ; @MCI_GPM_WLAN_CAL_DONE
	.comm	_MCI_GPM,4,2                    ; @MCI_GPM
l_.str.1:                               ; @.str.1
	.asciz	"Unknown GPM CAL message\n"

	.no_dead_strip	_ath_mci_cal_msg
.subsections_via_symbols
