	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_cs_process_syncobj_timeline_out_dep
_amdgpu_cs_process_syncobj_timeline_out_dep: ## @amdgpu_cs_process_syncobj_timeline_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	%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
	cmpq	$0, 16(%rdi)
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	%rdi, %r14
	movq	8(%rsi), %r12
	movl	(%rsi), %ebx
	movl	%ebx, %r15d
	sarl	$2, %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movl	$24, %esi
	callq	_kmalloc_array
	movq	%rax, 16(%r14)
	movq	$0, (%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %r13
	xorl	%eax, %eax
	cmpl	$4, %ebx
	jb	LBB0_13
## %bb.5:
	cmpl	$2, %r15d
	movl	$1, %eax
	cmovael	%r15d, %eax
	leaq	(%rax,%rax,2), %rax
	leaq	-24(,%rax,8), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, 8(%r13,%rbx)
	cmpq	$0, (%r12)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	movq	%rax, 8(%r13,%rbx)
	testq	%rax, %rax
	je	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%r14), %edi
	movl	8(%r12), %esi
	callq	_drm_syncobj_find
	movl	%eax, 16(%r13,%rbx)
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r12), %rax
	movq	%rax, (%r13,%rbx)
	incq	(%r14)
	cmpq	%rbx, %r15
	je	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r14), %r13
	addq	$24, %rbx
	addq	$16, %r12
	jmp	LBB0_6
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	8(%r13,%rbx), %rdi
	callq	_kfree
	jmp	LBB0_1
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_13
	.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_timeline_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_timeline_out_dep
_amdgpu_cs_process_syncobj_timeline_out_dep: ; @amdgpu_cs_process_syncobj_timeline_out_dep
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_2:
	mov	x19, x0
	ldr	x22, [x1, #8]
	ldr	w24, [x1]
	asr	w21, w24, #2
Lloh2:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x21
	mov	w1, #24
	bl	_kmalloc_array
	str	x0, [x19, #16]
	str	xzr, [x19]
	cbz	x0, LBB0_11
; %bb.3:
	cmp	w24, #4
	b.hs	LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_13
LBB0_5:
	mov	x20, x0
	mov	x24, #0
	cmp	w21, #1
	csinc	w8, w21, wzr, hi
	mov	w9, #24
	mov	x10, #-24
	umaddl	x21, w8, w9, x10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x25, x20, x24
	str	xzr, [x25, #8]
	ldr	x8, [x22]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x23]
	mov	w0, #4
	bl	_kmalloc
	str	x0, [x25, #8]
	cbz	x0, LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19, #8]
	ldr	w1, [x22, #8]
	bl	_drm_syncobj_find
	str	w0, [x25, #16]
	cbz	w0, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	str	x8, [x20, x24]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	cmp	x21, x24
	b.eq	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x20, [x19, #16]
	add	x24, x24, #24
	add	x22, x22, #16
	b	LBB0_6
LBB0_11:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
LBB0_14:
	add	x8, x20, x24
	ldr	x0, [x8, #8]
	bl	_kfree
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.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_timeline_out_dep
.subsections_via_symbols
