	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etnaviv_gem_new_handle         ## -- Begin function etnaviv_gem_new_handle
	.p2align	4, 0x90
_etnaviv_gem_new_handle:                ## @etnaviv_gem_new_handle
	.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
	movq	%r8, %r14
	movl	%ecx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	$0, -48(%rbp)
	movl	%edx, %edi
	callq	_PAGE_ALIGN
	movl	%eax, %r13d
	movq	_etnaviv_gem_shmem_ops@GOTPCREL(%rip), %rcx
	leaq	-48(%rbp), %r8
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_etnaviv_gem_new_impl
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	-48(%rbp), %rdi
	callq	_to_etnaviv_bo
	movq	_etnaviv_shm_lock_class@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	callq	_lockdep_set_class
	movq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_drm_gem_object_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rax
	movq	(%rax), %rax
	movq	_GFP_HIGHUSER@GOTPCREL(%rip), %rcx
	movq	___GFP_RETRY_MAYFAIL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movl	(%rax), %edi
	movq	___GFP_NOWARN@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_mapping_set_gfp_mask
	movq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_etnaviv_gem_obj_add
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_drm_gem_handle_create
	movl	%eax, %ebx
LBB0_3:
	movq	-48(%rbp), %rdi
	callq	_drm_gem_object_put_unlocked
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_etnaviv_gem_shmem_ops,4,2      ## @etnaviv_gem_shmem_ops
	.comm	_etnaviv_shm_lock_class,4,2     ## @etnaviv_shm_lock_class
	.comm	_GFP_HIGHUSER,4,2               ## @GFP_HIGHUSER
	.comm	___GFP_RETRY_MAYFAIL,4,2        ## @__GFP_RETRY_MAYFAIL
	.comm	___GFP_NOWARN,4,2               ## @__GFP_NOWARN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etnaviv_gem_new_handle         ; -- Begin function etnaviv_gem_new_handle
	.p2align	2
_etnaviv_gem_new_handle:                ; @etnaviv_gem_new_handle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x4
	mov	x23, x3
	mov	x20, x1
	mov	x21, x0
	str	xzr, [sp, #8]
	mov	x0, x2
	bl	_PAGE_ALIGN
	mov	x22, x0
Lloh0:
	adrp	x3, _etnaviv_gem_shmem_ops@GOTPAGE
Lloh1:
	ldr	x3, [x3, _etnaviv_gem_shmem_ops@GOTPAGEOFF]
	add	x4, sp, #8
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_etnaviv_gem_new_impl
	mov	x23, x0
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_to_etnaviv_bo
Lloh2:
	adrp	x1, _etnaviv_shm_lock_class@GOTPAGE
Lloh3:
	ldr	x1, [x1, _etnaviv_shm_lock_class@GOTPAGEOFF]
	bl	_lockdep_set_class
	ldr	x1, [sp, #8]
	mov	x0, x21
	mov	x2, x22
	bl	_drm_gem_object_init
	mov	x23, x0
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh4:
	adrp	x8, _GFP_HIGHUSER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_HIGHUSER@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, ___GFP_RETRY_MAYFAIL@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___GFP_RETRY_MAYFAIL@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh10:
	adrp	x9, ___GFP_NOWARN@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___GFP_NOWARN@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_mapping_set_gfp_mask
	ldr	x1, [sp, #8]
	mov	x0, x21
	bl	_etnaviv_gem_obj_add
	ldr	x1, [sp, #8]
	mov	x0, x20
	mov	x2, x19
	bl	_drm_gem_handle_create
	mov	x23, x0
LBB0_3:
	ldr	x0, [sp, #8]
	bl	_drm_gem_object_put_unlocked
	mov	x0, x23
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_etnaviv_gem_shmem_ops,4,2      ; @etnaviv_gem_shmem_ops
	.comm	_etnaviv_shm_lock_class,4,2     ; @etnaviv_shm_lock_class
	.comm	_GFP_HIGHUSER,4,2               ; @GFP_HIGHUSER
	.comm	___GFP_RETRY_MAYFAIL,4,2        ; @__GFP_RETRY_MAYFAIL
	.comm	___GFP_NOWARN,4,2               ; @__GFP_NOWARN
.subsections_via_symbols
