	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_asix_get_eeprom                ## -- Begin function asix_get_eeprom
	.p2align	4, 0x90
_asix_get_eeprom:                       ## @asix_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, %r12
	movq	%rsi, %r15
	callq	_netdev_priv
	movq	%rax, %r13
	movl	4(%r15), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_AX_EEPROM_MAGIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r15)
	movl	(%r15), %ecx
	leal	(%rax,%rcx), %r14d
	decl	%r14d
	movl	%ecx, %ebx
	sarl	%ebx
	sarl	%r14d
	movl	%r14d, %edi
	subl	%ebx, %edi
	incl	%edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kmalloc_array
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	cmpl	%r14d, %ebx
	jg	LBB0_10
## %bb.5:
	incl	%r14d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_AX_CMD_READ_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$0, (%rsp)
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	movl	$2, %r8d
	movq	%r12, %r9
	callq	_asix_read_cmd
	testq	%rax, %rax
	js	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	addq	$4, %r12
	cmpl	%ebx, %r14d
	jne	LBB0_8
LBB0_10:
	movl	(%r15), %eax
	movl	4(%r15), %edx
	andl	$1, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AX_EEPROM_MAGIC,4,2            ## @AX_EEPROM_MAGIC
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AX_CMD_READ_EEPROM,4,2         ## @AX_CMD_READ_EEPROM
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_asix_get_eeprom                ; -- Begin function asix_get_eeprom
	.p2align	2
_asix_get_eeprom:                       ; @asix_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	x20, x1
	bl	_netdev_priv
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x9, _AX_EEPROM_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AX_EEPROM_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x20, #8]
	ldr	w9, [x20]
	asr	w23, w9, #1
	add	w8, w8, w9
	sub	w8, w8, #1
	asr	w24, w8, #1
	sub	w8, w24, w23
	add	w0, w8, #1
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kmalloc_array
	cbz	x0, LBB0_8
; %bb.2:
	mov	x22, x0
	cmp	w23, w24
	b.gt	LBB0_6
; %bb.3:
	add	w25, w24, #1
Lloh6:
	adrp	x26, _AX_CMD_READ_EEPROM@GOTPAGE
Lloh7:
	ldr	x26, [x26, _AX_CMD_READ_EEPROM@GOTPAGEOFF]
	mov	x24, x22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	mov	x0, x21
	mov	x2, x23
	mov	w3, #0
	mov	w4, #2
	mov	x5, x24
	mov	w6, #0
	bl	_asix_read_cmd
	tbnz	x0, #63, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	add	x24, x24, #4
	cmp	w25, w23
	b.ne	LBB0_4
LBB0_6:
	ldp	w8, w2, [x20]
	and	x8, x8, #0x1
	add	x1, x22, x8, lsl #2
	mov	x0, x19
	bl	_memcpy
	mov	x0, x22
	bl	_kfree
	mov	w0, #0
	b	LBB0_11
LBB0_7:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	mov	x0, x22
	bl	_kfree
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AX_EEPROM_MAGIC,4,2            ; @AX_EEPROM_MAGIC
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AX_CMD_READ_EEPROM,4,2         ; @AX_CMD_READ_EEPROM
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
