	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function amdgpu_cs_process_syncobj_out_dep
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_amdgpu_cs_process_syncobj_out_dep:     ## @amdgpu_cs_process_syncobj_out_dep
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 8(%rdi)
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rdi, %r15
	movq	8(%rsi), %r12
	movl	(%rsi), %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	$24, %esi
	callq	_kmalloc_array
	movq	%rax, 8(%r15)
	movq	$0, (%r15)
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	testq	%r14, %r14
	je	LBB0_8
## %bb.5:
	shlq	$3, %r14
	leaq	(%r14,%r14,2), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r15), %edi
	movl	(%r12), %esi
	callq	_drm_syncobj_find
	movq	8(%r15), %rcx
	movl	%eax, 16(%rcx,%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rcx,%rbx)
	incq	(%r15)
	addq	$4, %r12
	addq	$24, %rbx
	cmpq	%rbx, %r14
	jne	LBB0_6
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_amdgpu_cs_process_syncobj_out_dep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_cs_process_syncobj_out_dep
_amdgpu_cs_process_syncobj_out_dep:     ; @amdgpu_cs_process_syncobj_out_dep
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x19, x0
	ldr	x21, [x1, #8]
	ldr	w20, [x1]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #24
	bl	_kmalloc_array
	stp	xzr, x0, [x19]
	cbz	x0, LBB0_10
; %bb.5:
	cbz	w20, LBB0_9
; %bb.6:
	mov	x22, #0
	add	x8, x20, x20, lsl #1
	lsl	x20, x8, #3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #16]
	ldr	w1, [x21]
	bl	_drm_syncobj_find
	ldr	x8, [x19, #8]
	add	x8, x8, x22
	str	w0, [x8, #16]
	cbz	w0, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	stp	xzr, xzr, [x8]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	add	x21, x21, #4
	add	x22, x22, #24
	cmp	x20, x22
	b.ne	LBB0_7
LBB0_9:
	mov	w0, #0
	b	LBB0_3
LBB0_10:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_amdgpu_cs_process_syncobj_out_dep
.subsections_via_symbols
