	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srp_alloc_iu_bufs
_srp_alloc_iu_bufs:                     ## @srp_alloc_iu_bufs
	.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, %r13
	movq	_SRP_RQ_SIZE@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r13), %edi
	movl	32(%r13), %esi
	movl	(%r14), %edx
	movl	(%r12), %ecx
	callq	_srp_alloc_iu
	movq	16(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	16(%r13), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_4:
	movq	_SRP_SQ_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_16
## %bb.5:
	leaq	24(%r13), %r14
	xorl	%ebx, %ebx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r13), %edi
	movl	28(%r13), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	callq	_srp_alloc_iu
	movq	(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rsi
	callq	_list_add
	incq	%rbx
	movq	_SRP_SQ_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_9:
	cmpl	$0, (%r15)
	jle	LBB0_12
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r13), %edi
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	callq	_srp_free_iu
	movq	16(%r13), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_12:
	movq	_SRP_SQ_SIZE@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_15
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r13), %edi
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	callq	_srp_free_iu
	movq	(%r13), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_14
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SRP_RQ_SIZE,4,2                ## @SRP_RQ_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_SRP_SQ_SIZE,4,2                ## @SRP_SQ_SIZE
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_srp_alloc_iu_bufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srp_alloc_iu_bufs
_srp_alloc_iu_bufs:                     ; @srp_alloc_iu_bufs
	.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
Lloh0:
	adrp	x22, _SRP_RQ_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SRP_RQ_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x21, _SRP_SQ_SIZE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SRP_SQ_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, #0
Lloh6:
	adrp	x24, _DMA_FROM_DEVICE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _DMA_FROM_DEVICE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	ldr	w1, [x19, #32]
	ldr	w2, [x23]
	ldr	w3, [x24]
	bl	_srp_alloc_iu
	ldr	x8, [x19, #16]
	lsl	x9, x20, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x22]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_4:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x24, #0
	add	x20, x19, #24
Lloh8:
	adrp	x25, _DMA_TO_DEVICE@GOTPAGE
Lloh9:
	ldr	x25, [x25, _DMA_TO_DEVICE@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	ldr	w1, [x19, #28]
	ldr	w2, [x23]
	ldr	w3, [x25]
	bl	_srp_alloc_iu
	ldr	x8, [x19]
	lsl	x9, x24, #3
	str	x0, [x8, x9]
	ldr	x8, [x19]
	ldr	x0, [x8, x9]
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x20
	bl	_list_add
	add	x24, x24, #1
	ldrsw	x8, [x21]
	cmp	x24, x8
	b.lt	LBB0_6
LBB0_8:
	mov	w0, #0
	b	LBB0_16
LBB0_9:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x20, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	ldr	x8, [x19, #16]
	lsl	x23, x20, #3
	ldr	x1, [x8, x23]
	bl	_srp_free_iu
	ldr	x8, [x19, #16]
	str	xzr, [x8, x23]
	add	x20, x20, #1
	ldrsw	x8, [x22]
	cmp	x20, x8
	b.lt	LBB0_11
LBB0_12:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.13:
	mov	x20, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	lsl	x22, x20, #3
	ldr	x1, [x8, x22]
	bl	_srp_free_iu
	ldr	x8, [x19]
	str	xzr, [x8, x22]
	add	x20, x20, #1
	ldrsw	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_14
LBB0_15:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SRP_RQ_SIZE,4,2                ; @SRP_RQ_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_SRP_SQ_SIZE,4,2                ; @SRP_SQ_SIZE
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_srp_alloc_iu_bufs
.subsections_via_symbols
