	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_stop                       ## -- Begin function phy_stop
	.p2align	4, 0x90
_phy_stop:                              ## @phy_stop
	.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
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_PHY_HALTED@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	(%rbx), %rax
	je	LBB0_4
## %bb.1:
	movq	8(%rbx), %rcx
	movq	_PHY_POLL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.2:
	movq	_PHY_INTERRUPT_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_config_interrupt
	movq	%rbx, %rdi
	callq	_phy_clear_interrupt
	movq	(%r15), %rax
LBB0_3:
	movq	%rax, (%rbx)
LBB0_4:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_HALTED,8,3                 ## @PHY_HALTED
	.comm	_PHY_POLL,8,3                   ## @PHY_POLL
	.comm	_PHY_INTERRUPT_DISABLED,4,2     ## @PHY_INTERRUPT_DISABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_stop                       ; -- Begin function phy_stop
	.p2align	2
_phy_stop:                              ; @phy_stop
	.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
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x21, _PHY_HALTED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PHY_HALTED@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.1:
	ldr	x9, [x20, #8]
Lloh2:
	adrp	x10, _PHY_POLL@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PHY_POLL@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _PHY_INTERRUPT_DISABLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PHY_INTERRUPT_DISABLED@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_phy_config_interrupt
	mov	x0, x20
	bl	_phy_clear_interrupt
	ldr	x8, [x21]
LBB0_3:
	str	x8, [x20]
LBB0_4:
	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
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_HALTED,8,3                 ; @PHY_HALTED
	.comm	_PHY_POLL,8,3                   ; @PHY_POLL
	.comm	_PHY_INTERRUPT_DISABLED,4,2     ; @PHY_INTERRUPT_DISABLED
.subsections_via_symbols
