	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_gem_create_ioctl        ## -- Begin function radeon_gem_create_ioctl
	.p2align	4, 0x90
_radeon_gem_create_ioctl:               ## @radeon_gem_create_ioctl
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_down_read
	movl	16(%rbx), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_roundup
	movl	%eax, 16(%rbx)
	movl	12(%rbx), %edx
	movl	4(%rbx), %r8d
	movl	8(%rbx), %ecx
	leaq	-48(%rbp), %rsi
	movq	%rsi, (%rsp)
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%r9d, %r9d
	callq	_radeon_gem_object_create
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_up_read
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_radeon_gem_handle_lockup
	jmp	LBB0_5
LBB0_2:
	movq	-48(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_drm_gem_handle_create
	movl	%eax, %r15d
	movq	-48(%rbp), %rdi
	callq	_drm_gem_object_put_unlocked
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_up_read
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_radeon_gem_handle_lockup
	jmp	LBB0_5
LBB0_4:
	movl	-36(%rbp), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_up_read
	xorl	%eax, %eax
LBB0_5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_gem_create_ioctl        ; -- Begin function radeon_gem_create_ioctl
	.p2align	2
_radeon_gem_create_ioctl:               ; @radeon_gem_create_ioctl
	.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	x21, x2
	mov	x20, x1
	ldr	x19, [x0]
	mov	x0, x19
	bl	_down_read
	ldr	w0, [x20, #16]
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_roundup
	mov	x1, x0
	str	w0, [x20, #16]
	ldp	w3, w2, [x20, #8]
	ldr	w4, [x20, #4]
	add	x6, sp, #8
	mov	x0, x19
	mov	w5, #0
	bl	_radeon_gem_object_create
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	mov	x0, x19
	bl	_up_read
	mov	x0, x19
	mov	x1, x22
	bl	_radeon_gem_handle_lockup
	b	LBB0_5
LBB0_2:
	ldr	x1, [sp, #8]
	add	x2, sp, #4
	mov	x0, x21
	bl	_drm_gem_handle_create
	mov	x21, x0
	ldr	x0, [sp, #8]
	bl	_drm_gem_object_put_unlocked
	cbz	w21, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_up_read
	mov	x0, x19
	mov	x1, x21
	bl	_radeon_gem_handle_lockup
	b	LBB0_5
LBB0_4:
	ldr	w8, [sp, #4]
	str	w8, [x20]
	mov	x0, x19
	bl	_up_read
	mov	w0, #0
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
.subsections_via_symbols
