	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_phy_device                 ## -- Begin function get_phy_device
	.p2align	4, 0x90
_get_phy_device:                        ## @get_phy_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	-20(%rbp), %rdx
	callq	_get_phy_id
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %edi
	callq	_ERR_PTR
	jmp	LBB0_5
LBB0_2:
	movl	-20(%rbp), %edx
	movl	%edx, %eax
	notl	%eax
	testl	$536870911, %eax                ## imm = 0x1FFFFFFF
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_phy_device_create
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_phy_device                 ; -- Begin function get_phy_device
	.p2align	2
_get_phy_device:                        ; @get_phy_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	add	x2, sp, #12
	bl	_get_phy_id
	cbz	w0, LBB0_2
; %bb.1:
	bl	_ERR_PTR
	b	LBB0_5
LBB0_2:
	ldr	w2, [sp, #12]
	mvn	w8, w2
	tst	w8, #0x1fffffff
	b.ne	LBB0_4
; %bb.3:
	mov	x0, #0
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_phy_device_create
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
