	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hibmc_dumb_create              ## -- Begin function hibmc_dumb_create
	.p2align	4, 0x90
_hibmc_dumb_create:                     ## @hibmc_dumb_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	4(%rdx), %ebx
	movl	20(%rdx), %edi
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	imull	%eax, %ebx
	movl	%ebx, %edi
	movl	$16, %esi
	callq	_ALIGN
	movl	%eax, (%r15)
	imull	12(%r15), %eax
	movl	%eax, 8(%r15)
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_hibmc_gem_create
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	movq	-48(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_drm_gem_handle_create
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	callq	_drm_gem_object_put_unlocked
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	movl	%ebx, %esi
	callq	_DRM_ERROR
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	-36(%rbp), %eax
	movl	%eax, 16(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create GEM object: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to unreference GEM object: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hibmc_dumb_create              ; -- Begin function hibmc_dumb_create
	.p2align	2
_hibmc_dumb_create:                     ; @hibmc_dumb_create
	.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	x21, x1
	mov	x20, x0
	ldr	w22, [x2, #4]
	ldr	w0, [x2, #20]
	mov	w1, #8
	bl	_DIV_ROUND_UP
	mul	w0, w0, w22
	mov	w1, #16
	bl	_ALIGN
	str	w0, [x19]
	ldr	w8, [x19, #12]
	mul	w1, w8, w0
	str	w1, [x19, #8]
	add	x3, sp, #8
	mov	x0, x21
	mov	w2, #0
	bl	_hibmc_gem_create
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	x1, [sp, #8]
	add	x2, sp, #4
	mov	x0, x20
	bl	_drm_gem_handle_create
	mov	x21, x0
	ldr	x0, [sp, #8]
	bl	_drm_gem_object_put_unlocked
	cbz	w21, LBB0_6
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	mov	x1, x21
	bl	_DRM_ERROR
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
LBB0_6:
	ldr	w8, [sp, #4]
	str	w8, [x19, #16]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create GEM object: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to unreference GEM object: %d\n"

.subsections_via_symbols
