	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_internal_framebuffer_create ## -- Begin function drm_internal_framebuffer_create
	.p2align	4, 0x90
_drm_internal_framebuffer_create:       ## @drm_internal_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	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rsi), %esi
	movq	_DRM_MODE_FB_INTERLACED@GOTPCREL(%rip), %rax
	movq	_DRM_MODE_FB_MODIFIERS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %eax
	orl	%edi, %eax
	notl	%eax
	testl	%eax, %esi
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_2
LBB0_3:
	movq	%rdx, %r14
	movq	(%r15), %rdx
	movq	8(%r15), %rcx
	movq	8(%rbx), %rax
	cmpq	%rax, %rdx
	jg	LBB0_5
## %bb.4:
	cmpq	%rcx, %rax
	jg	LBB0_5
## %bb.7:
	movq	16(%r15), %rdx
	movq	24(%r15), %rcx
	movq	16(%rbx), %rax
	cmpq	%rax, %rdx
	jg	LBB0_9
## %bb.8:
	cmpq	%rcx, %rax
	jg	LBB0_9
## %bb.10:
	testl	%esi, %edi
	je	LBB0_13
## %bb.11:
	cmpl	$0, 40(%r15)
	je	LBB0_12
LBB0_13:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_framebuffer_check
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	%eax, %edi
	jmp	LBB0_15
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
LBB0_6:
	xorl	%ebx, %ebx
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %edi
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_16:
	movq	32(%r15), %rax
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	*(%rax)
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_18:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_FB_INTERLACED,4,2     ## @DRM_MODE_FB_INTERLACED
	.comm	_DRM_MODE_FB_MODIFIERS,4,2      ## @DRM_MODE_FB_MODIFIERS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad framebuffer flags 0x%08x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"bad framebuffer width %d, should be >= %d && <= %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"bad framebuffer height %d, should be >= %d && <= %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"driver does not support fb modifiers\n"

L_.str.4:                               ## @.str.4
	.asciz	"could not create framebuffer\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_internal_framebuffer_create ; -- Begin function drm_internal_framebuffer_create
	.p2align	2
_drm_internal_framebuffer_create:       ; @drm_internal_framebuffer_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	w8, [x1]
Lloh0:
	adrp	x9, _DRM_MODE_FB_INTERLACED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_FB_INTERLACED@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x9]
Lloh3:
	adrp	x9, _DRM_MODE_FB_MODIFIERS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_MODE_FB_MODIFIERS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w10, w9, w10
	bics	wzr, w8, w10
	b.eq	LBB0_2
; %bb.1:
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_2:
	mov	x19, x1
	mov	x21, x0
	ldr	x10, [x1, #8]
	ldp	x11, x12, [x0]
	cmp	x11, x10
	ccmp	x10, x12, #0, le
	b.le	LBB0_4
; %bb.3:
	stp	x11, x12, [sp, #8]
	str	x10, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_4:
	ldr	x10, [x19, #16]
	ldp	x11, x12, [x21, #16]
	cmp	x11, x10
	b.gt	LBB0_12
; %bb.5:
	cmp	x10, x12
	b.gt	LBB0_12
; %bb.6:
	mov	x20, x2
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x21, #40]
	cbz	w8, LBB0_15
LBB0_8:
	mov	x0, x21
	mov	x1, x19
	bl	_framebuffer_check
	cbnz	w0, LBB0_14
; %bb.9:
	ldr	x8, [x21, #32]
	ldr	x8, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	blr	x8
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.10:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	stp	x11, x12, [sp, #8]
	str	x10, [sp]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_13:
	bl	_DRM_DEBUG_KMS
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ERR_PTR
LBB0_15:
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_FB_INTERLACED,4,2     ; @DRM_MODE_FB_INTERLACED
	.comm	_DRM_MODE_FB_MODIFIERS,4,2      ; @DRM_MODE_FB_MODIFIERS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad framebuffer flags 0x%08x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"bad framebuffer width %d, should be >= %d && <= %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"bad framebuffer height %d, should be >= %d && <= %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"driver does not support fb modifiers\n"

l_.str.4:                               ; @.str.4
	.asciz	"could not create framebuffer\n"

.subsections_via_symbols
