	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_txq_prepare_tx_stop
_xgbe_txq_prepare_tx_stop:              ## @xgbe_txq_prepare_tx_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	%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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_XGBE_DMA_STOP_TIMEOUT@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	imulq	(%rax), %r12
	addq	%rdi, %r12
	movq	%r12, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_MTL_Q_TQDR@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_XGMAC_MTL_IOREAD
	movl	%eax, %ebx
	movl	(%r13), %esi
	movq	_TRCSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_XGMAC_GET_BITS
	cmpl	$1, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	movq	_TXQSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_XGMAC_GET_BITS
	testl	%eax, %eax
	jne	LBB0_4
LBB0_5:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_info                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_XGBE_DMA_STOP_TIMEOUT,8,3      ## @XGBE_DMA_STOP_TIMEOUT
	.comm	_HZ,8,3                         ## @HZ
	.comm	_MTL_Q_TQDR,4,2                 ## @MTL_Q_TQDR
	.comm	_TRCSTS,4,2                     ## @TRCSTS
	.comm	_TXQSTS,4,2                     ## @TXQSTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timed out waiting for Tx queue %u to empty\n"

	.no_dead_strip	_xgbe_txq_prepare_tx_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_txq_prepare_tx_stop
_xgbe_txq_prepare_tx_stop:              ; @xgbe_txq_prepare_tx_stop
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
Lloh2:
	adrp	x8, _XGBE_DMA_STOP_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XGBE_DMA_STOP_TIMEOUT@GOTPAGEOFF]
	ldr	x0, [x23]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _HZ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	madd	x21, x9, x8, x0
	mov	x1, x21
	bl	_time_before
	cbz	x0, LBB0_5
; %bb.1:
Lloh8:
	adrp	x24, _MTL_Q_TQDR@GOTPAGE
Lloh9:
	ldr	x24, [x24, _MTL_Q_TQDR@GOTPAGEOFF]
Lloh10:
	adrp	x25, _TRCSTS@GOTPAGE
Lloh11:
	ldr	x25, [x25, _TRCSTS@GOTPAGEOFF]
Lloh12:
	adrp	x26, _TXQSTS@GOTPAGE
Lloh13:
	ldr	x26, [x26, _TXQSTS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #500
	mov	w1, #1000
	bl	_usleep_range
	ldr	x0, [x23]
	mov	x1, x21
	bl	_time_before
	cbz	x0, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x24]
	mov	x0, x20
	mov	x1, x19
	bl	_XGMAC_MTL_IOREAD
	mov	x22, x0
	ldr	w1, [x24]
	ldr	w2, [x25]
	bl	_XGMAC_GET_BITS
	cmp	w0, #1
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x24]
	ldr	w2, [x26]
	mov	x0, x22
	bl	_XGMAC_GET_BITS
	cbnz	w0, LBB0_2
LBB0_5:
	ldr	x0, [x23]
	mov	x1, x21
	bl	_time_before
	cbz	x0, LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w0, [x20]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_netdev_info
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_XGBE_DMA_STOP_TIMEOUT,8,3      ; @XGBE_DMA_STOP_TIMEOUT
	.comm	_HZ,8,3                         ; @HZ
	.comm	_MTL_Q_TQDR,4,2                 ; @MTL_Q_TQDR
	.comm	_TRCSTS,4,2                     ; @TRCSTS
	.comm	_TXQSTS,4,2                     ; @TXQSTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timed out waiting for Tx queue %u to empty\n"

	.no_dead_strip	_xgbe_txq_prepare_tx_stop
.subsections_via_symbols
