	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar8xxx_read                    ## -- Begin function ar8xxx_read
	.p2align	4, 0x90
_ar8xxx_read:                           ## @ar8xxx_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %eax
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	leaq	-28(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	leaq	-20(%rbp), %rcx
	movl	%eax, %edi
	callq	_split_addr
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	-20(%rbp), %ecx
	movq	%rbx, %rdi
	movl	$24, %esi
	xorl	%edx, %edx
	callq	*8(%rbx)
	xorl	%eax, %eax
	callq	_wait_for_page_switch
	movl	-24(%rbp), %esi
	orl	$16, %esi
	movl	-28(%rbp), %edx
	movq	%r14, %rdi
	callq	_ar8xxx_mii_read32
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar8xxx_read                    ; -- Begin function ar8xxx_read
	.p2align	2
_ar8xxx_read:                           ; @ar8xxx_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x8, x1
	mov	x19, x0
	ldr	x20, [x0]
	add	x1, sp, #12
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x8
	bl	_split_addr
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x20, #8]
	ldr	w3, [sp, #4]
	mov	x0, x20
	mov	w1, #24
	mov	w2, #0
	blr	x8
	bl	_wait_for_page_switch
	ldp	w8, w2, [sp, #8]
	orr	w1, w8, #0x10
	mov	x0, x19
	bl	_ar8xxx_mii_read32
	mov	x19, x0
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
