	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_gem_ioctl_new          ## -- Begin function nouveau_gem_ioctl_new
	.p2align	4, 0x90
_nouveau_gem_ioctl_new:                 ## @nouveau_gem_ioctl_new
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdx, %rdi
	callq	_nouveau_cli
	movq	$0, -32(%rbp)
	movl	16(%rbx), %esi
	movl	20(%rbx), %edx
	movl	12(%rbx), %ecx
	movl	4(%rbx), %r9d
	movl	8(%rbx), %r8d
	leaq	-32(%rbp), %rdi
	movq	%rdi, (%rsp)
	movq	%rax, %rdi
	callq	_nouveau_gem_new
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	-32(%rbp), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_drm_gem_handle_create
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	-32(%rbp), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_nouveau_gem_info
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r15d
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_drm_gem_handle_delete
	jmp	LBB0_5
LBB0_3:
	xorl	%r15d, %r15d
LBB0_5:
	movq	-32(%rbp), %rdi
	callq	_drm_gem_object_put_unlocked
LBB0_6:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_gem_ioctl_new          ; -- Begin function nouveau_gem_ioctl_new
	.p2align	2
_nouveau_gem_ioctl_new:                 ; @nouveau_gem_ioctl_new
	.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, x2
	mov	x20, x1
	mov	x0, x2
	bl	_nouveau_cli
	str	xzr, [sp, #8]
	ldp	w1, w2, [x20, #16]
	ldp	w4, w3, [x20, #8]
	ldr	w5, [x20, #4]
	add	x6, sp, #8
	bl	_nouveau_gem_new
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_drm_gem_handle_create
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_nouveau_gem_info
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_drm_gem_handle_delete
LBB0_4:
	ldr	x0, [sp, #8]
	bl	_drm_gem_object_put_unlocked
LBB0_5:
	mov	x0, x21
	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
.subsections_via_symbols
