	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aq_fw2x_update_stats
_aq_fw2x_update_stats:                  ## @aq_fw2x_update_stats
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_HW_ATL_FW2X_MPI_CONTROL2_ADDR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_aq_hw_read_reg
	movl	%eax, %ebx
	movq	_CAPS_HI_STATISTICS@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_BIT
	movl	%eax, %r15d
	movl	(%r13), %edi
	callq	_BIT
	xorl	%ebx, %eax
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_aq_hw_write_reg
	movq	_aq_fw2x_state2_get@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r13), %edi
	callq	_BIT
	xorl	%ecx, %ecx
	testl	%ebx, %r15d
	setne	%cl
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	$1, %r8d
	movl	$10000, %r9d                    ## imm = 0x2710
	callq	_readx_poll_timeout_atomic
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hw_atl_utils_update_stats      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_ATL_FW2X_MPI_CONTROL2_ADDR,4,2 ## @HW_ATL_FW2X_MPI_CONTROL2_ADDR
	.comm	_CAPS_HI_STATISTICS,4,2         ## @CAPS_HI_STATISTICS
	.comm	_aq_fw2x_state2_get,4,2         ## @aq_fw2x_state2_get
	.no_dead_strip	_aq_fw2x_update_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aq_fw2x_update_stats
_aq_fw2x_update_stats:                  ; @aq_fw2x_update_stats
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
Lloh0:
	adrp	x22, _HW_ATL_FW2X_MPI_CONTROL2_ADDR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HW_ATL_FW2X_MPI_CONTROL2_ADDR@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_aq_hw_read_reg
	mov	x20, x0
Lloh2:
	adrp	x23, _CAPS_HI_STATISTICS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CAPS_HI_STATISTICS@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_BIT
	mov	x21, x0
	ldr	w0, [x23]
	bl	_BIT
	eor	w2, w0, w20
	ldr	w1, [x22]
	mov	x0, x19
	bl	_aq_hw_write_reg
Lloh4:
	adrp	x8, _aq_fw2x_state2_get@GOTPAGE
Lloh5:
	ldr	x8, [x8, _aq_fw2x_state2_get@GOTPAGEOFF]
Lloh6:
	ldr	w22, [x8]
	ldr	w0, [x23]
	bl	_BIT
	tst	w21, w20
	cset	w3, ne
	mov	x0, x22
	mov	x1, x19
	mov	w4, #1
	mov	w5, #10000
	bl	_readx_poll_timeout_atomic
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_hw_atl_utils_update_stats
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_ATL_FW2X_MPI_CONTROL2_ADDR,4,2 ; @HW_ATL_FW2X_MPI_CONTROL2_ADDR
	.comm	_CAPS_HI_STATISTICS,4,2         ; @CAPS_HI_STATISTICS
	.comm	_aq_fw2x_state2_get,4,2         ; @aq_fw2x_state2_get
	.no_dead_strip	_aq_fw2x_update_stats
.subsections_via_symbols
