	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_create_dumb           ## -- Begin function drm_mode_create_dumb
	.p2align	4, 0x90
_drm_mode_create_dumb:                  ## @drm_mode_create_dumb
	.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	(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	cmpl	$0, (%rsi)
	je	LBB0_6
## %bb.4:
	cmpl	$0, 4(%rbx)
	je	LBB0_6
## %bb.5:
	movq	%rdi, %r15
	movl	8(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.7:
	movq	_U32_MAX@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	addl	$-8, %eax
	cmpl	%eax, %edi
	jg	LBB0_6
## %bb.8:
	movq	%rdx, %r14
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %esi
	movl	(%r12), %r8d
	movl	(%rbx), %ecx
	movl	%r8d, %eax
	cltd
	idivl	%ecx
	cmpl	%eax, %esi
	jg	LBB0_6
## %bb.9:
	imull	%esi, %ecx
	movl	4(%rbx), %edi
	movl	%r8d, %eax
	cltd
	idivl	%ecx
	cmpl	%eax, %edi
	jg	LBB0_6
## %bb.10:
	imull	%ecx, %edi
	callq	_PAGE_ALIGN
	testq	%rax, %rax
	je	LBB0_6
## %bb.11:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	$0, 32(%rbx)
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_ENOSYS@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_U32_MAX,4,2                    ## @U32_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_create_dumb           ; -- Begin function drm_mode_create_dumb
	.p2align	2
_drm_mode_create_dumb:                  ; @drm_mode_create_dumb
	.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
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x19, x1
	ldr	w8, [x1]
	cbz	w8, LBB0_9
; %bb.2:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_9
; %bb.3:
	mov	x21, x0
	ldr	w0, [x19, #8]
	cbz	w0, LBB0_9
; %bb.4:
Lloh0:
	adrp	x22, _U32_MAX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _U32_MAX@GOTPAGEOFF]
	ldr	w8, [x22]
	sub	w8, w8, #8
	cmp	w0, w8
	b.gt	LBB0_9
; %bb.5:
	mov	x20, x2
	mov	w1, #8
	bl	_DIV_ROUND_UP
	ldr	w8, [x22]
	ldr	w9, [x19]
	sdiv	w10, w8, w9
	cmp	w0, w10
	b.gt	LBB0_9
; %bb.6:
	mul	w9, w9, w0
	ldr	w10, [x19, #4]
	sdiv	w8, w8, w9
	cmp	w10, w8
	b.gt	LBB0_9
; %bb.7:
	mul	w0, w10, w9
	bl	_PAGE_ALIGN
	cbz	x0, LBB0_9
; %bb.8:
	stp	xzr, xzr, [x19, #16]
	str	xzr, [x19, #32]
	ldr	x8, [x21]
	ldr	x3, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, 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
	br	x3
LBB0_9:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh4:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_U32_MAX,4,2                    ; @U32_MAX
.subsections_via_symbols
