	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hibmc_user_framebuffer_create
_hibmc_user_framebuffer_create:         ## @hibmc_user_framebuffer_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	20(%rdx), %esi
	movl	(%rdx), %eax
	movl	16(%rdx), %edx
	movzbl	%al, %ecx
	movzbl	%ah, %edi
	movl	%edi, %r8d
	movl	%eax, %edi
	shrl	$16, %edi
	movzbl	%dil, %r9d
	shrl	$24, %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_drm_gem_object_lookup
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_hibmc_framebuffer_init
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_drm_gem_object_put_unlocked
	movq	%rbx, %rdi
	jmp	LBB0_2
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subq	(%rax), %rdi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%dx%d, format %c%c%c%c\n"

	.comm	_ENOENT,8,3                     ## @ENOENT
	.no_dead_strip	_hibmc_user_framebuffer_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hibmc_user_framebuffer_create
_hibmc_user_framebuffer_create:         ; @hibmc_user_framebuffer_create
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	mov	x20, x0
	ldr	w8, [x2]
	ubfx	w4, w8, #8, #8
	ldp	w2, w1, [x2, #16]
	and	w3, w8, #0xff
	ubfx	w5, w8, #16, #8
	lsr	w6, w8, #24
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_drm_gem_object_lookup
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_hibmc_framebuffer_init
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_drm_gem_object_put_unlocked
	mov	x0, x19
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	neg	x0, x8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%dx%d, format %c%c%c%c\n"

	.comm	_ENOENT,8,3                     ; @ENOENT
	.no_dead_strip	_hibmc_user_framebuffer_create
.subsections_via_symbols
