	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc9420_eeprom_reload
_smsc9420_eeprom_reload:                ## @smsc9420_eeprom_reload
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	xorl	%edi, %edi
	testq	%r12, %r12
	sete	%dil
	callq	_BUG_ON
	movq	_E2P_CMD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_smsc9420_reg_read
	movq	_E2P_CMD_EPC_BUSY_@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	testl	%eax, %edx
	je	LBB0_2
## %bb.1:
	movq	_DRV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_smsc_dbg
	jmp	LBB0_7
LBB0_2:
	movl	(%r14), %esi
	movq	_E2P_CMD_EPC_CMD_RELOAD_@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r12, %rdi
	callq	_smsc9420_reg_write
	movl	$-100001, %ebx                  ## imm = 0xFFFE795F
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_smsc9420_reg_read
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	jne	LBB0_3
## %bb.6:
	movq	_DRV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_smsc_warn
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_E2P_CMD,4,2                    ## @E2P_CMD
	.comm	_E2P_CMD_EPC_BUSY_,4,2          ## @E2P_CMD_EPC_BUSY_
	.comm	_DRV,4,2                        ## @DRV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"smsc9420_eeprom_reload: Eeprom busy"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_E2P_CMD_EPC_CMD_RELOAD_,4,2    ## @E2P_CMD_EPC_CMD_RELOAD_
L_.str.1:                               ## @.str.1
	.asciz	"smsc9420_eeprom_reload: Eeprom timed out"

	.no_dead_strip	_smsc9420_eeprom_reload
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc9420_eeprom_reload
_smsc9420_eeprom_reload:                ; @smsc9420_eeprom_reload
	.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	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
Lloh0:
	adrp	x20, _E2P_CMD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _E2P_CMD@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_smsc9420_reg_read
Lloh2:
	adrp	x21, _E2P_CMD_EPC_BUSY_@GOTPAGE
Lloh3:
	ldr	x21, [x21, _E2P_CMD_EPC_BUSY_@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _DRV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DRV@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_smsc_dbg
	b	LBB0_6
LBB0_2:
	ldr	w1, [x20]
Lloh9:
	adrp	x9, _E2P_CMD_EPC_CMD_RELOAD_@GOTPAGE
Lloh10:
	ldr	x9, [x9, _E2P_CMD_EPC_CMD_RELOAD_@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_smsc9420_reg_write
	mov	w22, #31071
	movk	w22, #65534, lsl #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x20]
	mov	x0, x19
	bl	_smsc9420_reg_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	adds	w22, w22, #1
	b.lo	LBB0_3
; %bb.5:
Lloh12:
	adrp	x8, _DRV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DRV@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_smsc_warn
LBB0_6:
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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_8:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_E2P_CMD,4,2                    ; @E2P_CMD
	.comm	_E2P_CMD_EPC_BUSY_,4,2          ; @E2P_CMD_EPC_BUSY_
	.comm	_DRV,4,2                        ; @DRV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"smsc9420_eeprom_reload: Eeprom busy"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_E2P_CMD_EPC_CMD_RELOAD_,4,2    ; @E2P_CMD_EPC_CMD_RELOAD_
l_.str.1:                               ; @.str.1
	.asciz	"smsc9420_eeprom_reload: Eeprom timed out"

	.no_dead_strip	_smsc9420_eeprom_reload
.subsections_via_symbols
