	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDEO_GetCurrentTvMode         ## -- Begin function VIDEO_GetCurrentTvMode
	.p2align	4, 0x90
_VIDEO_GetCurrentTvMode:                ## @VIDEO_GetCurrentTvMode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	__CPU_ISR_Disable
	movq	_currTvMode@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_VI_DEBUG@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_2
## %bb.1:
	movq	_VI_NTSC@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_7
LBB0_2:
	movq	_VI_EURGB60@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_7
## %bb.3:
	movq	_VI_MPAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_7
## %bb.4:
	movq	_VI_NTSC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rbx
	je	LBB0_6
## %bb.5:
	movq	_VI_PAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_6:
	movq	%rax, %rbx
LBB0_7:
	callq	__CPU_ISR_Restore
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_currTvMode,8,3                 ## @currTvMode
	.comm	_VI_DEBUG,8,3                   ## @VI_DEBUG
	.comm	_VI_NTSC,8,3                    ## @VI_NTSC
	.comm	_VI_EURGB60,8,3                 ## @VI_EURGB60
	.comm	_VI_MPAL,8,3                    ## @VI_MPAL
	.comm	_VI_PAL,8,3                     ## @VI_PAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDEO_GetCurrentTvMode         ; -- Begin function VIDEO_GetCurrentTvMode
	.p2align	2
_VIDEO_GetCurrentTvMode:                ; @VIDEO_GetCurrentTvMode
	.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
	bl	__CPU_ISR_Disable
Lloh0:
	adrp	x8, _currTvMode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _currTvMode@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x8, _VI_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VI_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x19, x8
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _VI_NTSC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VI_NTSC@GOTPAGEOFF]
Lloh8:
	ldr	x19, [x8]
	b	LBB0_4
LBB0_2:
Lloh9:
	adrp	x8, _VI_EURGB60@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VI_EURGB60@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _VI_MPAL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VI_MPAL@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x19, x8
	ccmp	x19, x9, #4, ne
	b.eq	LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _VI_NTSC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VI_NTSC@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _VI_PAL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _VI_PAL@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x19, x8
	csel	x19, x8, x9, eq
LBB0_4:
	bl	__CPU_ISR_Restore
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_currTvMode,8,3                 ; @currTvMode
	.comm	_VI_DEBUG,8,3                   ; @VI_DEBUG
	.comm	_VI_NTSC,8,3                    ; @VI_NTSC
	.comm	_VI_EURGB60,8,3                 ; @VI_EURGB60
	.comm	_VI_MPAL,8,3                    ; @VI_MPAL
	.comm	_VI_PAL,8,3                     ; @VI_PAL
.subsections_via_symbols
