	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function de_reset_mac
_de_reset_mac:                          ## @de_reset_mac
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_BusMode@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_dr32
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	movq	_CmdReset@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dw32
	movl	$1, %edi
	callq	_mdelay
	movl	(%rbx), %edi
	movq	_de_bus_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dw32
	movl	$1, %edi
	callq	_mdelay
	movl	(%rbx), %edi
	callq	_dr32
	movl	$1, %edi
	callq	_mdelay
	movl	(%rbx), %edi
	callq	_dr32
	movl	$1, %edi
	callq	_mdelay
	movl	(%rbx), %edi
	callq	_dr32
	movl	$1, %edi
	callq	_mdelay
	movl	(%rbx), %edi
	callq	_dr32
	movl	$1, %edi
	callq	_mdelay
	movl	(%rbx), %edi
	callq	_dr32
	movl	$1, %edi
	callq	_mdelay
	movl	$1, %edi
	callq	_mdelay
	movq	_MacStatus@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dr32
	movl	%eax, %ecx
	movq	_RxState@GOTPCREL(%rip), %rax
	movq	_TxState@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	testl	%ecx, %edx
	je	LBB0_3
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	cmpl	$-1, %ecx
	jne	LBB0_6
## %bb.4:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_BusMode,4,2                    ## @BusMode
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CmdReset,4,2                   ## @CmdReset
	.comm	_de_bus_mode,4,2                ## @de_bus_mode
	.comm	_MacStatus,4,2                  ## @MacStatus
	.comm	_RxState,4,2                    ## @RxState
	.comm	_TxState,4,2                    ## @TxState
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_de_reset_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function de_reset_mac
_de_reset_mac:                          ; @de_reset_mac
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _BusMode@GOTPAGE
Lloh1:
	ldr	x19, [x19, _BusMode@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_dr32
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _CmdReset@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CmdReset@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_dw32
	mov	w0, #1
	bl	_mdelay
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _de_bus_mode@GOTPAGE
Lloh6:
	ldr	x8, [x8, _de_bus_mode@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_dw32
	mov	w0, #1
	bl	_mdelay
	ldr	w0, [x19]
	bl	_dr32
	mov	w0, #1
	bl	_mdelay
	ldr	w0, [x19]
	bl	_dr32
	mov	w0, #1
	bl	_mdelay
	ldr	w0, [x19]
	bl	_dr32
	mov	w0, #1
	bl	_mdelay
	ldr	w0, [x19]
	bl	_dr32
	mov	w0, #1
	bl	_mdelay
	ldr	w0, [x19]
	bl	_dr32
	mov	w0, #1
	bl	_mdelay
	mov	w0, #1
	bl	_mdelay
Lloh8:
	adrp	x8, _MacStatus@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MacStatus@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_dr32
Lloh11:
	adrp	x8, _RxState@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RxState@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _TxState@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TxState@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_5
LBB0_2:
Lloh17:
	adrp	x8, _EBUSY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_4
LBB0_7:
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.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	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_BusMode,4,2                    ; @BusMode
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CmdReset,4,2                   ; @CmdReset
	.comm	_de_bus_mode,4,2                ; @de_bus_mode
	.comm	_MacStatus,4,2                  ; @MacStatus
	.comm	_RxState,4,2                    ; @RxState
	.comm	_TxState,4,2                    ; @TxState
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_de_reset_mac
.subsections_via_symbols
