	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function de4x5_reset_phy
_de4x5_reset_phy:                       ## @de4x5_reset_phy
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	cmpq	$0, 48(%rax)
	je	LBB0_1
## %bb.3:
	cmpq	$0, 8(%rbx)
	jns	LBB0_11
## %bb.4:
	movq	(%rbx), %rax
	movq	32(%rbx), %rcx
	leaq	(%rax,%rax,2), %rax
	movq	8(%rcx,%rax,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_srom_exec
	movq	(%rbx), %rax
	movq	32(%rbx), %rcx
	leaq	(%rax,%rax,2), %rax
	leaq	(%rcx,%rax,8), %r15
	addq	$8, %r15
	jmp	LBB0_8
LBB0_1:
	movq	(%rbx), %rax
	movq	32(%rbx), %rcx
	leaq	(%rax,%rax,2), %rax
	cmpq	$0, 16(%rcx,%rax,8)
	je	LBB0_12
## %bb.2:
	cmpq	$0, 8(%rbx)
	jns	LBB0_11
	jmp	LBB0_9
LBB0_6:
	movq	40(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.7:
	movq	%rbx, %r15
	addq	$40, %r15
	movq	%r14, %rdi
	callq	_srom_exec
LBB0_8:
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_srom_exec
LBB0_9:
	cmpq	$0, 24(%rbx)
	je	LBB0_11
## %bb.10:
	movq	_MII_CR_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MII_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movq	32(%rbx), %rcx
	leaq	(%rax,%rax,2), %rax
	movl	(%rcx,%rax,8), %edx
	movq	_DE4X5_MII@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_mii_wr
LBB0_11:
	cmpq	$0, 24(%rbx)
	je	LBB0_12
## %bb.13:
	movq	_MII_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MII_CR_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movl	$500, %r8d                      ## imm = 0x1F4
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_test_mii_reg                   ## TAILCALL
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_HARD_RESET,4,2             ## @PHY_HARD_RESET
	.comm	_MII_CR_RST,4,2                 ## @MII_CR_RST
	.comm	_MII_CR,4,2                     ## @MII_CR
	.comm	_DE4X5_MII,4,2                  ## @DE4X5_MII
	.comm	_DC21140,8,3                    ## @DC21140
	.no_dead_strip	_de4x5_reset_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function de4x5_reset_phy
_de4x5_reset_phy:                       ; @de4x5_reset_phy
	.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
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x20, #8]
	tbz	x8, #63, LBB0_11
; %bb.2:
	ldr	x8, [x20, #32]
	ldr	x9, [x20]
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_srom_exec
	ldr	x8, [x20, #32]
	ldr	x9, [x20]
	mov	w10, #24
	madd	x8, x9, x10, x8
	add	x21, x8, #8
	b	LBB0_8
LBB0_4:
	ldr	x8, [x20, #32]
	ldr	x9, [x20]
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_13
; %bb.5:
	ldr	x8, [x20, #8]
	tbz	x8, #63, LBB0_11
	b	LBB0_9
LBB0_6:
	mov	x21, x20
	ldr	x1, [x21, #40]!
	cbz	x1, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_srom_exec
LBB0_8:
	ldr	x1, [x21]
	mov	x0, x19
	bl	_srom_exec
LBB0_9:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_11
; %bb.10:
Lloh0:
	adrp	x8, _MII_CR_RST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_CR_RST@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _MII_CR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MII_CR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x20, #32]
	ldr	x9, [x20]
	mov	w10, #24
	mul	x9, x9, x10
	ldr	w2, [x8, x9]
Lloh6:
	adrp	x8, _DE4X5_MII@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DE4X5_MII@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	bl	_mii_wr
LBB0_11:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_13
; %bb.12:
Lloh9:
	adrp	x8, _MII_CR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MII_CR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _MII_CR_RST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MII_CR_RST@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #500
	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	_test_mii_reg
LBB0_13:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_HARD_RESET,4,2             ; @PHY_HARD_RESET
	.comm	_MII_CR_RST,4,2                 ; @MII_CR_RST
	.comm	_MII_CR,4,2                     ; @MII_CR
	.comm	_DE4X5_MII,4,2                  ; @DE4X5_MII
	.comm	_DC21140,8,3                    ; @DC21140
	.no_dead_strip	_de4x5_reset_phy
.subsections_via_symbols
