	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_client_buffer_create
_drm_client_buffer_create:              ## @drm_client_buffer_create
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	%rcx, %rdi
	callq	_drm_format_info
	movq	%rax, %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	8(%r14), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, 16(%rax)
	movq	%r13, -56(%rbp)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -64(%rbp)
	movq	(%r15), %rax
	movl	(%rax), %eax
	shll	$3, %eax
	movl	%eax, -80(%rbp)
	movl	(%r14), %edx
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	callq	_drm_mode_create_dumb
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_2
LBB0_4:
	movq	%rbx, %rdi
	callq	_drm_client_buffer_delete
	movl	%r15d, %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
	jmp	LBB0_5
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_2:
	movl	-76(%rbp), %esi
	movl	%esi, 12(%rbx)
	movl	-72(%rbp), %eax
	movl	%eax, 8(%rbx)
	movl	(%r14), %edi
	callq	_drm_gem_object_lookup
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	%rax, (%rbx)
LBB0_5:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_drm_client_buffer_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_client_buffer_create
_drm_client_buffer_create:              ; @drm_client_buffer_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x23, x1
	mov	x20, x0
	mov	x0, x3
	bl	_drm_format_info
	mov	x24, x0
	stp	xzr, xzr, [sp]
	ldr	x22, [x20, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #16]
	stp	x21, x23, [sp, #16]
	ldr	x8, [x24]
	ldr	w8, [x8]
	lsl	w8, w8, #3
	str	w8, [sp]
	ldr	w2, [x20]
	mov	x1, sp
	mov	x0, x22
	bl	_drm_mode_create_dumb
	mov	x21, x0
	cbz	w0, LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_drm_client_buffer_delete
	mov	x0, x21
	bl	_ERR_PTR
	mov	x19, x0
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ERR_PTR
LBB0_4:
	ldur	d0, [sp, #4]
	rev64.2s	v1, v0
	str	d1, [x19, #8]
	ldr	w0, [x20]
	fmov	w1, s0
	bl	_drm_gem_object_lookup
	cbz	x0, LBB0_7
; %bb.5:
	str	x0, [x19]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
Lloh6:
	adrp	x8, _ENOENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_drm_client_buffer_create
.subsections_via_symbols
