	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w5300_hw_reset
_w5300_hw_reset:                        ## @w5300_hw_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_W5300_MR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_MR_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_w5300_write_direct
	movl	$5, %edi
	callq	_mdelay
	movl	(%r14), %r14d
	movq	(%rbx), %r15
	movl	$7, %edi
	callq	_MR_WDF
	movq	_MR_PB@GOTPCREL(%rip), %rcx
	movl	$0, %edx
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	_MR_IND@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_2:
	orl	(%rcx), %eax
	orl	%edx, %eax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_w5300_write_direct
	movq	_W5300_IMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_w5300_write
	movq	%rbx, %rdi
	callq	_w5300_write_macaddr
	movq	_W5300_RMSRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1073741824, %edx               ## imm = 0x40000000
	callq	_w5300_write32
	movq	_W5300_RMSRH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_w5300_write32
	movq	_W5300_TMSRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1073741824, %edx               ## imm = 0x40000000
	callq	_w5300_write32
	movq	_W5300_TMSRH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_w5300_write32
	movq	_W5300_MTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_w5300_write                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_W5300_MR,4,2                   ## @W5300_MR
	.comm	_MR_RST,4,2                     ## @MR_RST
	.comm	_MR_PB,4,2                      ## @MR_PB
	.comm	_MR_IND,4,2                     ## @MR_IND
	.comm	_W5300_IMR,4,2                  ## @W5300_IMR
	.comm	_W5300_RMSRL,4,2                ## @W5300_RMSRL
	.comm	_W5300_RMSRH,4,2                ## @W5300_RMSRH
	.comm	_W5300_TMSRL,4,2                ## @W5300_TMSRL
	.comm	_W5300_TMSRH,4,2                ## @W5300_TMSRH
	.comm	_W5300_MTYPE,4,2                ## @W5300_MTYPE
	.no_dead_strip	_w5300_hw_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w5300_hw_reset
_w5300_hw_reset:                        ; @w5300_hw_reset
	.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
Lloh0:
	adrp	x20, _W5300_MR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _W5300_MR@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _MR_RST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MR_RST@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_w5300_write_direct
	mov	w0, #5
	bl	_mdelay
	ldr	w20, [x20]
	ldr	x21, [x19]
	mov	w0, #7
	bl	_MR_WDF
Lloh5:
	adrp	x8, _MR_PB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MR_PB@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh8:
	adrp	x9, _MR_IND@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MR_IND@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	x21, #0
	csel	w9, wzr, w9, eq
	orr	w2, w8, w9
	mov	x0, x19
	mov	x1, x20
	bl	_w5300_write_direct
Lloh11:
	adrp	x8, _W5300_IMR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _W5300_IMR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_w5300_write
	mov	x0, x19
	bl	_w5300_write_macaddr
Lloh14:
	adrp	x8, _W5300_RMSRL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _W5300_RMSRL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1073741824
	bl	_w5300_write32
Lloh17:
	adrp	x8, _W5300_RMSRH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _W5300_RMSRH@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_w5300_write32
Lloh20:
	adrp	x8, _W5300_TMSRL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _W5300_TMSRL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1073741824
	bl	_w5300_write32
Lloh23:
	adrp	x8, _W5300_TMSRH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _W5300_TMSRH@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_w5300_write32
Lloh26:
	adrp	x8, _W5300_MTYPE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _W5300_MTYPE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #255
	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
	b	_w5300_write
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_W5300_MR,4,2                   ; @W5300_MR
	.comm	_MR_RST,4,2                     ; @MR_RST
	.comm	_MR_PB,4,2                      ; @MR_PB
	.comm	_MR_IND,4,2                     ; @MR_IND
	.comm	_W5300_IMR,4,2                  ; @W5300_IMR
	.comm	_W5300_RMSRL,4,2                ; @W5300_RMSRL
	.comm	_W5300_RMSRH,4,2                ; @W5300_RMSRH
	.comm	_W5300_TMSRL,4,2                ; @W5300_TMSRL
	.comm	_W5300_TMSRH,4,2                ; @W5300_TMSRH
	.comm	_W5300_MTYPE,4,2                ; @W5300_MTYPE
	.no_dead_strip	_w5300_hw_reset
.subsections_via_symbols
