	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encx24j600_soft_reset
_encx24j600_soft_reset:                 ## @encx24j600_soft_reset
	.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	%rdi, %r14
	movl	(%rdi), %edi
	movl	$1, %esi
	callq	_regcache_cache_bypass
	movq	_EUDAST_TEST_VAL@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	movl	$-10, %ebx
	movq	_EUDAST@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_encx24j600_write_reg
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_encx24j600_read_reg
	movq	%rax, %r12
	movl	$25, %edi
	movl	$100, %esi
	callq	_usleep_range
	movq	(%r13), %rdx
	cmpq	%rdx, %r12
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	jne	LBB0_1
## %bb.3:
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_regcache_cache_bypass
	jmp	LBB0_4
LBB0_6:
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_regcache_cache_bypass
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.7:
	movq	_ESTAT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_encx24j600_read_reg
	movq	_CLKRDY@GOTPCREL(%rip), %rbx
	testq	%rax, (%rbx)
	jne	LBB0_17
## %bb.8:
	movl	$25, %edi
	movl	$100, %esi
	callq	_usleep_range
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_encx24j600_read_reg
	testq	%rax, (%rbx)
	jne	LBB0_17
## %bb.9:
	movl	$25, %edi
	movl	$100, %esi
	callq	_usleep_range
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_encx24j600_read_reg
	testq	%rax, (%rbx)
	jne	LBB0_17
## %bb.10:
	movl	$25, %edi
	movl	$100, %esi
	callq	_usleep_range
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_encx24j600_read_reg
	testq	%rax, (%rbx)
	jne	LBB0_17
## %bb.11:
	movl	$25, %edi
	movl	$100, %esi
	callq	_usleep_range
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_encx24j600_read_reg
	testq	%rax, (%rbx)
	jne	LBB0_17
## %bb.12:
	movl	$25, %edi
	movl	$100, %esi
	callq	_usleep_range
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_encx24j600_read_reg
	testq	%rax, (%rbx)
	jne	LBB0_17
## %bb.13:
	movl	$25, %edi
	movl	$100, %esi
	callq	_usleep_range
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_encx24j600_read_reg
	testq	%rax, (%rbx)
	jne	LBB0_17
## %bb.14:
	movl	$25, %edi
	movl	$100, %esi
	callq	_usleep_range
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_encx24j600_read_reg
	testq	%rax, (%rbx)
	jne	LBB0_17
## %bb.15:
	movl	$25, %edi
	movl	$100, %esi
	callq	_usleep_range
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_encx24j600_read_reg
	testq	%rax, (%rbx)
	jne	LBB0_17
## %bb.16:
	movl	$25, %edi
	movl	$100, %esi
	callq	_usleep_range
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_encx24j600_read_reg
	testq	%rax, (%rbx)
	je	LBB0_4
LBB0_17:
	movq	_SETETHRST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_encx24j600_cmd
	movl	$25, %edi
	movl	$100, %esi
	callq	_usleep_range
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_encx24j600_read_reg
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_4:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movl	$256, %edi                      ## imm = 0x100
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	xorl	%eax, %eax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_EUDAST,4,2                     ## @EUDAST
	.comm	_EUDAST_TEST_VAL,8,3            ## @EUDAST_TEST_VAL
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_ESTAT,4,2                      ## @ESTAT
	.comm	_CLKRDY,8,3                     ## @CLKRDY
	.comm	_SETETHRST,4,2                  ## @SETETHRST
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_encx24j600_soft_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encx24j600_soft_reset
_encx24j600_soft_reset:                 ; @encx24j600_soft_reset
	.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	x19, x0
	ldr	w0, [x0]
	mov	w1, #1
	bl	_regcache_cache_bypass
Lloh0:
	adrp	x23, _EUDAST_TEST_VAL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EUDAST_TEST_VAL@GOTPAGEOFF]
	ldr	x2, [x23]
	mov	w22, #-10
Lloh2:
	adrp	x21, _EUDAST@GOTPAGE
Lloh3:
	ldr	x21, [x21, _EUDAST@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_encx24j600_write_reg
	ldr	w1, [x21]
	mov	x0, x19
	bl	_encx24j600_read_reg
	mov	x20, x0
	mov	w0, #25
	mov	w1, #100
	bl	_usleep_range
	ldr	x2, [x23]
	cmp	x20, x2
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	adds	w22, w22, #1
	b.lo	LBB0_1
; %bb.3:
	ldr	w0, [x19]
	mov	w1, #0
	bl	_regcache_cache_bypass
	b	LBB0_17
LBB0_4:
	ldr	w0, [x19]
	mov	w1, #0
	bl	_regcache_cache_bypass
	cbz	w22, LBB0_17
; %bb.5:
Lloh4:
	adrp	x20, _ESTAT@GOTPAGE
Lloh5:
	ldr	x20, [x20, _ESTAT@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_encx24j600_read_reg
Lloh6:
	adrp	x22, _CLKRDY@GOTPAGE
Lloh7:
	ldr	x22, [x22, _CLKRDY@GOTPAGEOFF]
	ldr	x8, [x22]
	tst	x8, x0
	b.ne	LBB0_15
; %bb.6:
	mov	w0, #25
	mov	w1, #100
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_encx24j600_read_reg
	ldr	x8, [x22]
	tst	x8, x0
	b.ne	LBB0_15
; %bb.7:
	mov	w0, #25
	mov	w1, #100
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_encx24j600_read_reg
	ldr	x8, [x22]
	tst	x8, x0
	b.ne	LBB0_15
; %bb.8:
	mov	w0, #25
	mov	w1, #100
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_encx24j600_read_reg
	ldr	x8, [x22]
	tst	x8, x0
	b.ne	LBB0_15
; %bb.9:
	mov	w0, #25
	mov	w1, #100
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_encx24j600_read_reg
	ldr	x8, [x22]
	tst	x8, x0
	b.ne	LBB0_15
; %bb.10:
	mov	w0, #25
	mov	w1, #100
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_encx24j600_read_reg
	ldr	x8, [x22]
	tst	x8, x0
	b.ne	LBB0_15
; %bb.11:
	mov	w0, #25
	mov	w1, #100
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_encx24j600_read_reg
	ldr	x8, [x22]
	tst	x8, x0
	b.ne	LBB0_15
; %bb.12:
	mov	w0, #25
	mov	w1, #100
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_encx24j600_read_reg
	ldr	x8, [x22]
	tst	x8, x0
	b.ne	LBB0_15
; %bb.13:
	mov	w0, #25
	mov	w1, #100
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_encx24j600_read_reg
	ldr	x8, [x22]
	tst	x8, x0
	b.ne	LBB0_15
; %bb.14:
	mov	w0, #25
	mov	w1, #100
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_encx24j600_read_reg
	ldr	x8, [x22]
	tst	x8, x0
	b.eq	LBB0_17
LBB0_15:
Lloh8:
	adrp	x8, _SETETHRST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SETETHRST@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_encx24j600_cmd
	mov	w0, #25
	mov	w1, #100
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x19
	bl	_encx24j600_read_reg
	cbz	x0, LBB0_20
; %bb.16:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh13:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	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_20:
	mov	w0, #256
	mov	w1, #1000
	bl	_usleep_range
	mov	w0, #0
	b	LBB0_19
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EUDAST,4,2                     ; @EUDAST
	.comm	_EUDAST_TEST_VAL,8,3            ; @EUDAST_TEST_VAL
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_ESTAT,4,2                      ; @ESTAT
	.comm	_CLKRDY,8,3                     ; @CLKRDY
	.comm	_SETETHRST,4,2                  ; @SETETHRST
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_encx24j600_soft_reset
.subsections_via_symbols
