	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlgmac_rx_desc_reset
_xlgmac_rx_desc_reset:                  ## @xlgmac_rx_desc_reset
	.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	32(%rsi), %r12
	movl	(%rdi), %ecx
	movl	$1, %r14d
	movl	4(%rdi), %eax
	orl	%ecx, %eax
	je	LBB0_4
## %bb.1:
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.2:
	incl	%edx
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%ecx
	testl	%edx, %edx
	je	LBB0_4
LBB0_3:
	xorl	%r14d, %r14d
LBB0_4:
	movq	(%rsi), %r15
	movq	16(%rsi), %rbx
	addq	24(%rsi), %rbx
	addq	8(%rsi), %r15
	movq	%rbx, %rdi
	callq	_lower_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%r12)
	movq	%rbx, %rdi
	callq	_upper_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r12)
	movq	%r15, %rdi
	callq	_lower_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r12)
	movq	%r15, %rdi
	callq	_upper_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r12)
	movq	_RX_NORMAL_DESC3_INTE_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_RX_NORMAL_DESC3_INTE_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movl	%r14d, %ecx
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, (%r12)
	xorl	%eax, %eax
	callq	_dma_wmb
	movq	(%r12), %rdi
	movq	_RX_NORMAL_DESC3_OWN_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RX_NORMAL_DESC3_OWN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, (%r12)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_wmb                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_NORMAL_DESC3_INTE_POS,4,2   ## @RX_NORMAL_DESC3_INTE_POS
	.comm	_RX_NORMAL_DESC3_INTE_LEN,4,2   ## @RX_NORMAL_DESC3_INTE_LEN
	.comm	_RX_NORMAL_DESC3_OWN_POS,4,2    ## @RX_NORMAL_DESC3_OWN_POS
	.comm	_RX_NORMAL_DESC3_OWN_LEN,4,2    ## @RX_NORMAL_DESC3_OWN_LEN
	.no_dead_strip	_xlgmac_rx_desc_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlgmac_rx_desc_reset
_xlgmac_rx_desc_reset:                  ; @xlgmac_rx_desc_reset
	.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
	ldr	x22, [x1, #32]
	ldp	w8, w9, [x0]
	orr	w9, w9, w8
	cbz	w9, LBB0_4
; %bb.1:
	cbz	w8, LBB0_3
; %bb.2:
	add	w9, w2, #1
	udiv	w10, w9, w8
	msub	w8, w10, w8, w9
	cbz	w8, LBB0_4
LBB0_3:
	mov	w19, #0
	b	LBB0_5
LBB0_4:
	mov	w19, #1
LBB0_5:
	ldp	x9, x8, [x1, #16]
	add	x20, x9, x8
	ldp	x9, x8, [x1]
	add	x21, x9, x8
	mov	x0, x20
	bl	_lower_32_bits
	bl	_cpu_to_le32
	str	x0, [x22, #24]
	mov	x0, x20
	bl	_upper_32_bits
	bl	_cpu_to_le32
	str	x0, [x22, #16]
	mov	x0, x21
	bl	_lower_32_bits
	bl	_cpu_to_le32
	str	x0, [x22, #8]
	mov	x0, x21
	bl	_upper_32_bits
	bl	_cpu_to_le32
	str	x0, [x22]
Lloh0:
	adrp	x8, _RX_NORMAL_DESC3_INTE_POS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RX_NORMAL_DESC3_INTE_POS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _RX_NORMAL_DESC3_INTE_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RX_NORMAL_DESC3_INTE_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x22]
	bl	_dma_wmb
	ldr	x0, [x22]
Lloh6:
	adrp	x8, _RX_NORMAL_DESC3_OWN_POS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RX_NORMAL_DESC3_OWN_POS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _RX_NORMAL_DESC3_OWN_LEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RX_NORMAL_DESC3_OWN_LEN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x22]
	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
	b	_dma_wmb
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_NORMAL_DESC3_INTE_POS,4,2   ; @RX_NORMAL_DESC3_INTE_POS
	.comm	_RX_NORMAL_DESC3_INTE_LEN,4,2   ; @RX_NORMAL_DESC3_INTE_LEN
	.comm	_RX_NORMAL_DESC3_OWN_POS,4,2    ; @RX_NORMAL_DESC3_OWN_POS
	.comm	_RX_NORMAL_DESC3_OWN_LEN,4,2    ; @RX_NORMAL_DESC3_OWN_LEN
	.no_dead_strip	_xlgmac_rx_desc_reset
.subsections_via_symbols
