	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vga_recalc_vertical
_vga_recalc_vertical:                   ## @vga_recalc_vertical
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%edi, %edi
	callq	_set_fs
	movl	$1157, %edi                     ## imm = 0x485
	callq	_rdfs8
	movl	%eax, %r14d
	movq	_force_y@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movl	$1156, %edi                     ## imm = 0x484
	callq	_rdfs8
	movl	%eax, %ebx
	incl	%ebx
LBB0_2:
	imull	%r14d, %ebx
	decl	%ebx
	xorl	%eax, %eax
	callq	_vga_crtc
	movl	%eax, %r14d
	movl	%eax, %edi
	movl	$17, %esi
	callq	_in_idx
	andl	$-129, %eax
	movl	%eax, %edi
	movl	%r14d, %esi
	movl	$17, %edx
	callq	_out_idx
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	$18, %edx
	callq	_out_idx
	movl	%r14d, %edi
	movl	$7, %esi
	callq	_in_idx
	andl	$189, %eax
	movl	%ebx, %ecx
	shrl	$7, %ecx
	andl	$2, %ecx
	shrl	$3, %ebx
	andl	$64, %ebx
	orl	%ecx, %ebx
	orl	%eax, %ebx
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	$7, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_out_idx                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_force_y,4,2                    ## @force_y
	.no_dead_strip	_vga_recalc_vertical
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vga_recalc_vertical
_vga_recalc_vertical:                   ; @vga_recalc_vertical
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	w0, #0
	bl	_set_fs
	mov	w0, #1157
	bl	_rdfs8
	mov	x19, x0
Lloh0:
	adrp	x8, _force_y@GOTPAGE
Lloh1:
	ldr	x8, [x8, _force_y@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	w0, #1156
	bl	_rdfs8
	add	w8, w0, #1
LBB0_2:
	mul	w8, w8, w19
	sub	w19, w8, #1
	bl	_vga_crtc
	mov	x20, x0
	mov	w1, #17
	bl	_in_idx
	and	w0, w0, #0xffffff7f
	mov	x1, x20
	mov	w2, #17
	bl	_out_idx
	mov	x0, x19
	mov	x1, x20
	mov	w2, #18
	bl	_out_idx
	mov	x0, x20
	mov	w1, #7
	bl	_in_idx
	mov	w8, #189
	and	w8, w0, w8
	lsr	w9, w19, #7
	and	w9, w9, #0x2
	lsr	w10, w19, #3
	and	w10, w10, #0x40
	orr	w9, w10, w9
	orr	w0, w9, w8
	mov	x1, x20
	mov	w2, #7
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_out_idx
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_force_y,4,2                    ; @force_y
	.no_dead_strip	_vga_recalc_vertical
.subsections_via_symbols
