	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lima_ctx_create                ## -- Begin function lima_ctx_create
	.p2align	4, 0x90
_lima_ctx_create:                       ## @lima_ctx_create
	.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
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, 16(%rax)
	leaq	12(%rax), %rdi
	callq	_kref_init
	movq	_lima_pipe_num@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	movl	$0, %r13d
	jle	LBB0_6
## %bb.3:
	movq	%r12, %rbx
	addq	$8, %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	%r13, %rdi
	movq	(%r12), %rsi
	addq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_lima_sched_context_init
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movslq	(%r15), %rax
	cmpq	%rax, %r13
	jl	LBB0_4
LBB0_6:
	movq	_xa_limit_32b@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_xa_alloc
	testl	%eax, %eax
	movl	$0, %r15d
	jns	LBB0_11
LBB0_7:
	movl	%eax, %r15d
	testl	%r13d, %r13d
	jle	LBB0_10
## %bb.8:
	movl	%r13d, %ebx
	decq	%rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	%rbx, %rdi
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	callq	_lima_sched_context_fini
	leaq	-1(%rbx), %rax
	incq	%rbx
	cmpq	$1, %rbx
	movq	%rax, %rbx
	ja	LBB0_9
LBB0_10:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_11:
	movl	%r15d, %eax
	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
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_lima_pipe_num,4,2              ## @lima_pipe_num
	.comm	_xa_limit_32b,4,2               ## @xa_limit_32b
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lima_ctx_create                ; -- Begin function lima_ctx_create
	.p2align	2
_lima_ctx_create:                       ; @lima_ctx_create
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #16]
	add	x0, x0, #12
	bl	_kref_init
Lloh2:
	adrp	x27, _lima_pipe_num@GOTPAGE
Lloh3:
	ldr	x27, [x27, _lima_pipe_num@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x25, #0
	add	x24, x20, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x0, x25, x8
	ldr	x8, [x20]
	add	x1, x25, x8
	mov	x2, x24
	bl	_lima_sched_context_init
	cbnz	w0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x27]
	cmp	x25, x8
	b.lt	LBB0_3
	b	LBB0_7
LBB0_5:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_13
LBB0_6:
	mov	w25, #0
LBB0_7:
Lloh7:
	adrp	x8, _xa_limit_32b@GOTPAGE
Lloh8:
	ldr	x8, [x8, _xa_limit_32b@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	ldr	w4, [x26]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_xa_alloc
	tbnz	w0, #31, LBB0_9
; %bb.8:
	mov	w23, #0
	b	LBB0_13
LBB0_9:
	mov	x23, x0
	cmp	w25, #1
	b.lt	LBB0_12
; %bb.10:
	mov	w8, w25
	sub	x21, x8, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x0, x21, x8
	ldr	x8, [x20]
	add	x1, x21, x8
	bl	_lima_sched_context_fini
	add	x8, x21, #1
	sub	x21, x21, #1
	cmp	x8, #1
	b.hi	LBB0_11
LBB0_12:
	mov	x0, x20
	bl	_kfree
LBB0_13:
	mov	x0, x23
	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	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_lima_pipe_num,4,2              ; @lima_pipe_num
	.comm	_xa_limit_32b,4,2               ; @xa_limit_32b
.subsections_via_symbols
