	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function etnaviv_ioctl_gem_new
_etnaviv_ioctl_gem_new:                 ## @etnaviv_ioctl_gem_new
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %r8
	movl	(%rsi), %ecx
	movq	_ETNA_BO_CACHED@GOTPCREL(%rip), %rax
	movq	_ETNA_BO_WC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rax), %esi
	movq	_ETNA_BO_UNCACHED@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_ETNA_BO_FORCE_MMU@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	notl	%esi
	testl	%esi, %ecx
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_2:
	movl	8(%r8), %eax
	addq	$4, %r8
	movq	%rdx, %rsi
	movl	%eax, %edx
	popq	%rbp
	jmp	_etnaviv_gem_new_handle         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETNA_BO_CACHED,4,2             ## @ETNA_BO_CACHED
	.comm	_ETNA_BO_WC,4,2                 ## @ETNA_BO_WC
	.comm	_ETNA_BO_UNCACHED,4,2           ## @ETNA_BO_UNCACHED
	.comm	_ETNA_BO_FORCE_MMU,4,2          ## @ETNA_BO_FORCE_MMU
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_etnaviv_ioctl_gem_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function etnaviv_ioctl_gem_new
_etnaviv_ioctl_gem_new:                 ; @etnaviv_ioctl_gem_new
	.cfi_startproc
; %bb.0:
	ldr	w3, [x1]
Lloh0:
	adrp	x8, _ETNA_BO_CACHED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETNA_BO_CACHED@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ETNA_BO_WC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ETNA_BO_WC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _ETNA_BO_UNCACHED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ETNA_BO_UNCACHED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _ETNA_BO_FORCE_MMU@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ETNA_BO_FORCE_MMU@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bics	wzr, w3, w8
	b.eq	LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_2:
	ldr	w8, [x1, #8]
	add	x4, x1, #4
	mov	x1, x2
	mov	x2, x8
	b	_etnaviv_gem_new_handle
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ETNA_BO_CACHED,4,2             ; @ETNA_BO_CACHED
	.comm	_ETNA_BO_WC,4,2                 ; @ETNA_BO_WC
	.comm	_ETNA_BO_UNCACHED,4,2           ; @ETNA_BO_UNCACHED
	.comm	_ETNA_BO_FORCE_MMU,4,2          ; @ETNA_BO_FORCE_MMU
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_etnaviv_ioctl_gem_new
.subsections_via_symbols
