	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_sge_txq_uld
_alloc_sge_txq_uld:                     ## @alloc_sge_txq_uld
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %r12d
	movl	%r12d, %eax
	cltd
	idivl	8(%rdi)
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%r12d, %r12d
	jle	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	shlq	$2, %r12
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	movl	$1024, (%rsi,%r13)              ## imm = 0x400
	addq	%r13, %rsi
	movq	(%rbx), %rcx
	movl	%r15d, %eax
	cltd
	idivl	-44(%rbp)                       ## 4-byte Folded Reload
	cltq
	movl	(%rcx,%rax,4), %edx
	movl	12(%rbx), %ecx
	movq	%rbx, %rdi
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_t4_sge_alloc_uld_txq
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	addq	$4, %r13
	cmpq	%r13, %r12
	jne	LBB0_2
LBB0_5:
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_6:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_free_sge_txq_uld
LBB0_7:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_alloc_sge_txq_uld
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_sge_txq_uld
_alloc_sge_txq_uld:                     ; @alloc_sge_txq_uld
	.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
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x23, #0
	mov	w24, #0
	ldr	w9, [x0, #8]
	lsl	x25, x8, #2
	mov	w26, #1024
	sdiv	w27, w8, w9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x1, x8, x23
	str	w26, [x1]
	ldr	x8, [x20]
	sdiv	w9, w24, w27
	ldr	w2, [x8, w9, sxtw #2]
	ldr	w3, [x20, #12]
	mov	x0, x20
	mov	x4, x21
	bl	_t4_sge_alloc_uld_txq
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w24, w24, #1
	add	x23, x23, #4
	cmp	x25, x23
	b.ne	LBB0_2
LBB0_4:
	mov	w22, #0
	b	LBB0_6
LBB0_5:
	mov	x22, x0
	mov	x0, x20
	mov	x1, x19
	bl	_free_sge_txq_uld
LBB0_6:
	mov	x0, x22
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_alloc_sge_txq_uld
.subsections_via_symbols
