	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_eeprom
_get_eeprom:                            ## @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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r13
	callq	_netdev2adap
	movq	%rax, %r12
	movq	_EEPROMSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kvzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_EEPROM_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movslq	(%r13), %rax
	movq	%rax, %rbx
	andq	$-4, %rbx
	movl	4(%r13), %edx
	leal	(%rdx,%rax), %ecx
	cmpl	%ecx, %ebx
	jge	LBB0_7
## %bb.3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx,4), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_eeprom_rd_phys
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$4, %rbx
	movl	(%r13), %eax
	movl	4(%r13), %edx
	leal	(%rdx,%rax), %ecx
	movslq	%ecx, %rcx
	addq	$16, %r14
	cmpq	%rcx, %rbx
	jl	LBB0_4
LBB0_7:
	cltq
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_5:
	movl	%eax, %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_8:
	movq	%rbx, %rdi
	callq	_kvfree
LBB0_9:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROMSIZE,4,2                 ## @EEPROMSIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EEPROM_MAGIC,4,2               ## @EEPROM_MAGIC
	.no_dead_strip	_get_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_eeprom
_get_eeprom:                            ; @get_eeprom
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	bl	_netdev2adap
	mov	x22, x0
Lloh0:
	adrp	x8, _EEPROMSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEPROMSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kvzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x8, _EEPROM_MAGIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EEPROM_MAGIC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	ldp	w8, w2, [x21]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	and	x23, x8, #0xfffffffffffffffc
	add	w9, w2, w8
	cmp	w23, w9
	b.ge	LBB0_5
; %bb.2:
	add	x24, x20, x23, lsl #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_eeprom_rd_phys
	cbnz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #4
	ldp	w8, w2, [x21]
	add	w9, w2, w8
	add	x24, x24, #16
	cmp	x23, w9, sxtw
	b.lt	LBB0_3
LBB0_5:
	add	x1, x20, w8, sxtw #2
	mov	x0, x19
	bl	_memcpy
	mov	w25, #0
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_9
LBB0_7:
	mov	x25, x0
LBB0_8:
	mov	x0, x20
	bl	_kvfree
LBB0_9:
	mov	x0, x25
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROMSIZE,4,2                 ; @EEPROMSIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EEPROM_MAGIC,4,2               ; @EEPROM_MAGIC
	.no_dead_strip	_get_eeprom
.subsections_via_symbols
