	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_power_off                  ## -- Begin function phy_power_off
	.p2align	4, 0x90
_phy_power_off:                         ## @phy_power_off
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	leaq	16(%rdi), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	(%rbx), %eax
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.2:
	movq	24(%rbx), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	*%rcx
	testl	%eax, %eax
	js	LBB0_9
## %bb.5:
	movl	(%rbx), %eax
	jmp	LBB0_6
LBB0_3:
	movl	$1, %eax
LBB0_6:
	decl	%eax
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_phy_pm_runtime_put
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_regulator_disable
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%eax, %r12d
	addq	$20, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r12d, %r14d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"phy poweroff failed --> %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_power_off                  ; -- Begin function phy_power_off
	.p2align	2
_phy_power_off:                         ; @phy_power_off
	.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_8
; %bb.1:
	mov	x19, x0
	add	x20, x0, #16
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x19
	blr	x8
	tbnz	w0, #31, LBB0_10
; %bb.4:
	ldr	w8, [x19]
	b	LBB0_6
LBB0_5:
	mov	w8, #1
LBB0_6:
	sub	w8, w8, #1
	str	w8, [x19]
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	bl	_phy_pm_runtime_put
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_regulator_disable
LBB0_8:
	mov	w21, #0
LBB0_9:
	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_10:
	mov	x21, x0
	add	x0, x19, #20
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phy poweroff failed --> %d\n"

.subsections_via_symbols
