	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exynos_drm_gem_dumb_create     ## -- Begin function exynos_drm_gem_dumb_create
	.p2align	4, 0x90
_exynos_drm_gem_dumb_create:            ## @exynos_drm_gem_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	8(%rdx), %eax
	leal	7(%rax), %ecx
	addl	$14, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	movq	%rsi, %r15
	movq	%rdi, %r14
	sarl	$3, %eax
	imull	4(%rdx), %eax
	movl	%eax, (%rdx)
	imull	16(%rdx), %eax
	movl	%eax, 12(%rdx)
	movq	%rsi, %rdi
	callq	_is_drm_iommu_supported
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_EXYNOS_BO_CONTIG@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_EXYNOS_BO_NONCONTIG@GOTPCREL(%rip), %rax
LBB0_3:
	movq	_EXYNOS_BO_WC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	12(%rbx), %edx
	movq	%r15, %rdi
	callq	_exynos_drm_gem_create
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	addq	$20, %rbx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_exynos_drm_gem_handle_create
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_exynos_drm_gem_destroy
	jmp	LBB0_7
LBB0_5:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXYNOS_BO_NONCONTIG,4,2        ## @EXYNOS_BO_NONCONTIG
	.comm	_EXYNOS_BO_WC,4,2               ## @EXYNOS_BO_WC
	.comm	_EXYNOS_BO_CONTIG,4,2           ## @EXYNOS_BO_CONTIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FB allocation failed.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exynos_drm_gem_dumb_create     ; -- Begin function exynos_drm_gem_dumb_create
	.p2align	2
_exynos_drm_gem_dumb_create:            ; @exynos_drm_gem_dumb_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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldp	w8, w9, [x2, #4]
	add	w10, w9, #7
	add	w9, w9, #14
	cmp	w10, #0
	csel	w9, w9, w10, lt
	asr	w9, w9, #3
	mul	w8, w9, w8
	str	w8, [x2]
	ldr	w9, [x2, #16]
	mul	w8, w8, w9
	str	w8, [x2, #12]
	mov	x0, x1
	bl	_is_drm_iommu_supported
Lloh0:
	adrp	x8, _EXYNOS_BO_CONTIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXYNOS_BO_CONTIG@GOTPAGEOFF]
Lloh2:
	adrp	x9, _EXYNOS_BO_NONCONTIG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EXYNOS_BO_NONCONTIG@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _EXYNOS_BO_WC@GOTPAGE
Lloh5:
	ldr	x9, [x9, _EXYNOS_BO_WC@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldr	w2, [x20, #12]
	mov	x0, x21
	bl	_exynos_drm_gem_create
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x21]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	mov	x0, x22
	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	_PTR_ERR
LBB0_2:
	add	x2, x20, #20
	mov	x0, x22
	mov	x1, x19
	bl	_exynos_drm_gem_handle_create
	mov	x19, x0
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_exynos_drm_gem_destroy
LBB0_4:
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EXYNOS_BO_NONCONTIG,4,2        ; @EXYNOS_BO_NONCONTIG
	.comm	_EXYNOS_BO_WC,4,2               ; @EXYNOS_BO_WC
	.comm	_EXYNOS_BO_CONTIG,4,2           ; @EXYNOS_BO_CONTIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FB allocation failed.\n"

.subsections_via_symbols
