	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath_mci_msg
_ath_mci_msg:                           ## @ath_mci_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	%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
	movq	%rdx, %r12
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	16(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_ath9k_hw_common
	movq	%rax, %r14
	movq	_MCI_STATE_NEED_FLUSH_BT_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ar9003_mci_state
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_MCI_STATE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ar9003_mci_state
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_MCI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ath_dbg
	leaq	8(%r15), %rdi
	callq	_ath_mci_flush_profile
	movq	_MCI_STATE_SEND_STATUS_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ar9003_mci_state
LBB0_3:
	leal	-128(%r13), %eax
	cmpl	$4, %eax
	ja	LBB0_12
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movq	_MCI_GPM_COEX_B_MAJOR_VERSION@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	(%r12,%rax,4), %esi
	movq	_MCI_GPM_COEX_B_MINOR_VERSION@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	(%r12,%rax,4), %edx
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ar9003_mci_set_bt_version      ## TAILCALL
LBB0_8:
	movq	_MCI_GPM_COEX_B_PROFILE_TYPE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r12,%rax,4), %rsi
	leaq	-56(%rbp), %rdi
	movl	$10, %edx
	callq	_memcpy
	movl	-52(%rbp), %ecx
	movq	_MCI_GPM_COEX_PROFILE_UNKNOWN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	je	LBB0_10
## %bb.9:
	movq	_MCI_GPM_COEX_PROFILE_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jge	LBB0_10
## %bb.13:
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ath_mci_process_profile
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_16
LBB0_12:
	movq	_MCI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath_dbg                        ## TAILCALL
LBB0_5:
	movq	_MCI_STATE_SEND_WLAN_COEX_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ar9003_mci_state               ## TAILCALL
LBB0_7:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ar9003_mci_send_wlan_channels  ## TAILCALL
LBB0_11:
	movq	_MCI_GPM_COEX_B_STATUS_TYPE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	(%r12,%rax,4), %ecx
	movl	%ecx, -56(%rbp)
	movq	_MCI_GPM_COEX_B_STATUS_LINKID@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	(%r12,%rax,4), %r8d
	movl	%r8d, -52(%rbp)
	movq	_MCI_GPM_COEX_B_STATUS_STATE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	(%r12,%rax,4), %r9d
	movl	%r9d, -48(%rbp)
	movl	48(%r12), %eax
	movq	_MCI@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	%eax, (%rsp)
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ath_dbg
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ath_mci_process_status
	testl	%eax, %eax
	je	LBB0_16
LBB0_15:
	movl	4(%r15), %edi
	movq	%r15, %rsi
	callq	_ieee80211_queue_work
	jmp	LBB0_16
LBB0_10:
	movq	_MCI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-56(%rbp), %r8d
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ath_dbg
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_11
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_MCI_STATE_NEED_FLUSH_BT_INFO,4,2 ## @MCI_STATE_NEED_FLUSH_BT_INFO
	.comm	_MCI_STATE_ENABLE,4,2           ## @MCI_STATE_ENABLE
	.comm	_MCI,4,2                        ## @MCI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(MCI) Need to flush BT profiles\n"

	.comm	_MCI_STATE_SEND_STATUS_QUERY,4,2 ## @MCI_STATE_SEND_STATUS_QUERY
	.comm	_MCI_STATE_SEND_WLAN_COEX_VERSION,4,2 ## @MCI_STATE_SEND_WLAN_COEX_VERSION
	.comm	_MCI_GPM_COEX_B_MAJOR_VERSION,4,2 ## @MCI_GPM_COEX_B_MAJOR_VERSION
	.comm	_MCI_GPM_COEX_B_MINOR_VERSION,4,2 ## @MCI_GPM_COEX_B_MINOR_VERSION
	.comm	_MCI_GPM_COEX_B_PROFILE_TYPE,4,2 ## @MCI_GPM_COEX_B_PROFILE_TYPE
	.comm	_MCI_GPM_COEX_PROFILE_UNKNOWN,4,2 ## @MCI_GPM_COEX_PROFILE_UNKNOWN
	.comm	_MCI_GPM_COEX_PROFILE_MAX,4,2   ## @MCI_GPM_COEX_PROFILE_MAX
L_.str.1:                               ## @.str.1
	.asciz	"Illegal profile type = %d, state = %d\n"

	.comm	_MCI_GPM_COEX_B_STATUS_TYPE,4,2 ## @MCI_GPM_COEX_B_STATUS_TYPE
	.comm	_MCI_GPM_COEX_B_STATUS_LINKID,4,2 ## @MCI_GPM_COEX_B_STATUS_LINKID
	.comm	_MCI_GPM_COEX_B_STATUS_STATE,4,2 ## @MCI_GPM_COEX_B_STATUS_STATE
L_.str.2:                               ## @.str.2
	.asciz	"BT_Status_Update: is_link=%d, linkId=%d, state=%d, SEQ=%u\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unknown GPM COEX message = 0x%02x\n"

	.no_dead_strip	_ath_mci_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_msg
_ath_mci_msg:                           ; @ath_mci_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x22, [x0, #16]
	mov	x0, x22
	bl	_ath9k_hw_common
	mov	x20, x0
Lloh0:
	adrp	x8, _MCI_STATE_NEED_FLUSH_BT_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCI_STATE_NEED_FLUSH_BT_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_ar9003_mci_state
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _MCI_STATE_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCI_STATE_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_ar9003_mci_state
	cbz	x0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _MCI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MCI@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ath_dbg
	add	x0, x19, #8
	bl	_ath_mci_flush_profile
Lloh11:
	adrp	x8, _MCI_STATE_SEND_STATUS_QUERY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MCI_STATE_SEND_STATUS_QUERY@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_ar9003_mci_state
LBB0_3:
	sub	w8, w23, #128
	cmp	w8, #4
	b.hi	LBB0_8
; %bb.4:
Lloh14:
	adrp	x9, lJTI0_0@PAGE
Lloh15:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
Lloh16:
	adrp	x8, _MCI_GPM_COEX_B_MAJOR_VERSION@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MCI_GPM_COEX_B_MAJOR_VERSION@GOTPAGEOFF]
Lloh18:
	ldrsw	x8, [x8]
	ldr	w1, [x21, x8, lsl #2]
Lloh19:
	adrp	x8, _MCI_GPM_COEX_B_MINOR_VERSION@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MCI_GPM_COEX_B_MINOR_VERSION@GOTPAGEOFF]
Lloh21:
	ldrsw	x8, [x8]
	ldr	w2, [x21, x8, lsl #2]
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ar9003_mci_set_bt_version
LBB0_6:
Lloh22:
	adrp	x8, _MCI_GPM_COEX_B_PROFILE_TYPE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MCI_GPM_COEX_B_PROFILE_TYPE@GOTPAGEOFF]
Lloh24:
	ldrsw	x8, [x8]
	add	x1, x21, x8, lsl #2
	add	x0, sp, #32
	mov	w2, #10
	bl	_memcpy
	ldr	w8, [sp, #36]
Lloh25:
	adrp	x9, _MCI_GPM_COEX_PROFILE_UNKNOWN@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MCI_GPM_COEX_PROFILE_UNKNOWN@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
Lloh28:
	adrp	x10, _MCI_GPM_COEX_PROFILE_MAX@GOTPAGE
Lloh29:
	ldr	x10, [x10, _MCI_GPM_COEX_PROFILE_MAX@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #0, ne
	b.lt	LBB0_15
; %bb.7:
Lloh31:
	adrp	x9, _MCI@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MCI@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x9]
	ldr	w9, [sp, #32]
	stp	x8, x9, [sp]
Lloh34:
	adrp	x2, l_.str.1@PAGE
Lloh35:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh36:
	adrp	x8, _MCI@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MCI@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	str	x23, [sp]
Lloh39:
	adrp	x2, l_.str.3@PAGE
Lloh40:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_9:
	mov	x0, x20
	bl	_ath_dbg
	b	LBB0_14
LBB0_10:
Lloh41:
	adrp	x8, _MCI_STATE_SEND_WLAN_COEX_VERSION@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MCI_STATE_SEND_WLAN_COEX_VERSION@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ar9003_mci_state
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ar9003_mci_send_wlan_channels
LBB0_12:
Lloh44:
	adrp	x8, _MCI_GPM_COEX_B_STATUS_TYPE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MCI_GPM_COEX_B_STATUS_TYPE@GOTPAGEOFF]
Lloh46:
	ldrsw	x8, [x8]
	ldr	w8, [x21, x8, lsl #2]
Lloh47:
	adrp	x9, _MCI_GPM_COEX_B_STATUS_LINKID@GOTPAGE
Lloh48:
	ldr	x9, [x9, _MCI_GPM_COEX_B_STATUS_LINKID@GOTPAGEOFF]
Lloh49:
	ldrsw	x9, [x9]
	ldr	w9, [x21, x9, lsl #2]
Lloh50:
	adrp	x10, _MCI_GPM_COEX_B_STATUS_STATE@GOTPAGE
Lloh51:
	ldr	x10, [x10, _MCI_GPM_COEX_B_STATUS_STATE@GOTPAGEOFF]
Lloh52:
	ldrsw	x10, [x10]
	ldr	w10, [x21, x10, lsl #2]
	stp	w8, w9, [sp, #32]
	str	w10, [sp, #40]
Lloh53:
	adrp	x11, _MCI@GOTPAGE
Lloh54:
	ldr	x11, [x11, _MCI@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x11]
	ldr	w11, [x21, #48]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh56:
	adrp	x2, l_.str.2@PAGE
Lloh57:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_ath_dbg
	add	x1, sp, #32
	mov	x0, x19
	bl	_ath_mci_process_status
	cbz	w0, LBB0_14
LBB0_13:
	ldr	w0, [x19, #4]
	mov	x1, x19
	bl	_ieee80211_queue_work
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
	add	x1, sp, #32
	mov	x0, x19
	bl	_ath_mci_process_profile
	cbnz	w0, LBB0_13
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
                                        ; -- End function
	.comm	_MCI_STATE_NEED_FLUSH_BT_INFO,4,2 ; @MCI_STATE_NEED_FLUSH_BT_INFO
	.comm	_MCI_STATE_ENABLE,4,2           ; @MCI_STATE_ENABLE
	.comm	_MCI,4,2                        ; @MCI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(MCI) Need to flush BT profiles\n"

	.comm	_MCI_STATE_SEND_STATUS_QUERY,4,2 ; @MCI_STATE_SEND_STATUS_QUERY
	.comm	_MCI_STATE_SEND_WLAN_COEX_VERSION,4,2 ; @MCI_STATE_SEND_WLAN_COEX_VERSION
	.comm	_MCI_GPM_COEX_B_MAJOR_VERSION,4,2 ; @MCI_GPM_COEX_B_MAJOR_VERSION
	.comm	_MCI_GPM_COEX_B_MINOR_VERSION,4,2 ; @MCI_GPM_COEX_B_MINOR_VERSION
	.comm	_MCI_GPM_COEX_B_PROFILE_TYPE,4,2 ; @MCI_GPM_COEX_B_PROFILE_TYPE
	.comm	_MCI_GPM_COEX_PROFILE_UNKNOWN,4,2 ; @MCI_GPM_COEX_PROFILE_UNKNOWN
	.comm	_MCI_GPM_COEX_PROFILE_MAX,4,2   ; @MCI_GPM_COEX_PROFILE_MAX
l_.str.1:                               ; @.str.1
	.asciz	"Illegal profile type = %d, state = %d\n"

	.comm	_MCI_GPM_COEX_B_STATUS_TYPE,4,2 ; @MCI_GPM_COEX_B_STATUS_TYPE
	.comm	_MCI_GPM_COEX_B_STATUS_LINKID,4,2 ; @MCI_GPM_COEX_B_STATUS_LINKID
	.comm	_MCI_GPM_COEX_B_STATUS_STATE,4,2 ; @MCI_GPM_COEX_B_STATUS_STATE
l_.str.2:                               ; @.str.2
	.asciz	"BT_Status_Update: is_link=%d, linkId=%d, state=%d, SEQ=%u\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unknown GPM COEX message = 0x%02x\n"

	.no_dead_strip	_ath_mci_msg
.subsections_via_symbols
