	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv88e6xxx_g1_stats_read        ## -- Begin function mv88e6xxx_g1_stats_read
	.p2align	4, 0x90
_mv88e6xxx_g1_stats_read:               ## @mv88e6xxx_g1_stats_read
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %edx
	movq	%rdi, %rbx
	movl	$0, (%r14)
	movq	_MV88E6XXX_G1_STATS_OP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MV88E6XXX_G1_STATS_OP_BUSY@GOTPCREL(%rip), %rax
	movq	_MV88E6XXX_G1_STATS_OP_READ_CAPTURED@GOTPCREL(%rip), %rcx
	orl	(%rax), %edx
	orl	(%rcx), %edx
	callq	_mv88e6xxx_g1_write
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_mv88e6xxx_g1_stats_wait
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	_MV88E6XXX_G1_STATS_COUNTER_32@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mv88e6xxx_g1_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	-28(%rbp), %r15d
	movq	_MV88E6XXX_G1_STATS_COUNTER_01@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mv88e6xxx_g1_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	shll	$16, %r15d
	orl	-28(%rbp), %r15d
	movl	%r15d, (%r14)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MV88E6XXX_G1_STATS_OP,4,2      ## @MV88E6XXX_G1_STATS_OP
	.comm	_MV88E6XXX_G1_STATS_OP_BUSY,4,2 ## @MV88E6XXX_G1_STATS_OP_BUSY
	.comm	_MV88E6XXX_G1_STATS_OP_READ_CAPTURED,4,2 ## @MV88E6XXX_G1_STATS_OP_READ_CAPTURED
	.comm	_MV88E6XXX_G1_STATS_COUNTER_32,4,2 ## @MV88E6XXX_G1_STATS_COUNTER_32
	.comm	_MV88E6XXX_G1_STATS_COUNTER_01,4,2 ## @MV88E6XXX_G1_STATS_COUNTER_01
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv88e6xxx_g1_stats_read        ; -- Begin function mv88e6xxx_g1_stats_read
	.p2align	2
_mv88e6xxx_g1_stats_read:               ; @mv88e6xxx_g1_stats_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x0
	str	wzr, [x2]
Lloh0:
	adrp	x8, _MV88E6XXX_G1_STATS_OP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MV88E6XXX_G1_STATS_OP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MV88E6XXX_G1_STATS_OP_BUSY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MV88E6XXX_G1_STATS_OP_BUSY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MV88E6XXX_G1_STATS_OP_READ_CAPTURED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MV88E6XXX_G1_STATS_OP_READ_CAPTURED@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w9, w1
	orr	w2, w9, w10
	mov	x1, x8
	bl	_mv88e6xxx_g1_write
	cbnz	w0, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_mv88e6xxx_g1_stats_wait
	cbnz	w0, LBB0_5
; %bb.2:
Lloh9:
	adrp	x8, _MV88E6XXX_G1_STATS_COUNTER_32@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MV88E6XXX_G1_STATS_COUNTER_32@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_mv88e6xxx_g1_read
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w21, [sp, #12]
Lloh12:
	adrp	x8, _MV88E6XXX_G1_STATS_COUNTER_01@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MV88E6XXX_G1_STATS_COUNTER_01@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_mv88e6xxx_g1_read
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w8, [sp, #12]
	orr	w8, w8, w21, lsl #16
	str	w8, [x19]
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MV88E6XXX_G1_STATS_OP,4,2      ; @MV88E6XXX_G1_STATS_OP
	.comm	_MV88E6XXX_G1_STATS_OP_BUSY,4,2 ; @MV88E6XXX_G1_STATS_OP_BUSY
	.comm	_MV88E6XXX_G1_STATS_OP_READ_CAPTURED,4,2 ; @MV88E6XXX_G1_STATS_OP_READ_CAPTURED
	.comm	_MV88E6XXX_G1_STATS_COUNTER_32,4,2 ; @MV88E6XXX_G1_STATS_COUNTER_32
	.comm	_MV88E6XXX_G1_STATS_COUNTER_01,4,2 ; @MV88E6XXX_G1_STATS_COUNTER_01
.subsections_via_symbols
