	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srpt_alloc_ioctx_ring
_srpt_alloc_ioctx_ring:                 ## @srpt_alloc_ioctx_ring
	.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	%r9d, %r15d
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r12
	movl	%esi, %r13d
	movq	%rdi, %r14
	xorl	%edi, %edi
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	cmpl	$4, %edx
	setne	%dil
	callq	_WARN_ON
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	movl	$8, %esi
	callq	_kvmalloc_array
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	testl	%r13d, %r13d
	jle	LBB0_10
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	movl	%r15d, %ecx
	callq	_srpt_alloc_ioctx
	movq	%rax, (%rbx,%r13,8)
	testq	%rax, %rax
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, (%rax)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 4(%rax)
	incq	%r13
	cmpq	%r13, %r14
	jne	LBB0_3
	jmp	LBB0_10
LBB0_4:
	testl	%r13d, %r13d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_7
## %bb.5:
	incq	%r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-16(%rbx,%r13,8), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	callq	_srpt_free_ioctx
	decq	%r13
	cmpq	$1, %r13
	jg	LBB0_6
LBB0_7:
	movq	%rbx, %rdi
	callq	_kvfree
LBB0_8:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_srpt_alloc_ioctx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srpt_alloc_ioctx_ring
_srpt_alloc_ioctx_ring:                 ; @srpt_alloc_ioctx_ring
	.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, x5
	mov	x23, x4
	mov	x20, x3
	mov	x24, x2
	mov	x25, x1
	mov	x21, x0
	cmp	w2, #4
	cset	w0, ne
	bl	_WARN_ON
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x25
	mov	w1, #8
	bl	_kvmalloc_array
	mov	x22, x0
	cbz	x0, LBB0_9
; %bb.1:
	cmp	w25, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x26, #0
	mov	w25, w25
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x24
	mov	x2, x20
	mov	x3, x19
	bl	_srpt_alloc_ioctx
	str	x0, [x22, x26, lsl #3]
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	stp	w26, w23, [x0]
	add	x26, x26, #1
	cmp	x25, x26
	b.ne	LBB0_3
	b	LBB0_9
LBB0_5:
	cbz	w26, LBB0_8
; %bb.6:
	sub	x23, x26, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x22, x23, lsl #3]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_srpt_free_ioctx
	add	x8, x23, #1
	sub	x23, x23, #1
	cmp	x8, #1
	b.gt	LBB0_7
LBB0_8:
	mov	x0, x22
	bl	_kvfree
	mov	x22, #0
LBB0_9:
	mov	x0, x22
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_srpt_alloc_ioctx_ring
.subsections_via_symbols
