	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_screen_w
_update_screen_w:                       ## @update_screen_w
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_vmode@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movl	%eax, (%rdi)
	movq	_VI_MAX_WIDTH_NTSC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	subl	%eax, %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	movl	%eax, 4(%rdi)
	callq	_VIDEO_Configure
	xorl	%eax, %eax
	popq	%rbp
	jmp	_VIDEO_Flush                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_config,4,2                     ## @config
	.comm	_vmode,8,3                      ## @vmode
	.comm	_VI_MAX_WIDTH_NTSC,4,2          ## @VI_MAX_WIDTH_NTSC
	.no_dead_strip	_update_screen_w
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_screen_w
_update_screen_w:                       ; @update_screen_w
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _config@GOTPAGE
Lloh1:
	ldr	x8, [x8, _config@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _vmode@GOTPAGE
Lloh4:
	ldr	x9, [x9, _vmode@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x9]
	str	w8, [x0]
Lloh6:
	adrp	x9, _VI_MAX_WIDTH_NTSC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VI_MAX_WIDTH_NTSC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sub	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	str	w8, [x0, #4]
	bl	_VIDEO_Configure
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_VIDEO_Flush
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_config,4,2                     ; @config
	.comm	_vmode,8,3                      ; @vmode
	.comm	_VI_MAX_WIDTH_NTSC,4,2          ; @VI_MAX_WIDTH_NTSC
	.no_dead_strip	_update_screen_w
.subsections_via_symbols
