	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enc28j60_phy_read
_enc28j60_phy_read:                     ## @enc28j60_phy_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_mutex_lock
	movq	_MIREGADR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_nolock_regb_write
	movq	_MICMD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_MICMD_MIIRD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_nolock_regb_write
	movq	%rbx, %rdi
	callq	_wait_phy_ready
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_nolock_regb_write
	movq	_MIRDL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nolock_regw_read
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIREGADR,4,2                   ## @MIREGADR
	.comm	_MICMD,4,2                      ## @MICMD
	.comm	_MICMD_MIIRD,4,2                ## @MICMD_MIIRD
	.comm	_MIRDL,4,2                      ## @MIRDL
	.no_dead_strip	_enc28j60_phy_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enc28j60_phy_read
_enc28j60_phy_read:                     ; @enc28j60_phy_read
	.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, x1
	mov	x20, x0
	bl	_mutex_lock
Lloh0:
	adrp	x8, _MIREGADR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIREGADR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_nolock_regb_write
Lloh3:
	adrp	x19, _MICMD@GOTPAGE
Lloh4:
	ldr	x19, [x19, _MICMD@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh5:
	adrp	x8, _MICMD_MIIRD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MICMD_MIIRD@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_nolock_regb_write
	mov	x0, x20
	bl	_wait_phy_ready
	ldr	w1, [x19]
	mov	x0, x20
	mov	w2, #0
	bl	_nolock_regb_write
Lloh8:
	adrp	x8, _MIRDL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MIRDL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_nolock_regw_read
	mov	x19, x0
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MIREGADR,4,2                   ; @MIREGADR
	.comm	_MICMD,4,2                      ; @MICMD
	.comm	_MICMD_MIIRD,4,2                ; @MICMD_MIIRD
	.comm	_MIRDL,4,2                      ; @MIRDL
	.no_dead_strip	_enc28j60_phy_read
.subsections_via_symbols
