	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm9000_read_eeprom
_dm9000_read_eeprom:                    ## @dm9000_read_eeprom
	.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	%rdx, %r15
	movq	_DM9000_PLATF_NO_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movabsq	$1095216660735, %rax            ## imm = 0xFF000000FF
	movq	%rax, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%esi, %r13d
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	_DM9000_EPAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_iow
	movq	_DM9000_EPCR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_EPCR_ERPRR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_iow
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	callq	_dm9000_wait_eeprom
	movl	$1, %edi
	callq	_msleep
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_iow
	movq	_DM9000_EPDRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ior
	movl	%eax, (%r15)
	movq	_DM9000_EPDRH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ior
	movl	%eax, 4(%r15)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DM9000_PLATF_NO_EEPROM,4,2     ## @DM9000_PLATF_NO_EEPROM
	.comm	_DM9000_EPAR,4,2                ## @DM9000_EPAR
	.comm	_DM9000_EPCR,4,2                ## @DM9000_EPCR
	.comm	_EPCR_ERPRR,4,2                 ## @EPCR_ERPRR
	.comm	_DM9000_EPDRL,4,2               ## @DM9000_EPDRL
	.comm	_DM9000_EPDRH,4,2               ## @DM9000_EPDRH
	.no_dead_strip	_dm9000_read_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm9000_read_eeprom
_dm9000_read_eeprom:                    ; @dm9000_read_eeprom
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _DM9000_PLATF_NO_EEPROM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DM9000_PLATF_NO_EEPROM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	movi	d0, #0x0000ff000000ff
	str	d0, [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
	ret
LBB0_2:
	mov	x23, x1
	mov	x21, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_mutex_lock
	add	x22, x21, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _DM9000_EPAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DM9000_EPAR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x23
	bl	_iow
Lloh6:
	adrp	x23, _DM9000_EPCR@GOTPAGE
Lloh7:
	ldr	x23, [x23, _DM9000_EPCR@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh8:
	adrp	x8, _EPCR_ERPRR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPCR_ERPRR@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_iow
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	bl	_dm9000_wait_eeprom
	mov	w0, #1
	bl	_msleep
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w1, [x23]
	mov	x0, x21
	mov	w2, #0
	bl	_iow
Lloh11:
	adrp	x8, _DM9000_EPDRL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DM9000_EPDRL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_ior
	str	w0, [x19]
Lloh14:
	adrp	x8, _DM9000_EPDRH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DM9000_EPDRH@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_ior
	str	w0, [x19, #4]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	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	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DM9000_PLATF_NO_EEPROM,4,2     ; @DM9000_PLATF_NO_EEPROM
	.comm	_DM9000_EPAR,4,2                ; @DM9000_EPAR
	.comm	_DM9000_EPCR,4,2                ; @DM9000_EPCR
	.comm	_EPCR_ERPRR,4,2                 ; @EPCR_ERPRR
	.comm	_DM9000_EPDRL,4,2               ; @DM9000_EPDRL
	.comm	_DM9000_EPDRH,4,2               ; @DM9000_EPDRH
	.no_dead_strip	_dm9000_read_eeprom
.subsections_via_symbols
