	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc911x_phy_disable_energy_detect
_smsc911x_phy_disable_energy_detect:    ## @smsc911x_phy_disable_energy_detect
	.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), %rax
	movq	(%rax), %rbx
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r15
	movq	_MII_LAN83C185_CTRL_STATUS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	_MII_LAN83C185_EDPWRDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r12d, %eax
	je	LBB0_7
## %bb.4:
	movl	(%r13), %esi
	notl	%eax
	andl	%eax, %r12d
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	$2, %edi
	callq	_mdelay
	jmp	LBB0_7
LBB0_2:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_SMSC_WARN
	movl	%r12d, %r14d
	jmp	LBB0_7
LBB0_5:
	movl	%eax, %ebx
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_SMSC_WARN
	movl	%ebx, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_LAN83C185_CTRL_STATUS,4,2  ## @MII_LAN83C185_CTRL_STATUS
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed reading PHY control reg"

	.comm	_MII_LAN83C185_EDPWRDOWN,4,2    ## @MII_LAN83C185_EDPWRDOWN
L_.str.1:                               ## @.str.1
	.asciz	"Failed writing PHY control reg"

	.no_dead_strip	_smsc911x_phy_disable_energy_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc911x_phy_disable_energy_detect
_smsc911x_phy_disable_energy_detect:    ; @smsc911x_phy_disable_energy_detect
	.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
	ldr	x8, [x0]
	ldr	x21, [x8]
	cbz	x21, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x22, _MII_LAN83C185_CTRL_STATUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MII_LAN83C185_CTRL_STATUS@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_phy_read
	mov	x19, x0
	tbnz	w0, #31, LBB0_6
; %bb.2:
Lloh2:
	adrp	x8, _MII_LAN83C185_EDPWRDOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MII_LAN83C185_EDPWRDOWN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_5
; %bb.3:
	ldr	w1, [x22]
	bic	w2, w19, w8
	mov	x0, x21
	bl	_phy_write
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mov	w0, #2
	bl	_mdelay
LBB0_5:
	mov	w19, #0
	b	LBB0_9
LBB0_6:
Lloh5:
	adrp	x8, _drv@GOTPAGE
Lloh6:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
	mov	x19, x0
Lloh10:
	adrp	x8, _drv@GOTPAGE
Lloh11:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x20
	bl	_SMSC_WARN
LBB0_9:
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_LAN83C185_CTRL_STATUS,4,2  ; @MII_LAN83C185_CTRL_STATUS
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed reading PHY control reg"

	.comm	_MII_LAN83C185_EDPWRDOWN,4,2    ; @MII_LAN83C185_EDPWRDOWN
l_.str.1:                               ; @.str.1
	.asciz	"Failed writing PHY control reg"

	.no_dead_strip	_smsc911x_phy_disable_energy_detect
.subsections_via_symbols
