	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_init                       ## -- Begin function phy_init
	.p2align	4, 0x90
_phy_init:                              ## @phy_init
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	callq	_phy_pm_runtime_get_sync
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	jne	LBB0_11
LBB0_4:
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_5
LBB0_9:
	incq	%rax
	movq	%rax, (%rbx)
LBB0_10:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_phy_pm_runtime_put
	jmp	LBB0_11
LBB0_1:
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	16(%rbx), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	*%rcx
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_12
## %bb.8:
	movq	(%rbx), %rax
	jmp	LBB0_9
LBB0_6:
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_12:
	leaq	12(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_err
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"phy init failed --> %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_init                       ; -- Begin function phy_init
	.p2align	2
_phy_init:                              ; @phy_init
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	bl	_phy_pm_runtime_get_sync
	tbz	w0, #31, LBB0_3
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_8
LBB0_3:
	add	x20, x19, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x19]
	cbz	x8, LBB0_9
LBB0_4:
	mov	w21, #0
LBB0_5:
	add	x8, x8, #1
	str	x8, [x19]
LBB0_6:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	bl	_phy_pm_runtime_put
	b	LBB0_8
LBB0_7:
	mov	w21, #0
LBB0_8:
	mov	x0, x21
	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
LBB0_9:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.10:
	mov	x0, x19
	blr	x8
	mov	x21, x0
	tbnz	w0, #31, LBB0_12
; %bb.11:
	ldr	x8, [x19]
	b	LBB0_5
LBB0_12:
	add	x0, x19, #12
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phy init failed --> %d\n"

.subsections_via_symbols
