	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_attach_direct              ## -- Begin function phy_attach_direct
	.p2align	4, 0x90
_phy_attach_direct:                     ## @phy_attach_direct
	.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
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	cmpq	$0, 24(%rsi)
	je	LBB0_1
LBB0_3:
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_1:
	leaq	24(%rbx), %r13
	movq	_genphy_driver@GOTPCREL(%rip), %rax
	movq	%rax, (%r13)
	movq	%r13, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	movq	%r13, %rdi
	callq	_device_bind_driver
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_3
LBB0_5:
	movq	%r15, 16(%rbx)
	movl	%r12d, 12(%rbx)
	movl	%r14d, 8(%rbx)
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	_phy_scan_fixups
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	cmovsl	%ecx, %eax
	js	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_genphy_driver,8,3              ## @genphy_driver
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PHY already attached\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_attach_direct              ; -- Begin function phy_attach_direct
	.p2align	2
_phy_attach_direct:                     ; @phy_attach_direct
	.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	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	mov	x23, x1
	ldr	x8, [x23, #24]!
	cbz	x8, LBB0_3
LBB0_1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_3:
Lloh5:
	adrp	x8, _genphy_driver@GOTPAGE
Lloh6:
	ldr	x8, [x8, _genphy_driver@GOTPAGEOFF]
	str	x8, [x23]
	ldr	x8, [x8]
	mov	x0, x23
	blr	x8
	tbnz	w0, #31, LBB0_9
; %bb.4:
	mov	x0, x23
	bl	_device_bind_driver
	cbnz	w0, LBB0_9
	b	LBB0_1
LBB0_5:
	str	x21, [x19, #16]
	stp	w20, w22, [x19, #8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_phy_scan_fixups
	tbnz	w0, #31, LBB0_9
; %bb.7:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x8, x0
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	tbnz	w8, #31, LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_genphy_driver,8,3              ; @genphy_driver
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHY already attached\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
