	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mode_in_range
_mode_in_range:                         ## @mode_in_range
	.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
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_mode_in_hsync_range
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_mode_in_vsync_range
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_range_pixel_clock
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	cmpq	%rax, (%r12)
	jg	LBB0_11
LBB0_4:
	cmpl	$4, (%r15)
	jl	LBB0_8
## %bb.5:
	cmpl	$4, 40(%rbx)
	jne	LBB0_8
## %bb.6:
	movl	52(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	48(%rbx), %ecx
	andl	$3, %ecx
	shll	$8, %ecx
	addl	%eax, %ecx
	shll	$3, %ecx
	cmpl	%ecx, 8(%r12)
	jg	LBB0_11
LBB0_8:
	movq	%r12, %rdi
	callq	_mode_is_rb
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_drm_monitor_supports_rb
	testl	%eax, %eax
	je	LBB0_11
LBB0_10:
	movl	$1, %r14d
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mode_in_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mode_in_range
_mode_in_range:                         ; @mode_in_range
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_mode_in_hsync_range
	cbz	w0, LBB0_12
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_mode_in_vsync_range
	cbz	w0, LBB0_12
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_range_pixel_clock
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x20]
	cmp	x8, x0
	b.le	LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_12
LBB0_5:
	ldr	w8, [x19]
	cmp	w8, #4
	b.lt	LBB0_9
; %bb.6:
	ldr	w8, [x21, #40]
	cmp	w8, #4
	b.ne	LBB0_9
; %bb.7:
	ldr	w8, [x21, #52]
	cbz	w8, LBB0_9
; %bb.8:
	ldr	w9, [x20, #8]
	ldr	w10, [x21, #48]
	ubfiz	w10, w10, #8, #2
	add	w8, w10, w8
	cmp	w9, w8, lsl #3
	b.gt	LBB0_4
LBB0_9:
	mov	x0, x20
	bl	_mode_is_rb
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_drm_monitor_supports_rb
	cbz	w0, LBB0_12
LBB0_11:
	mov	w0, #1
LBB0_12:
	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_in_range
.subsections_via_symbols
