	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDEOMODE_SetCustomVerticalArea ## -- Begin function VIDEOMODE_SetCustomVerticalArea
	.p2align	4, 0x90
_VIDEOMODE_SetCustomVerticalArea:       ## @VIDEOMODE_SetCustomVerticalArea
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_VIDEOMODE_MIN_VERTICAL_AREA@GOTPCREL(%rip), %rax
	movq	_FALSE@GOTPCREL(%rip), %r14
	cmpl	%edi, (%rax)
	jbe	LBB0_1
LBB0_5:
	movq	%r14, %r15
	jmp	LBB0_6
LBB0_1:
	movq	_VIDEOMODE_custom_vertical_area@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_VIDEOMODE_vertical_area@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	movq	_VIDEOMODE_MAX_VERTICAL_AREA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, %eax
	cmovbl	%eax, %edi
	movq	_VIDEOMODE_VERTICAL_CUSTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_TRUE@GOTPCREL(%rip), %r15
	cmpl	%ebx, %edi
	jne	LBB0_3
## %bb.2:
	cmpl	%eax, %r13d
	je	LBB0_6
LBB0_3:
	movl	%edi, (%rcx)
	movl	%eax, (%r12)
	xorl	%eax, %eax
	callq	_VIDEOMODE_Update
	testl	%eax, %eax
	je	LBB0_4
LBB0_6:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_VIDEOMODE_custom_vertical_area@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movl	%r13d, (%r12)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEOMODE_custom_vertical_area,4,2 ## @VIDEOMODE_custom_vertical_area
	.comm	_VIDEOMODE_vertical_area,4,2    ## @VIDEOMODE_vertical_area
	.comm	_VIDEOMODE_MIN_VERTICAL_AREA,4,2 ## @VIDEOMODE_MIN_VERTICAL_AREA
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_VIDEOMODE_MAX_VERTICAL_AREA,4,2 ## @VIDEOMODE_MAX_VERTICAL_AREA
	.comm	_VIDEOMODE_VERTICAL_CUSTOM,4,2  ## @VIDEOMODE_VERTICAL_CUSTOM
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDEOMODE_SetCustomVerticalArea ; -- Begin function VIDEOMODE_SetCustomVerticalArea
	.p2align	2
_VIDEOMODE_SetCustomVerticalArea:       ; @VIDEOMODE_SetCustomVerticalArea
	.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
Lloh0:
	adrp	x8, _VIDEOMODE_MIN_VERTICAL_AREA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDEOMODE_MIN_VERTICAL_AREA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ls	LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
Lloh5:
	adrp	x19, _VIDEOMODE_custom_vertical_area@GOTPAGE
Lloh6:
	ldr	x19, [x19, _VIDEOMODE_custom_vertical_area@GOTPAGEOFF]
Lloh7:
	adrp	x20, _VIDEOMODE_vertical_area@GOTPAGE
Lloh8:
	ldr	x20, [x20, _VIDEOMODE_vertical_area@GOTPAGEOFF]
	ldr	w22, [x19]
	ldr	w21, [x20]
Lloh9:
	adrp	x8, _VIDEOMODE_MAX_VERTICAL_AREA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VIDEOMODE_MAX_VERTICAL_AREA@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w0
	csel	w8, w8, w0, lo
Lloh12:
	adrp	x9, _VIDEOMODE_VERTICAL_CUSTOM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VIDEOMODE_VERTICAL_CUSTOM@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w22
	ccmp	w21, w9, #0, eq
	b.eq	LBB0_4
; %bb.3:
	str	w8, [x19]
	str	w9, [x20]
	bl	_VIDEOMODE_Update
	cbz	w0, LBB0_6
LBB0_4:
Lloh15:
	adrp	x8, _TRUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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
LBB0_6:
	str	w22, [x19]
	str	w21, [x20]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEOMODE_custom_vertical_area,4,2 ; @VIDEOMODE_custom_vertical_area
	.comm	_VIDEOMODE_vertical_area,4,2    ; @VIDEOMODE_vertical_area
	.comm	_VIDEOMODE_MIN_VERTICAL_AREA,4,2 ; @VIDEOMODE_MIN_VERTICAL_AREA
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_VIDEOMODE_MAX_VERTICAL_AREA,4,2 ; @VIDEOMODE_MAX_VERTICAL_AREA
	.comm	_VIDEOMODE_VERTICAL_CUSTOM,4,2  ; @VIDEOMODE_VERTICAL_CUSTOM
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
