	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ugeth_graceful_stop_rx
_ugeth_graceful_stop_rx:                ## @ugeth_graceful_stop_rx
	.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
	movq	%rdi, %r13
	movq	(%rdi), %rdi
	movq	16(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_in_8
	movq	_GRACEFUL_STOP_ACKNOWLEDGE_RX@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	notl	%esi
	andl	%eax, %esi
	movq	(%r13), %rdi
	callq	_out_8
	movl	$-9, %ebx
	movq	_QE_GRACEFUL_STOP_RX@GOTPCREL(%rip), %r12
	movq	_QE_CR_PROTOCOL_ETHERNET@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	(%rax), %edi
	callq	_ucc_fast_get_qe_cr_subblock
	movl	(%r12), %edi
	movl	(%r14), %edx
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_qe_issue_cmd
	movl	$10, %edi
	callq	_msleep
	movq	(%r13), %rdi
	callq	_in_8
	testl	%eax, (%r15)
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%rbx), %eax
	testl	%ebx, %ebx
	movl	%eax, %ebx
	jne	LBB0_1
LBB0_3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRACEFUL_STOP_ACKNOWLEDGE_RX,4,2 ## @GRACEFUL_STOP_ACKNOWLEDGE_RX
	.comm	_QE_GRACEFUL_STOP_RX,4,2        ## @QE_GRACEFUL_STOP_RX
	.comm	_QE_CR_PROTOCOL_ETHERNET,4,2    ## @QE_CR_PROTOCOL_ETHERNET
	.no_dead_strip	_ugeth_graceful_stop_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ugeth_graceful_stop_rx
_ugeth_graceful_stop_rx:                ; @ugeth_graceful_stop_rx
	.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	x19, x0
	ldr	x20, [x0, #16]
	ldr	x0, [x0]
	bl	_in_8
Lloh0:
	adrp	x21, _GRACEFUL_STOP_ACKNOWLEDGE_RX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GRACEFUL_STOP_ACKNOWLEDGE_RX@GOTPAGEOFF]
	ldr	w8, [x21]
	bic	w1, w0, w8
	ldr	x0, [x19]
	bl	_out_8
	mov	w22, #-9
Lloh2:
	adrp	x23, _QE_GRACEFUL_STOP_RX@GOTPAGE
Lloh3:
	ldr	x23, [x23, _QE_GRACEFUL_STOP_RX@GOTPAGEOFF]
Lloh4:
	adrp	x24, _QE_CR_PROTOCOL_ETHERNET@GOTPAGE
Lloh5:
	ldr	x24, [x24, _QE_CR_PROTOCOL_ETHERNET@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_ucc_fast_get_qe_cr_subblock
	mov	x1, x0
	ldr	w0, [x23]
	ldr	w2, [x24]
	mov	w3, #0
	bl	_qe_issue_cmd
	mov	w0, #10
	bl	_msleep
	ldr	x0, [x19]
	bl	_in_8
	ldr	w8, [x21]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w22, #0, #4, eq
	add	w22, w22, #1
	b.ne	LBB0_1
; %bb.2:
	mov	w8, #1
	str	w8, [x20]
	mov	w0, #0
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GRACEFUL_STOP_ACKNOWLEDGE_RX,4,2 ; @GRACEFUL_STOP_ACKNOWLEDGE_RX
	.comm	_QE_GRACEFUL_STOP_RX,4,2        ; @QE_GRACEFUL_STOP_RX
	.comm	_QE_CR_PROTOCOL_ETHERNET,4,2    ; @QE_CR_PROTOCOL_ETHERNET
	.no_dead_strip	_ugeth_graceful_stop_rx
.subsections_via_symbols
