	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lima_ioctl_gem_wait
_lima_ioctl_gem_wait:                   ## @lima_ioctl_gem_wait
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdx, %rdi
	movl	(%rsi), %edx
	movq	_LIMA_GEM_WAIT_READ@GOTPCREL(%rip), %rax
	movq	_LIMA_GEM_WAIT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	testl	%ecx, %edx
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_2:
	movl	4(%rsi), %ecx
	movl	8(%rsi), %esi
	popq	%rbp
	jmp	_lima_gem_wait                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LIMA_GEM_WAIT_READ,4,2         ## @LIMA_GEM_WAIT_READ
	.comm	_LIMA_GEM_WAIT_WRITE,4,2        ## @LIMA_GEM_WAIT_WRITE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_lima_ioctl_gem_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lima_ioctl_gem_wait
_lima_ioctl_gem_wait:                   ; @lima_ioctl_gem_wait
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _LIMA_GEM_WAIT_READ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LIMA_GEM_WAIT_READ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _LIMA_GEM_WAIT_WRITE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _LIMA_GEM_WAIT_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bics	wzr, w8, w9
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_2:
	ldp	w3, w9, [x1, #4]
	mov	x0, x2
	mov	x1, x9
	mov	x2, x8
	b	_lima_gem_wait
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LIMA_GEM_WAIT_READ,4,2         ; @LIMA_GEM_WAIT_READ
	.comm	_LIMA_GEM_WAIT_WRITE,4,2        ; @LIMA_GEM_WAIT_WRITE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_lima_ioctl_gem_wait
.subsections_via_symbols
