	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_syncobj_array_wait
_drm_syncobj_array_wait:                ## @drm_syncobj_array_wait
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	$-1, -40(%rbp)
	testl	%r9d, %r9d
	je	LBB0_1
## %bb.4:
	movq	%rcx, %rbx
	movl	20(%rcx), %edi
	callq	_drm_timeout_abs_to_jiffies
	movq	%rax, %r15
	movl	16(%rbx), %edi
	callq	_u64_to_user_ptr
	movl	8(%rbx), %ecx
	movl	12(%rbx), %edx
	leaq	-40(%rbp), %r9
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%r15, %r8
	callq	_drm_syncobj_array_wait_timeout
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	movq	-40(%rbp), %rax
	movq	%rax, (%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_1:
	movq	%rdx, %r12
	movl	16(%rdx), %edi
	callq	_drm_timeout_abs_to_jiffies
	movl	8(%r12), %ecx
	movl	12(%r12), %edx
	xorl	%r15d, %r15d
	leaq	-40(%rbp), %r9
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rax, %r8
	callq	_drm_syncobj_array_wait_timeout
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movq	-40(%rbp), %rax
	movq	%rax, (%r12)
	jmp	LBB0_7
LBB0_5:
	movq	%rax, %r15
	jmp	LBB0_7
LBB0_2:
	movl	%eax, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_drm_syncobj_array_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_syncobj_array_wait
_drm_syncobj_array_wait:                ; @drm_syncobj_array_wait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x4
	mov	x8, #-1
	str	x8, [sp, #8]
	cbz	w5, LBB0_3
; %bb.1:
	mov	x20, x3
	ldr	w0, [x3, #20]
	bl	_drm_timeout_abs_to_jiffies
	mov	x21, x0
	ldr	w0, [x20, #16]
	bl	_u64_to_user_ptr
	mov	x1, x0
	ldp	w3, w2, [x20, #8]
	add	x5, sp, #8
	mov	x0, x19
	mov	x4, x21
	bl	_drm_syncobj_array_wait_timeout
	tbnz	x0, #63, LBB0_5
; %bb.2:
	mov	w0, #0
	ldr	x8, [sp, #8]
	str	x8, [x20]
	b	LBB0_6
LBB0_3:
	mov	x21, x2
	ldr	w0, [x2, #16]
	bl	_drm_timeout_abs_to_jiffies
	mov	x4, x0
	ldp	w3, w2, [x21, #8]
	add	x5, sp, #8
	mov	x0, x19
	mov	x1, #0
	bl	_drm_syncobj_array_wait_timeout
	tbnz	x0, #63, LBB0_6
; %bb.4:
	mov	w0, #0
	ldr	x8, [sp, #8]
	str	x8, [x21]
	b	LBB0_6
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_6:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_drm_syncobj_array_wait
.subsections_via_symbols
