	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlgmac_prepare_rx_stop
_xlgmac_prepare_rx_stop:                ## @xlgmac_prepare_rx_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	_XLGMAC_DMA_STOP_TIMEOUT@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	imulq	(%rax), %r12
	addq	%rdi, %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_MTL_Q_RQDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_XLGMAC_MTL_REG
	movl	%eax, %edi
	callq	_readl
	movl	%eax, %ebx
	movq	_MTL_Q_RQDR_PRXQ_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MTL_Q_RQDR_PRXQ_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_XLGMAC_GET_REG_BITS
	movl	%eax, %r13d
	movq	_MTL_Q_RQDR_RXQSTS_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MTL_Q_RQDR_RXQSTS_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_XLGMAC_GET_REG_BITS
	orl	%r13d, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	jmp	LBB0_1
LBB0_4:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	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	_XLGMAC_DMA_STOP_TIMEOUT,8,3    ## @XLGMAC_DMA_STOP_TIMEOUT
	.comm	_HZ,8,3                         ## @HZ
	.comm	_MTL_Q_RQDR,4,2                 ## @MTL_Q_RQDR
	.comm	_MTL_Q_RQDR_PRXQ_POS,4,2        ## @MTL_Q_RQDR_PRXQ_POS
	.comm	_MTL_Q_RQDR_PRXQ_LEN,4,2        ## @MTL_Q_RQDR_PRXQ_LEN
	.comm	_MTL_Q_RQDR_RXQSTS_POS,4,2      ## @MTL_Q_RQDR_RXQSTS_POS
	.comm	_MTL_Q_RQDR_RXQSTS_LEN,4,2      ## @MTL_Q_RQDR_RXQSTS_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timed out waiting for Rx queue %u to empty\n"

	.no_dead_strip	_xlgmac_prepare_rx_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlgmac_prepare_rx_stop
_xlgmac_prepare_rx_stop:                ; @xlgmac_prepare_rx_stop
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x9, _jiffies@GOTPAGE
Lloh1:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh2:
	adrp	x8, _XLGMAC_DMA_STOP_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XLGMAC_DMA_STOP_TIMEOUT@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x9]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _HZ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	madd	x21, x9, x8, x0
	mov	x1, x21
	bl	_time_before
	cbz	x0, LBB0_4
; %bb.1:
Lloh9:
	adrp	x25, _MTL_Q_RQDR@GOTPAGE
Lloh10:
	ldr	x25, [x25, _MTL_Q_RQDR@GOTPAGEOFF]
Lloh11:
	adrp	x26, _MTL_Q_RQDR_PRXQ_POS@GOTPAGE
Lloh12:
	ldr	x26, [x26, _MTL_Q_RQDR_PRXQ_POS@GOTPAGEOFF]
Lloh13:
	adrp	x27, _MTL_Q_RQDR_PRXQ_LEN@GOTPAGE
Lloh14:
	ldr	x27, [x27, _MTL_Q_RQDR_PRXQ_LEN@GOTPAGEOFF]
Lloh15:
	adrp	x28, _MTL_Q_RQDR_RXQSTS_POS@GOTPAGE
Lloh16:
	ldr	x28, [x28, _MTL_Q_RQDR_RXQSTS_POS@GOTPAGEOFF]
Lloh17:
	adrp	x24, _MTL_Q_RQDR_RXQSTS_LEN@GOTPAGE
Lloh18:
	ldr	x24, [x24, _MTL_Q_RQDR_RXQSTS_LEN@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x25]
	mov	x0, x20
	mov	x1, x19
	bl	_XLGMAC_MTL_REG
	bl	_readl
	mov	x22, x0
	ldr	w1, [x26]
	ldr	w2, [x27]
	bl	_XLGMAC_GET_REG_BITS
	mov	x23, x0
	ldr	w1, [x28]
	ldr	w2, [x24]
	mov	x0, x22
	bl	_XLGMAC_GET_REG_BITS
	orr	w8, w23, w0
	cbz	w8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #500
	mov	w1, #1000
	bl	_usleep_range
Lloh19:
	adrp	x8, _jiffies@GOTPAGE
Lloh20:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh21:
	ldr	x0, [x8]
	mov	x1, x21
	bl	_time_before
	cbnz	x0, LBB0_2
LBB0_4:
Lloh22:
	adrp	x8, _jiffies@GOTPAGE
Lloh23:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh24:
	ldr	x0, [x8]
	mov	x1, x21
	bl	_time_before
	cbz	x0, LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w0, [x20]
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_netdev_info
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_XLGMAC_DMA_STOP_TIMEOUT,8,3    ; @XLGMAC_DMA_STOP_TIMEOUT
	.comm	_HZ,8,3                         ; @HZ
	.comm	_MTL_Q_RQDR,4,2                 ; @MTL_Q_RQDR
	.comm	_MTL_Q_RQDR_PRXQ_POS,4,2        ; @MTL_Q_RQDR_PRXQ_POS
	.comm	_MTL_Q_RQDR_PRXQ_LEN,4,2        ; @MTL_Q_RQDR_PRXQ_LEN
	.comm	_MTL_Q_RQDR_RXQSTS_POS,4,2      ; @MTL_Q_RQDR_RXQSTS_POS
	.comm	_MTL_Q_RQDR_RXQSTS_LEN,4,2      ; @MTL_Q_RQDR_RXQSTS_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timed out waiting for Rx queue %u to empty\n"

	.no_dead_strip	_xlgmac_prepare_rx_stop
.subsections_via_symbols
