	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mode_fits_in_fbdev
_mode_fits_in_fbdev:                    ## @mode_fits_in_fbdev
	.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
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	16(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	movq	%rsi, %r14
	movq	(%rbx), %rax
	movl	(%rax), %r12d
	movl	4(%rsi), %edi
	movl	8(%rbx), %esi
	callq	_intel_framebuffer_pitch_for_width
	cmpl	%eax, %r12d
	jge	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	imull	(%r14), %ecx
	xorl	%eax, %eax
	cmpl	%ecx, (%r15)
	cmovgeq	%rbx, %rax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mode_fits_in_fbdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mode_fits_in_fbdev
_mode_fits_in_fbdev:                    ; @mode_fits_in_fbdev
	.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	x20, [x8]
	cbz	x20, LBB0_3
; %bb.1:
	ldr	x21, [x20, #16]
	cbz	x21, LBB0_3
; %bb.2:
	mov	x19, x1
	ldr	x8, [x20]
	ldr	w22, [x8]
	ldr	w0, [x1, #4]
	ldr	w1, [x20, #8]
	bl	_intel_framebuffer_pitch_for_width
	cmp	w22, w0
	b.ge	LBB0_4
LBB0_3:
	mov	x0, #0
	b	LBB0_5
LBB0_4:
	ldr	w8, [x21]
	ldr	w9, [x19]
	ldr	x10, [x20]
	ldr	w10, [x10]
	mul	w9, w10, w9
	cmp	w8, w9
	csel	x0, xzr, x20, lt
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mode_fits_in_fbdev
.subsections_via_symbols
