	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ugeth_graceful_stop_tx
_ugeth_graceful_stop_tx:                ## @ugeth_graceful_stop_tx
	.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
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movl	8(%r12), %edi
	movq	_UCC_GETH_UCCE_GRA@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_clrbits32
	movl	4(%r12), %edi
	movl	(%r15), %esi
	callq	_out_be32
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_ucc_fast_get_qe_cr_subblock
	movq	_QE_GRACEFUL_STOP_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_QE_CR_PROTOCOL_ETHERNET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_qe_issue_cmd
	movl	$-9, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_msleep
	movl	4(%r12), %edi
	callq	_in_be32
	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:
	movl	$1, (%r12)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UCC_GETH_UCCE_GRA,4,2          ## @UCC_GETH_UCCE_GRA
	.comm	_QE_GRACEFUL_STOP_TX,4,2        ## @QE_GRACEFUL_STOP_TX
	.comm	_QE_CR_PROTOCOL_ETHERNET,4,2    ## @QE_CR_PROTOCOL_ETHERNET
	.no_dead_strip	_ugeth_graceful_stop_tx
.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_tx
_ugeth_graceful_stop_tx:                ; @ugeth_graceful_stop_tx
	.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	x19, x0
	ldr	x20, [x0, #8]
	ldr	w0, [x20, #8]
Lloh0:
	adrp	x21, _UCC_GETH_UCCE_GRA@GOTPAGE
Lloh1:
	ldr	x21, [x21, _UCC_GETH_UCCE_GRA@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_clrbits32
	ldr	w0, [x20, #4]
	ldr	w1, [x21]
	bl	_out_be32
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_ucc_fast_get_qe_cr_subblock
	mov	x1, x0
Lloh2:
	adrp	x8, _QE_GRACEFUL_STOP_TX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QE_GRACEFUL_STOP_TX@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _QE_CR_PROTOCOL_ETHERNET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QE_CR_PROTOCOL_ETHERNET@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_qe_issue_cmd
	mov	w19, #-9
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_msleep
	ldr	w0, [x20, #4]
	bl	_in_be32
	ldr	w8, [x21]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w19, #0, #4, eq
	add	w19, w19, #1
	b.ne	LBB0_1
; %bb.2:
	mov	w8, #1
	str	w8, [x20]
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_UCC_GETH_UCCE_GRA,4,2          ; @UCC_GETH_UCCE_GRA
	.comm	_QE_GRACEFUL_STOP_TX,4,2        ; @QE_GRACEFUL_STOP_TX
	.comm	_QE_CR_PROTOCOL_ETHERNET,4,2    ; @QE_CR_PROTOCOL_ETHERNET
	.no_dead_strip	_ugeth_graceful_stop_tx
.subsections_via_symbols
