	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lima_sched_task_init           ## -- Begin function lima_sched_task_init
	.p2align	4, 0x90
_lima_sched_task_init:                  ## @lima_sched_task_init
	.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	%r8, %r14
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	leal	(,%r15,8), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_kmemdup
	movl	%eax, 12(%r13)
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_4
## %bb.2:
	movl	%r15d, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%r12,8), %rdi
	callq	_drm_gem_object_get
	incq	%r12
	cmpq	%r12, %r14
	jne	LBB0_3
LBB0_4:
	leaq	16(%r13), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_drm_sched_job_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movl	12(%r13), %edi
	callq	_kfree
	jmp	LBB0_7
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_6:
	movl	%r15d, (%r13)
	movq	%r14, %rdi
	callq	_lima_vm_get
	movl	%eax, 8(%r13)
	addq	$4, %r13
	movq	_XA_FLAGS_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_xa_init_flags
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %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	_XA_FLAGS_ALLOC,4,2             ## @XA_FLAGS_ALLOC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lima_sched_task_init           ; -- Begin function lima_sched_task_init
	.p2align	2
_lima_sched_task_init:                  ; @lima_sched_task_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	lsl	w1, w3, #3
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_kmemdup
	str	w0, [x19, #12]
	cbz	w0, LBB0_6
; %bb.1:
	cmp	w21, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w24, w21
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23], #8
	bl	_drm_gem_object_get
	subs	x24, x24, #1
	b.ne	LBB0_3
LBB0_4:
	add	x0, x19, #16
	mov	x1, x22
	mov	x2, x20
	bl	_drm_sched_job_init
	mov	x22, x0
	cbz	w0, LBB0_7
; %bb.5:
	ldr	w0, [x19, #12]
	bl	_kfree
	b	LBB0_8
LBB0_6:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_7:
	str	w21, [x19]
	mov	x0, x20
	bl	_lima_vm_get
	str	w0, [x19, #8]
	add	x0, x19, #4
Lloh6:
	adrp	x8, _XA_FLAGS_ALLOC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XA_FLAGS_ALLOC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_xa_init_flags
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_XA_FLAGS_ALLOC,4,2             ; @XA_FLAGS_ALLOC
.subsections_via_symbols
