	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlgmac_disable_tx
_xlgmac_disable_tx:                     ## @xlgmac_disable_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	%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, %r14
	cmpl	$0, (%rdi)
	je	LBB0_4
## %bb.1:
	movq	8(%r14), %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rbx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_xlgmac_prepare_tx_stop
	incl	%r15d
	addq	$4, %rbx
	cmpl	(%r14), %r15d
	jb	LBB0_2
LBB0_4:
	movq	_MAC_TCR@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	16(%r14), %rdi
	callq	_readl
	movq	_MAC_TCR_TE_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MAC_TCR_TE_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%ebx, %ebx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_XLGMAC_SET_REG_BITS
	movq	(%r15), %rsi
	addq	16(%r14), %rsi
	movl	%eax, %edi
	callq	_writel
	cmpl	$0, 4(%r14)
	je	LBB0_7
## %bb.5:
	movq	_MTL_Q_TQOMR@GOTPCREL(%rip), %r12
	movq	_MTL_Q_TQOMR_TXQEN_LEN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_XLGMAC_MTL_REG
	movq	%rax, %rdi
	callq	_readl
	movq	_MTL_Q_TQOMR_TXQEN_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r13), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_XLGMAC_SET_REG_BITS
	movl	%eax, %r15d
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_XLGMAC_MTL_REG
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_writel
	incl	%ebx
	cmpl	4(%r14), %ebx
	jb	LBB0_6
LBB0_7:
	cmpl	$0, (%r14)
	je	LBB0_11
## %bb.8:
	movq	8(%r14), %rbx
	xorl	%r12d, %r12d
	movq	_DMA_CH_TCR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rbx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_XLGMAC_DMA_REG
	movq	%rax, %rdi
	callq	_readl
	movq	_DMA_CH_TCR_ST_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DMA_CH_TCR_ST_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_XLGMAC_SET_REG_BITS
	movl	%eax, %r15d
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_XLGMAC_DMA_REG
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_writel
	incl	%r12d
	addq	$4, %rbx
	cmpl	(%r14), %r12d
	jb	LBB0_9
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_TCR,8,3                    ## @MAC_TCR
	.comm	_MAC_TCR_TE_POS,4,2             ## @MAC_TCR_TE_POS
	.comm	_MAC_TCR_TE_LEN,4,2             ## @MAC_TCR_TE_LEN
	.comm	_MTL_Q_TQOMR,4,2                ## @MTL_Q_TQOMR
	.comm	_MTL_Q_TQOMR_TXQEN_POS,4,2      ## @MTL_Q_TQOMR_TXQEN_POS
	.comm	_MTL_Q_TQOMR_TXQEN_LEN,4,2      ## @MTL_Q_TQOMR_TXQEN_LEN
	.comm	_DMA_CH_TCR,4,2                 ## @DMA_CH_TCR
	.comm	_DMA_CH_TCR_ST_POS,4,2          ## @DMA_CH_TCR_ST_POS
	.comm	_DMA_CH_TCR_ST_LEN,4,2          ## @DMA_CH_TCR_ST_LEN
	.no_dead_strip	_xlgmac_disable_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlgmac_disable_tx
_xlgmac_disable_tx:                     ; @xlgmac_disable_tx
	.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, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	mov	w21, #0
	ldr	x20, [x19, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_xlgmac_prepare_tx_stop
	add	w21, w21, #1
	add	x20, x20, #4
	ldr	w8, [x19]
	cmp	w21, w8
	b.lo	LBB0_2
LBB0_4:
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x20, _MAC_TCR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MAC_TCR@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _MAC_TCR_TE_POS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAC_TCR_TE_POS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _MAC_TCR_TE_LEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAC_TCR_TE_LEN@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_XLGMAC_SET_REG_BITS
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_7
; %bb.5:
	mov	w20, #0
Lloh8:
	adrp	x22, _MTL_Q_TQOMR@GOTPAGE
Lloh9:
	ldr	x22, [x22, _MTL_Q_TQOMR@GOTPAGEOFF]
Lloh10:
	adrp	x23, _MTL_Q_TQOMR_TXQEN_POS@GOTPAGE
Lloh11:
	ldr	x23, [x23, _MTL_Q_TQOMR_TXQEN_POS@GOTPAGEOFF]
Lloh12:
	adrp	x24, _MTL_Q_TQOMR_TXQEN_LEN@GOTPAGE
Lloh13:
	ldr	x24, [x24, _MTL_Q_TQOMR_TXQEN_LEN@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_XLGMAC_MTL_REG
	bl	_readl
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	w3, #0
	bl	_XLGMAC_SET_REG_BITS
	mov	x21, x0
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_XLGMAC_MTL_REG
	mov	x1, x0
	mov	x0, x21
	bl	_writel
	add	w20, w20, #1
	ldr	w8, [x19, #4]
	cmp	w20, w8
	b.lo	LBB0_6
LBB0_7:
	ldr	w8, [x19]
	cbz	w8, LBB0_11
; %bb.8:
	mov	w22, #0
	ldr	x20, [x19, #8]
Lloh14:
	adrp	x23, _DMA_CH_TCR@GOTPAGE
Lloh15:
	ldr	x23, [x23, _DMA_CH_TCR@GOTPAGEOFF]
Lloh16:
	adrp	x24, _DMA_CH_TCR_ST_POS@GOTPAGE
Lloh17:
	ldr	x24, [x24, _DMA_CH_TCR_ST_POS@GOTPAGEOFF]
Lloh18:
	adrp	x25, _DMA_CH_TCR_ST_LEN@GOTPAGE
Lloh19:
	ldr	x25, [x25, _DMA_CH_TCR_ST_LEN@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	cbz	w8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_XLGMAC_DMA_REG
	bl	_readl
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	w3, #0
	bl	_XLGMAC_SET_REG_BITS
	mov	x21, x0
	ldr	w1, [x23]
	mov	x0, x20
	bl	_XLGMAC_DMA_REG
	mov	x1, x0
	mov	x0, x21
	bl	_writel
	add	w22, w22, #1
	add	x20, x20, #4
	ldr	w8, [x19]
	cmp	w22, w8
	b.lo	LBB0_9
LBB0_11:
	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
	.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 AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_TCR,8,3                    ; @MAC_TCR
	.comm	_MAC_TCR_TE_POS,4,2             ; @MAC_TCR_TE_POS
	.comm	_MAC_TCR_TE_LEN,4,2             ; @MAC_TCR_TE_LEN
	.comm	_MTL_Q_TQOMR,4,2                ; @MTL_Q_TQOMR
	.comm	_MTL_Q_TQOMR_TXQEN_POS,4,2      ; @MTL_Q_TQOMR_TXQEN_POS
	.comm	_MTL_Q_TQOMR_TXQEN_LEN,4,2      ; @MTL_Q_TQOMR_TXQEN_LEN
	.comm	_DMA_CH_TCR,4,2                 ; @DMA_CH_TCR
	.comm	_DMA_CH_TCR_ST_POS,4,2          ; @DMA_CH_TCR_ST_POS
	.comm	_DMA_CH_TCR_ST_LEN,4,2          ; @DMA_CH_TCR_ST_LEN
	.no_dead_strip	_xlgmac_disable_tx
.subsections_via_symbols
