	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm9000_phy_read
_dm9000_phy_read:                       ## @dm9000_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	%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
	movl	%edx, %r14d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mutex_lock
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	8(%rbx), %edi
	callq	_readb
	movl	%eax, %r12d
	movq	_DM9000_EPAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DM9000_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%r14d, %edx
	movq	%rbx, %rdi
	callq	_iow
	movq	_DM9000_EPCR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_EPCR_ERPRR@GOTPCREL(%rip), %rax
	movq	_EPCR_EPOS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_iow
	movl	8(%rbx), %esi
	movl	%r12d, %edi
	callq	_writeb
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_dm9000_msleep
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	8(%rbx), %edi
	callq	_readb
	movl	%eax, %r12d
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_iow
	movq	_DM9000_EPDRH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ior
	movl	%eax, %r13d
	shll	$8, %r13d
	movq	_DM9000_EPDRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ior
	movl	%eax, %r14d
	orl	%r13d, %r14d
	movl	8(%rbx), %esi
	movl	%r12d, %edi
	callq	_writeb
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	callq	_mutex_unlock
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	callq	_dm9000_dbg
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DM9000_EPAR,4,2                ## @DM9000_EPAR
	.comm	_DM9000_PHY,4,2                 ## @DM9000_PHY
	.comm	_DM9000_EPCR,4,2                ## @DM9000_EPCR
	.comm	_EPCR_ERPRR,4,2                 ## @EPCR_ERPRR
	.comm	_EPCR_EPOS,4,2                  ## @EPCR_EPOS
	.comm	_DM9000_EPDRH,4,2               ## @DM9000_EPDRH
	.comm	_DM9000_EPDRL,4,2               ## @DM9000_EPDRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"phy_read[%02x] -> %04x\n"

	.no_dead_strip	_dm9000_phy_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm9000_phy_read
_dm9000_phy_read:                       ; @dm9000_phy_read
	.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, x2
	bl	_netdev_priv
	mov	x20, x0
	bl	_mutex_lock
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w0, [x20, #8]
	bl	_readb
	mov	x22, x0
Lloh0:
	adrp	x8, _DM9000_EPAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM9000_EPAR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DM9000_PHY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DM9000_PHY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w2, w8, w19
	mov	x0, x20
	bl	_iow
Lloh6:
	adrp	x23, _DM9000_EPCR@GOTPAGE
Lloh7:
	ldr	x23, [x23, _DM9000_EPCR@GOTPAGEOFF]
Lloh8:
	adrp	x8, _EPCR_ERPRR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPCR_ERPRR@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _EPCR_EPOS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EPCR_EPOS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_iow
	ldr	w1, [x20, #8]
	mov	x0, x22
	bl	_writeb
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	mov	w1, #1
	bl	_dm9000_msleep
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w0, [x20, #8]
	bl	_readb
	mov	x22, x0
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #0
	bl	_iow
Lloh14:
	adrp	x8, _DM9000_EPDRH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DM9000_EPDRH@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ior
	mov	x23, x0
Lloh17:
	adrp	x8, _DM9000_EPDRL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DM9000_EPDRL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ior
	orr	w23, w0, w23, lsl #8
	ldr	w1, [x20, #8]
	mov	x0, x22
	bl	_writeb
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	bl	_mutex_unlock
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #5
	mov	x3, x19
	mov	x4, x23
	bl	_dm9000_dbg
	mov	x0, x23
	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
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DM9000_EPAR,4,2                ; @DM9000_EPAR
	.comm	_DM9000_PHY,4,2                 ; @DM9000_PHY
	.comm	_DM9000_EPCR,4,2                ; @DM9000_EPCR
	.comm	_EPCR_ERPRR,4,2                 ; @EPCR_ERPRR
	.comm	_EPCR_EPOS,4,2                  ; @EPCR_EPOS
	.comm	_DM9000_EPDRH,4,2               ; @DM9000_EPDRH
	.comm	_DM9000_EPDRL,4,2               ; @DM9000_EPDRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phy_read[%02x] -> %04x\n"

	.no_dead_strip	_dm9000_phy_read
.subsections_via_symbols
