	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc9420_eeprom_send_cmd
_smsc9420_eeprom_send_cmd:              ## @smsc9420_eeprom_send_cmd
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_hw@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	(%rdi), %edx
	leaq	L_.str(%rip), %rcx
	movl	%r14d, %r8d
	callq	_netif_dbg
	movq	_E2P_CMD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_smsc9420_reg_read
	movq	_E2P_CMD_EPC_BUSY_@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	testl	%eax, %edx
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %esi
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_warn
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_2:
	orl	%r14d, %edx
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_smsc9420_reg_write
	movl	$-100, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_smsc9420_reg_read
	testl	%eax, (%r13)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	jne	LBB0_3
	jmp	LBB0_6
LBB0_5:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.7:
	movq	_E2P_CMD_EPC_TIMEOUT_@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.9:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_info
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_6:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_info
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"op 0x%08x\n"

	.comm	_E2P_CMD,4,2                    ## @E2P_CMD
	.comm	_E2P_CMD_EPC_BUSY_,4,2          ## @E2P_CMD_EPC_BUSY_
L_.str.1:                               ## @.str.1
	.asciz	"Busy at start\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.2:                               ## @.str.2
	.asciz	"TIMED OUT\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_E2P_CMD_EPC_TIMEOUT_,4,2       ## @E2P_CMD_EPC_TIMEOUT_
L_.str.3:                               ## @.str.3
	.asciz	"Error occurred during eeprom operation\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_smsc9420_eeprom_send_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc9420_eeprom_send_cmd
_smsc9420_eeprom_send_cmd:              ; @smsc9420_eeprom_send_cmd
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _hw@GOTPAGE
Lloh1:
	ldr	x21, [x21, _hw@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w2, [x0]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	x4, x20
	bl	_netif_dbg
Lloh4:
	adrp	x22, _E2P_CMD@GOTPAGE
Lloh5:
	ldr	x22, [x22, _E2P_CMD@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_smsc9420_reg_read
Lloh6:
	adrp	x23, _E2P_CMD_EPC_BUSY_@GOTPAGE
Lloh7:
	ldr	x23, [x23, _E2P_CMD_EPC_BUSY_@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x21]
	ldr	w2, [x19]
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netif_warn
Lloh10:
	adrp	x8, _EBUSY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	orr	w2, w8, w20
	ldr	w1, [x22]
	mov	x0, x19
	bl	_smsc9420_reg_write
	mov	w20, #-100
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_msleep
	ldr	w1, [x22]
	mov	x0, x19
	bl	_smsc9420_reg_read
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	adds	w20, w20, #1
	b.lo	LBB0_3
	b	LBB0_8
LBB0_5:
	cbz	w20, LBB0_8
; %bb.6:
Lloh12:
	adrp	x8, _E2P_CMD_EPC_TIMEOUT_@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E2P_CMD_EPC_TIMEOUT_@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.7:
	ldr	w1, [x21]
	ldr	w2, [x19]
Lloh15:
	adrp	x3, l_.str.3@PAGE
Lloh16:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netif_info
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	ldr	w1, [x21]
	ldr	w2, [x19]
Lloh19:
	adrp	x3, l_.str.2@PAGE
Lloh20:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netif_info
Lloh21:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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_11:
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"op 0x%08x\n"

	.comm	_E2P_CMD,4,2                    ; @E2P_CMD
	.comm	_E2P_CMD_EPC_BUSY_,4,2          ; @E2P_CMD_EPC_BUSY_
l_.str.1:                               ; @.str.1
	.asciz	"Busy at start\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.2:                               ; @.str.2
	.asciz	"TIMED OUT\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_E2P_CMD_EPC_TIMEOUT_,4,2       ; @E2P_CMD_EPC_TIMEOUT_
l_.str.3:                               ; @.str.3
	.asciz	"Error occurred during eeprom operation\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_smsc9420_eeprom_send_cmd
.subsections_via_symbols
