	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UpdateTvSystemSettings
_UpdateTvSystemSettings:                ## @UpdateTvSystemSettings
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_Atari800_tv_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_Atari800_TV_PAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_pixel_aspect_ratio_pal@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_pixel_aspect_ratio_ntsc@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movq	_display_modes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_VIDEOMODE_MODE_NORMAL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Atari800_tv_mode,8,3           ## @Atari800_tv_mode
	.comm	_Atari800_TV_PAL,8,3            ## @Atari800_TV_PAL
	.comm	_pixel_aspect_ratio_pal,4,2     ## @pixel_aspect_ratio_pal
	.comm	_pixel_aspect_ratio_ntsc,4,2    ## @pixel_aspect_ratio_ntsc
	.comm	_display_modes,8,3              ## @display_modes
	.comm	_VIDEOMODE_MODE_NORMAL,8,3      ## @VIDEOMODE_MODE_NORMAL
	.no_dead_strip	_UpdateTvSystemSettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UpdateTvSystemSettings
_UpdateTvSystemSettings:                ; @UpdateTvSystemSettings
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _Atari800_tv_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Atari800_tv_mode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _Atari800_TV_PAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _Atari800_TV_PAL@GOTPAGEOFF]
Lloh5:
	adrp	x10, _pixel_aspect_ratio_pal@GOTPAGE
Lloh6:
	ldr	x10, [x10, _pixel_aspect_ratio_pal@GOTPAGEOFF]
Lloh7:
	adrp	x11, _pixel_aspect_ratio_ntsc@GOTPAGE
Lloh8:
	ldr	x11, [x11, _pixel_aspect_ratio_ntsc@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _display_modes@GOTPAGE
Lloh11:
	ldr	x9, [x9, _display_modes@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
Lloh13:
	adrp	x10, _VIDEOMODE_MODE_NORMAL@GOTPAGE
Lloh14:
	ldr	x10, [x10, _VIDEOMODE_MODE_NORMAL@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	ret
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_Atari800_tv_mode,8,3           ; @Atari800_tv_mode
	.comm	_Atari800_TV_PAL,8,3            ; @Atari800_TV_PAL
	.comm	_pixel_aspect_ratio_pal,4,2     ; @pixel_aspect_ratio_pal
	.comm	_pixel_aspect_ratio_ntsc,4,2    ; @pixel_aspect_ratio_ntsc
	.comm	_display_modes,8,3              ; @display_modes
	.comm	_VIDEOMODE_MODE_NORMAL,8,3      ; @VIDEOMODE_MODE_NORMAL
	.no_dead_strip	_UpdateTvSystemSettings
.subsections_via_symbols
