	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_mci_stat_setup
_ar9003_mci_stat_setup:                 ## @ar9003_mci_stat_setup
	.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	_AR_SREV_9565
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	_ATH_MCI_CONFIG_MCI_STAT_DBG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_AR_MCI_DBG_CNT_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_AR_MCI_DBG_CNT_CTRL_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movl	(%r14), %esi
	movq	_AR_MCI_DBG_CNT_CTRL_BT_LINKID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MCI_STAT_ALL_BT_LINKID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	jmp	LBB0_4
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_REG_RMW_FIELD                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_MCI_CONFIG_MCI_STAT_DBG,4,2 ## @ATH_MCI_CONFIG_MCI_STAT_DBG
	.comm	_AR_MCI_DBG_CNT_CTRL,4,2        ## @AR_MCI_DBG_CNT_CTRL
	.comm	_AR_MCI_DBG_CNT_CTRL_ENABLE,4,2 ## @AR_MCI_DBG_CNT_CTRL_ENABLE
	.comm	_AR_MCI_DBG_CNT_CTRL_BT_LINKID,4,2 ## @AR_MCI_DBG_CNT_CTRL_BT_LINKID
	.comm	_MCI_STAT_ALL_BT_LINKID,4,2     ## @MCI_STAT_ALL_BT_LINKID
	.no_dead_strip	_ar9003_mci_stat_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_mci_stat_setup
_ar9003_mci_stat_setup:                 ; @ar9003_mci_stat_setup
	.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	_AR_SREV_9565
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _ATH_MCI_CONFIG_MCI_STAT_DBG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATH_MCI_CONFIG_MCI_STAT_DBG@GOTPAGEOFF]
Lloh2:
	adrp	x20, _AR_MCI_DBG_CNT_CTRL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _AR_MCI_DBG_CNT_CTRL@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	w1, [x20]
Lloh5:
	adrp	x10, _AR_MCI_DBG_CNT_CTRL_ENABLE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AR_MCI_DBG_CNT_CTRL_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x10]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x19
	mov	w3, #1
	bl	_REG_RMW_FIELD
	ldr	w1, [x20]
Lloh8:
	adrp	x8, _AR_MCI_DBG_CNT_CTRL_BT_LINKID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AR_MCI_DBG_CNT_CTRL_BT_LINKID@GOTPAGEOFF]
Lloh10:
	adrp	x9, _MCI_STAT_ALL_BT_LINKID@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MCI_STAT_ALL_BT_LINKID@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	ldr	w3, [x9]
	mov	x0, x19
	b	LBB0_5
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x19
	mov	w3, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_RMW_FIELD
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_MCI_CONFIG_MCI_STAT_DBG,4,2 ; @ATH_MCI_CONFIG_MCI_STAT_DBG
	.comm	_AR_MCI_DBG_CNT_CTRL,4,2        ; @AR_MCI_DBG_CNT_CTRL
	.comm	_AR_MCI_DBG_CNT_CTRL_ENABLE,4,2 ; @AR_MCI_DBG_CNT_CTRL_ENABLE
	.comm	_AR_MCI_DBG_CNT_CTRL_BT_LINKID,4,2 ; @AR_MCI_DBG_CNT_CTRL_BT_LINKID
	.comm	_MCI_STAT_ALL_BT_LINKID,4,2     ; @MCI_STAT_ALL_BT_LINKID
	.no_dead_strip	_ar9003_mci_stat_setup
.subsections_via_symbols
