	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_mci_queue_unsent_gpm
_ar9003_mci_queue_unsent_gpm:           ## @ar9003_mci_queue_unsent_gpm
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MCI_GPM@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_13
## %bb.1:
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_MCI_GPM_TYPE
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_MCI_GPM_OPCODE
	movq	_MCI_GPM_COEX_AGENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r12
	jne	LBB0_13
## %bb.2:
	cmpq	$128, %rax
	je	LBB0_7
## %bb.3:
	cmpq	$129, %rax
	je	LBB0_8
## %bb.4:
	cmpq	$130, %rax
	jne	LBB0_13
## %bb.5:
	movq	_MCI_GPM_COEX_B_BT_FLAGS_OP@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	(%rbx,%rax,8), %rax
	movq	_MCI_GPM_COEX_BT_FLAGS_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.6:
	movl	%r15d, (%r14)
	jmp	LBB0_13
LBB0_7:
	movl	%r15d, 4(%r14)
	jmp	LBB0_13
LBB0_8:
	movq	_MCI_GPM_COEX_B_HALT_STATE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	(%rbx,%rax,8), %rax
	movq	_MCI_GPM_COEX_BT_GPM_UNHALT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:
	movl	%r15d, 8(%r14)
	testl	%r15d, %r15d
	jne	LBB0_11
## %bb.10:
	movl	$0, 12(%r14)
LBB0_11:
	movq	_MCI_GPM_COEX_BT_GPM_HALT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	sete	%al
	movl	%eax, 12(%r14)
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCI_GPM,8,3                    ## @MCI_GPM
	.comm	_MCI_GPM_COEX_AGENT,8,3         ## @MCI_GPM_COEX_AGENT
	.comm	_MCI_GPM_COEX_B_BT_FLAGS_OP,4,2 ## @MCI_GPM_COEX_B_BT_FLAGS_OP
	.comm	_MCI_GPM_COEX_BT_FLAGS_READ,8,3 ## @MCI_GPM_COEX_BT_FLAGS_READ
	.comm	_MCI_GPM_COEX_B_HALT_STATE,4,2  ## @MCI_GPM_COEX_B_HALT_STATE
	.comm	_MCI_GPM_COEX_BT_GPM_UNHALT,8,3 ## @MCI_GPM_COEX_BT_GPM_UNHALT
	.comm	_MCI_GPM_COEX_BT_GPM_HALT,8,3   ## @MCI_GPM_COEX_BT_GPM_HALT
	.no_dead_strip	_ar9003_mci_queue_unsent_gpm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_mci_queue_unsent_gpm
_ar9003_mci_queue_unsent_gpm:           ; @ar9003_mci_queue_unsent_gpm
	.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
Lloh0:
	adrp	x8, _MCI_GPM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCI_GPM@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_13
; %bb.1:
	mov	x19, x3
	mov	x21, x2
	mov	x20, x0
	mov	x0, x2
	bl	_MCI_GPM_TYPE
	mov	x22, x0
	mov	x0, x21
	bl	_MCI_GPM_OPCODE
Lloh3:
	adrp	x8, _MCI_GPM_COEX_AGENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCI_GPM_COEX_AGENT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_13
; %bb.2:
	cmp	x0, #128
	b.eq	LBB0_7
; %bb.3:
	cmp	x0, #129
	b.eq	LBB0_8
; %bb.4:
	cmp	x0, #130
	b.ne	LBB0_13
; %bb.5:
Lloh6:
	adrp	x8, _MCI_GPM_COEX_B_BT_FLAGS_OP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MCI_GPM_COEX_B_BT_FLAGS_OP@GOTPAGEOFF]
Lloh8:
	ldrsw	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
Lloh9:
	adrp	x9, _MCI_GPM_COEX_BT_FLAGS_READ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MCI_GPM_COEX_BT_FLAGS_READ@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.6:
	str	w19, [x20]
	b	LBB0_13
LBB0_7:
	str	w19, [x20, #4]
	b	LBB0_13
LBB0_8:
Lloh12:
	adrp	x8, _MCI_GPM_COEX_B_HALT_STATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MCI_GPM_COEX_B_HALT_STATE@GOTPAGEOFF]
Lloh14:
	ldrsw	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
Lloh15:
	adrp	x9, _MCI_GPM_COEX_BT_GPM_UNHALT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MCI_GPM_COEX_BT_GPM_UNHALT@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	str	w19, [x20, #8]
	cbnz	w19, LBB0_11
; %bb.10:
	str	wzr, [x20, #12]
LBB0_11:
Lloh18:
	adrp	x9, _MCI_GPM_COEX_BT_GPM_HALT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MCI_GPM_COEX_BT_GPM_HALT@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	cmp	w19, #0
	cset	w8, eq
	str	w8, [x20, #12]
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MCI_GPM,8,3                    ; @MCI_GPM
	.comm	_MCI_GPM_COEX_AGENT,8,3         ; @MCI_GPM_COEX_AGENT
	.comm	_MCI_GPM_COEX_B_BT_FLAGS_OP,4,2 ; @MCI_GPM_COEX_B_BT_FLAGS_OP
	.comm	_MCI_GPM_COEX_BT_FLAGS_READ,8,3 ; @MCI_GPM_COEX_BT_FLAGS_READ
	.comm	_MCI_GPM_COEX_B_HALT_STATE,4,2  ; @MCI_GPM_COEX_B_HALT_STATE
	.comm	_MCI_GPM_COEX_BT_GPM_UNHALT,8,3 ; @MCI_GPM_COEX_BT_GPM_UNHALT
	.comm	_MCI_GPM_COEX_BT_GPM_HALT,8,3   ; @MCI_GPM_COEX_BT_GPM_HALT
	.no_dead_strip	_ar9003_mci_queue_unsent_gpm
.subsections_via_symbols
