	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm9601_get_eeprom
_dm9601_get_eeprom:                     ## @dm9601_get_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, %r13
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movl	(%r14), %eax
	testb	$1, %al
	jne	LBB0_7
## %bb.1:
	movl	4(%r14), %ecx
	testb	$1, %cl
	jne	LBB0_7
## %bb.2:
	xorl	%r15d, %r15d
	cmpl	$2, %ecx
	jl	LBB0_8
## %bb.3:
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_dm_read_eeprom_word
	testq	%rax, %rax
	js	LBB0_7
## %bb.4:
	addq	$4, %r13
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r14), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	addl	%ebx, %esi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_dm_read_eeprom_word
	addq	$4, %r13
	incq	%rbx
	testq	%rax, %rax
	jns	LBB0_5
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_dm9601_get_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm9601_get_eeprom
_dm9601_get_eeprom:                     ; @dm9601_get_eeprom
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x19, x1
	bl	_netdev_priv
	ldr	w8, [x19]
	tbnz	w8, #0, LBB0_7
; %bb.1:
	ldr	w9, [x19, #4]
	tbnz	w9, #0, LBB0_7
; %bb.2:
	cmp	w9, #2
	b.lt	LBB0_9
; %bb.3:
	mov	x20, x0
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w1, w8, #1
	mov	x2, x21
	bl	_dm_read_eeprom_word
	tbnz	x0, #63, LBB0_7
; %bb.4:
	add	x21, x21, #4
	mov	w22, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w1, w22, w8, asr #1
	mov	x0, x20
	mov	x2, x21
	bl	_dm_read_eeprom_word
	add	x21, x21, #4
	add	x22, x22, #1
	tbz	x0, #63, LBB0_5
LBB0_7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_dm9601_get_eeprom
.subsections_via_symbols
