	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_fb_helper_check_var        ## -- Begin function drm_fb_helper_check_var
	.p2align	4, 0x90
_drm_fb_helper_check_var:               ## @drm_fb_helper_check_var
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rsi), %rax
	movq	(%rax), %r12
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_in_dbg_master
	testq	%rax, %rax
	jne	LBB0_26
## %bb.1:
	cmpq	$0, (%r15)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	movq	$0, (%r15)
LBB0_3:
	movq	16(%r12), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_drm_format_info_block_width
	cmpl	$1, %eax
	jg	LBB0_26
## %bb.4:
	movq	16(%r12), %rdi
	xorl	%esi, %esi
	callq	_drm_format_info_block_height
	cmpl	$2, %eax
	jge	LBB0_26
## %bb.5:
	movl	8(%r15), %ecx
	movq	(%r12), %r10
	movq	16(%r12), %rax
	movq	(%rax), %rdx
	movl	(%rdx), %r11d
	shll	$3, %r11d
	movq	16(%r15), %rsi
	cmpl	%r11d, %ecx
	jne	LBB0_10
## %bb.6:
	cmpq	%r10, %rsi
	jg	LBB0_10
## %bb.7:
	movq	8(%r12), %rdx
	cmpq	%rdx, 24(%r15)
	jg	LBB0_10
## %bb.8:
	cmpq	%r10, 32(%r15)
	jg	LBB0_10
## %bb.9:
	cmpq	%rdx, 40(%r15)
	jle	LBB0_11
LBB0_10:
	movq	24(%r15), %rdx
	movq	32(%r15), %r8
	movq	40(%r15), %r9
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	pushq	%r11
	pushq	8(%r12)
	pushq	%r10
	callq	_DRM_DEBUG
	addq	$32, %rsp
LBB0_26:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_27:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	cmpl	$0, 92(%r15)
	jne	LBB0_24
## %bb.12:
	cmpl	$0, 80(%r15)
	jne	LBB0_24
## %bb.13:
	cmpl	$0, 68(%r15)
	jne	LBB0_24
## %bb.14:
	cmpl	$0, 56(%r15)
	jne	LBB0_24
## %bb.15:
	cmpl	$0, 88(%r15)
	jne	LBB0_24
## %bb.16:
	cmpl	$0, 76(%r15)
	jne	LBB0_24
## %bb.17:
	cmpl	$0, 64(%r15)
	jne	LBB0_24
## %bb.18:
	cmpl	$0, 52(%r15)
	jne	LBB0_24
## %bb.19:
	cmpl	$0, 84(%r15)
	jne	LBB0_24
## %bb.20:
	cmpl	$0, 72(%r15)
	jne	LBB0_24
## %bb.21:
	cmpl	$0, 60(%r15)
	jne	LBB0_24
## %bb.22:
	cmpl	$0, 48(%r15)
	jne	LBB0_24
## %bb.23:
	movl	8(%rax), %esi
	movq	%r15, %rdi
	callq	_drm_fb_helper_fill_pixel_fmt
LBB0_24:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_drm_fb_pixel_format_equal
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.25:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fbdev emulation doesn't support changing the pixel clock, value of pixclock is ignored\n"

L_.str.1:                               ## @.str.1
	.asciz	"fb requested width/height/bpp can't fit in current fb request %dx%d-%d (virtual %dx%d) > %dx%d-%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"fbdev emulation doesn't support changing the pixel format\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_fb_helper_check_var        ; -- Begin function drm_fb_helper_check_var
	.p2align	2
_drm_fb_helper_check_var:               ; @drm_fb_helper_check_var
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
	ldr	x21, [x8]
	bl	_in_dbg_master
	cbnz	x0, LBB0_11
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	str	xzr, [x19]
LBB0_3:
	ldr	x0, [x21, #16]
	mov	w1, #0
	bl	_drm_format_info_block_width
	cmp	w0, #1
	b.gt	LBB0_11
; %bb.4:
	ldr	x0, [x21, #16]
	mov	w1, #0
	bl	_drm_format_info_block_height
	cmp	w0, #2
	b.ge	LBB0_11
; %bb.5:
	ldr	w9, [x19, #8]
	ldr	x8, [x21, #16]
	ldr	x10, [x8]
	ldr	w10, [x10]
	lsl	w12, w10, #3
	ldr	x10, [x19, #16]
	ldr	x11, [x21]
	cmp	w9, w12
	ccmp	x10, x11, #0, eq
	b.gt	LBB0_9
; %bb.6:
	ldr	x14, [x19, #24]
	ldr	x13, [x21, #8]
	cmp	x14, x13
	b.gt	LBB0_9
; %bb.7:
	ldr	x14, [x19, #32]
	cmp	x14, x11
	b.gt	LBB0_9
; %bb.8:
	ldr	x14, [x19, #40]
	cmp	x14, x13
	b.le	LBB0_13
LBB0_9:
	ldp	x8, x13, [x19, #24]
	ldr	x14, [x19, #40]
	ldr	x15, [x21, #8]
	stp	x15, x12, [sp, #48]
	stp	x14, x11, [sp, #32]
	stp	x9, x13, [sp, #16]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	stp	x10, x8, [sp]
LBB0_10:
	bl	_DRM_DEBUG
LBB0_11:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	ldr	w9, [x19, #92]
	cbnz	w9, LBB0_26
; %bb.14:
	ldr	w9, [x19, #80]
	cbnz	w9, LBB0_26
; %bb.15:
	ldr	w9, [x19, #68]
	cbnz	w9, LBB0_26
; %bb.16:
	ldr	w9, [x19, #56]
	cbnz	w9, LBB0_26
; %bb.17:
	ldr	w9, [x19, #88]
	cbnz	w9, LBB0_26
; %bb.18:
	ldr	w9, [x19, #76]
	cbnz	w9, LBB0_26
; %bb.19:
	ldr	w9, [x19, #64]
	cbnz	w9, LBB0_26
; %bb.20:
	ldr	w9, [x19, #52]
	cbnz	w9, LBB0_26
; %bb.21:
	ldr	w9, [x19, #84]
	cbnz	w9, LBB0_26
; %bb.22:
	ldr	w9, [x19, #72]
	cbnz	w9, LBB0_26
; %bb.23:
	ldr	w9, [x19, #60]
	cbnz	w9, LBB0_26
; %bb.24:
	ldr	w9, [x19, #48]
	cbnz	w9, LBB0_26
; %bb.25:
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_drm_fb_helper_fill_pixel_fmt
LBB0_26:
	mov	x0, x19
	mov	x1, x20
	bl	_drm_fb_pixel_format_equal
	cbz	w0, LBB0_28
; %bb.27:
	mov	w0, #0
	b	LBB0_12
LBB0_28:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fbdev emulation doesn't support changing the pixel clock, value of pixclock is ignored\n"

l_.str.1:                               ; @.str.1
	.asciz	"fb requested width/height/bpp can't fit in current fb request %dx%d-%d (virtual %dx%d) > %dx%d-%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"fbdev emulation doesn't support changing the pixel format\n"

.subsections_via_symbols
