	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar9003_mci_check_gpm_offset    ## -- Begin function ar9003_mci_check_gpm_offset
	.p2align	4, 0x90
_ar9003_mci_check_gpm_offset:           ## @ar9003_mci_check_gpm_offset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_ath9k_hw_common
	movq	%rax, %r14
	movq	_AR_MCI_GPM_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_REG_READ
	movq	_AR_MCI_GPM_WRITE_PTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_MS
	movq	(%rbx), %rcx
	cmpq	%rax, %rcx
	je	LBB0_2
## %bb.1:
	movq	_MCI@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%rax, %r8
	callq	_ath_dbg
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 8(%rbx)
	movq	$0, (%rbx)
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_MCI_GPM_1,4,2               ## @AR_MCI_GPM_1
	.comm	_AR_MCI_GPM_WRITE_PTR,4,2       ## @AR_MCI_GPM_WRITE_PTR
	.comm	_MCI,4,2                        ## @MCI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPM cached write pointer mismatch %d %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar9003_mci_check_gpm_offset    ; -- Begin function ar9003_mci_check_gpm_offset
	.p2align	2
_ar9003_mci_check_gpm_offset:           ; @ar9003_mci_check_gpm_offset
	.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
	bl	_ath9k_hw_common
	mov	x20, x0
Lloh0:
	adrp	x8, _AR_MCI_GPM_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR_MCI_GPM_1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_REG_READ
Lloh3:
	adrp	x8, _AR_MCI_GPM_WRITE_PTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR_MCI_GPM_WRITE_PTR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_MS
	ldr	x3, [x19]
	cmp	x3, x0
	b.eq	LBB0_2
; %bb.1:
	mov	x4, x0
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
	movi.2s	v0, #1
	str	d0, [x19, #8]
	str	xzr, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_MCI_GPM_1,4,2               ; @AR_MCI_GPM_1
	.comm	_AR_MCI_GPM_WRITE_PTR,4,2       ; @AR_MCI_GPM_WRITE_PTR
	.comm	_MCI,4,2                        ; @MCI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPM cached write pointer mismatch %d %d\n"

.subsections_via_symbols
