	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xge_setup_desc                 ## -- Begin function xge_setup_desc
	.p2align	4, 0x90
_xge_setup_desc:                        ## @xge_setup_desc
	.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	_XGENE_ENET_NUM_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movl	$8, %r13d
	xorl	%r12d, %r12d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incq	%r12
	addl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	movl	%r12d, %ebx
	andl	%eax, %ebx
	movq	_XGENE_ENET_DESC_SIZE@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	movq	8(%rdi), %r14
	addl	(%rdi), %ebx
	movq	_E@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_SET_BITS
	movl	%eax, %r15d
	movq	_PKT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SLOT_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SET_BITS
	orl	%eax, %r15d
	movl	%r15d, %edi
	callq	_cpu_to_le64
	movq	%rax, (%r14,%r13)
	movl	%ebx, %edi
	callq	_upper_32_bits
	movl	%eax, %r15d
	movq	_NEXT_DESC_ADDRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_SET_BITS
	movl	%eax, %ebx
	movq	_NEXT_DESC_ADDRH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_SET_BITS
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le64
	movq	_XGENE_ENET_NUM_DESC@GOTPCREL(%rip), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, -8(%r14,%r13)
	movslq	(%rcx), %rax
	addq	$16, %r13
	cmpq	%rax, %r12
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XGENE_ENET_NUM_DESC,4,2        ## @XGENE_ENET_NUM_DESC
	.comm	_XGENE_ENET_DESC_SIZE,4,2       ## @XGENE_ENET_DESC_SIZE
	.comm	_E,4,2                          ## @E
	.comm	_PKT_SIZE,4,2                   ## @PKT_SIZE
	.comm	_SLOT_EMPTY,4,2                 ## @SLOT_EMPTY
	.comm	_NEXT_DESC_ADDRL,4,2            ## @NEXT_DESC_ADDRL
	.comm	_NEXT_DESC_ADDRH,4,2            ## @NEXT_DESC_ADDRH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xge_setup_desc                 ; -- Begin function xge_setup_desc
	.p2align	2
_xge_setup_desc:                        ; @xge_setup_desc
	.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
Lloh0:
	adrp	x28, _XGENE_ENET_NUM_DESC@GOTPAGE
Lloh1:
	ldr	x28, [x28, _XGENE_ENET_NUM_DESC@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x23, #0
	mov	x24, #0
Lloh2:
	adrp	x22, _SLOT_EMPTY@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SLOT_EMPTY@GOTPAGEOFF]
Lloh4:
	adrp	x25, _NEXT_DESC_ADDRL@GOTPAGE
Lloh5:
	ldr	x25, [x25, _NEXT_DESC_ADDRL@GOTPAGEOFF]
Lloh6:
	adrp	x26, _NEXT_DESC_ADDRH@GOTPAGE
Lloh7:
	ldr	x26, [x26, _NEXT_DESC_ADDRH@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x19, #8]
	add	x24, x24, #1
	mov	w9, #2147483647
	add	w8, w8, w9
	and	w8, w8, w24
	ldr	w9, [x19]
Lloh8:
	adrp	x10, _XGENE_ENET_DESC_SIZE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _XGENE_ENET_DESC_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	madd	w20, w10, w8, w9
Lloh11:
	adrp	x8, _E@GOTPAGE
Lloh12:
	ldr	x8, [x8, _E@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_SET_BITS
	mov	x21, x0
Lloh14:
	adrp	x8, _PKT_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PKT_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_SET_BITS
	orr	w0, w0, w21
	bl	_cpu_to_le64
	add	x27, x27, x23
	str	x0, [x27, #8]
	mov	x0, x20
	bl	_upper_32_bits
	mov	x21, x0
	ldr	w0, [x25]
	mov	x1, x20
	bl	_SET_BITS
	mov	x20, x0
	ldr	w0, [x26]
	mov	x1, x21
	bl	_SET_BITS
	orr	w0, w0, w20
	bl	_cpu_to_le64
	str	x0, [x27]
	ldrsw	x8, [x28]
	add	x23, x23, #16
	cmp	x24, x8
	b.lt	LBB0_2
LBB0_3:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_XGENE_ENET_NUM_DESC,4,2        ; @XGENE_ENET_NUM_DESC
	.comm	_XGENE_ENET_DESC_SIZE,4,2       ; @XGENE_ENET_DESC_SIZE
	.comm	_E,4,2                          ; @E
	.comm	_PKT_SIZE,4,2                   ; @PKT_SIZE
	.comm	_SLOT_EMPTY,4,2                 ; @SLOT_EMPTY
	.comm	_NEXT_DESC_ADDRL,4,2            ; @NEXT_DESC_ADDRL
	.comm	_NEXT_DESC_ADDRH,4,2            ; @NEXT_DESC_ADDRH
.subsections_via_symbols
