	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_atombios_get_tv_info    ## -- Begin function radeon_atombios_get_tv_info
	.p2align	4, 0x90
_radeon_atombios_get_tv_info:           ## @radeon_atombios_get_tv_info
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AnalogTV_Info@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movq	_TV_STD_NTSC@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	(%r14), %rdi
	leaq	-40(%rbp), %rcx
	leaq	-36(%rbp), %r8
	leaq	-32(%rbp), %r9
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_atom_parse_data_header
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	-32(%rbp), %rcx
	movl	(%rcx,%rax), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_2
## %bb.3:
	cltq
	leaq	l_switch.table.radeon_atombios_get_tv_info(%rip), %rcx
	movq	(%rcx,%rax,8), %r15
	leaq	l_reltable.radeon_atombios_get_tv_info(%rip), %rcx
	movslq	(%rcx,%rax,4), %rdi
	addq	%rcx, %rdi
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str.8(%rip), %rdi
LBB0_4:
	movl	(%r15), %ebx
	callq	_DRM_DEBUG_KMS
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA,4,2                       ## @DATA
	.comm	_AnalogTV_Info,4,2              ## @AnalogTV_Info
	.comm	_TV_STD_NTSC,4,2                ## @TV_STD_NTSC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Default TV standard: NTSC\n"

	.comm	_TV_STD_NTSC_J,4,2              ## @TV_STD_NTSC_J
L_.str.1:                               ## @.str.1
	.asciz	"Default TV standard: NTSC-J\n"

	.comm	_TV_STD_PAL,4,2                 ## @TV_STD_PAL
L_.str.2:                               ## @.str.2
	.asciz	"Default TV standard: PAL\n"

	.comm	_TV_STD_PAL_M,4,2               ## @TV_STD_PAL_M
L_.str.3:                               ## @.str.3
	.asciz	"Default TV standard: PAL-M\n"

	.comm	_TV_STD_PAL_N,4,2               ## @TV_STD_PAL_N
L_.str.4:                               ## @.str.4
	.asciz	"Default TV standard: PAL-N\n"

	.comm	_TV_STD_PAL_CN,4,2              ## @TV_STD_PAL_CN
L_.str.5:                               ## @.str.5
	.asciz	"Default TV standard: PAL-CN\n"

	.comm	_TV_STD_PAL_60,4,2              ## @TV_STD_PAL_60
L_.str.6:                               ## @.str.6
	.asciz	"Default TV standard: PAL-60\n"

	.comm	_TV_STD_SECAM,4,2               ## @TV_STD_SECAM
L_.str.7:                               ## @.str.7
	.asciz	"Default TV standard: SECAM\n"

L_.str.8:                               ## @.str.8
	.asciz	"Unknown TV standard; defaulting to NTSC\n"

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.radeon_atombios_get_tv_info
l_switch.table.radeon_atombios_get_tv_info:
	.quad	_TV_STD_SECAM
	.quad	_TV_STD_PAL_N
	.quad	_TV_STD_PAL_M
	.quad	_TV_STD_PAL_CN
	.quad	_TV_STD_PAL_60
	.quad	_TV_STD_PAL
	.quad	_TV_STD_NTSC_J
	.quad	_TV_STD_NTSC

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.radeon_atombios_get_tv_info
l_reltable.radeon_atombios_get_tv_info:
	.long	L_.str.7-l_reltable.radeon_atombios_get_tv_info
	.long	L_.str.4-l_reltable.radeon_atombios_get_tv_info
	.long	L_.str.3-l_reltable.radeon_atombios_get_tv_info
	.long	L_.str.5-l_reltable.radeon_atombios_get_tv_info
	.long	L_.str.6-l_reltable.radeon_atombios_get_tv_info
	.long	L_.str.2-l_reltable.radeon_atombios_get_tv_info
	.long	L_.str.1-l_reltable.radeon_atombios_get_tv_info
	.long	L_.str-l_reltable.radeon_atombios_get_tv_info

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_atombios_get_tv_info    ; -- Begin function radeon_atombios_get_tv_info
	.p2align	2
_radeon_atombios_get_tv_info:           ; @radeon_atombios_get_tv_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _AnalogTV_Info@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AnalogTV_Info@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x1, x0
Lloh6:
	adrp	x8, _TV_STD_NTSC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TV_STD_NTSC@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	ldr	x0, [x19]
	add	x3, sp, #4
	mov	x4, sp
	add	x5, sp, #8
	mov	x2, #0
	bl	_atom_parse_data_header
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [sp, #8]
	ldr	w8, [x9, x8]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_3
; %bb.2:
	sbfiz	x9, x8, #3, #32
Lloh9:
	adrp	x8, l_switch.table.radeon_atombios_get_tv_info@PAGE
Lloh10:
	add	x8, x8, l_switch.table.radeon_atombios_get_tv_info@PAGEOFF
	ldr	x8, [x8, x9]
Lloh11:
	adrp	x10, l_switch.table.radeon_atombios_get_tv_info.9@PAGE
Lloh12:
	add	x10, x10, l_switch.table.radeon_atombios_get_tv_info.9@PAGEOFF
	ldr	x0, [x10, x9]
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x0, l_.str.8@PAGE
Lloh14:
	add	x0, x0, l_.str.8@PAGEOFF
Lloh15:
	adrp	x8, _TV_STD_NTSC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TV_STD_NTSC@GOTPAGEOFF]
LBB0_4:
	ldr	w20, [x8]
	bl	_DRM_DEBUG_KMS
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA,4,2                       ; @DATA
	.comm	_AnalogTV_Info,4,2              ; @AnalogTV_Info
	.comm	_TV_STD_NTSC,4,2                ; @TV_STD_NTSC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Default TV standard: NTSC\n"

	.comm	_TV_STD_NTSC_J,4,2              ; @TV_STD_NTSC_J
l_.str.1:                               ; @.str.1
	.asciz	"Default TV standard: NTSC-J\n"

	.comm	_TV_STD_PAL,4,2                 ; @TV_STD_PAL
l_.str.2:                               ; @.str.2
	.asciz	"Default TV standard: PAL\n"

	.comm	_TV_STD_PAL_M,4,2               ; @TV_STD_PAL_M
l_.str.3:                               ; @.str.3
	.asciz	"Default TV standard: PAL-M\n"

	.comm	_TV_STD_PAL_N,4,2               ; @TV_STD_PAL_N
l_.str.4:                               ; @.str.4
	.asciz	"Default TV standard: PAL-N\n"

	.comm	_TV_STD_PAL_CN,4,2              ; @TV_STD_PAL_CN
l_.str.5:                               ; @.str.5
	.asciz	"Default TV standard: PAL-CN\n"

	.comm	_TV_STD_PAL_60,4,2              ; @TV_STD_PAL_60
l_.str.6:                               ; @.str.6
	.asciz	"Default TV standard: PAL-60\n"

	.comm	_TV_STD_SECAM,4,2               ; @TV_STD_SECAM
l_.str.7:                               ; @.str.7
	.asciz	"Default TV standard: SECAM\n"

l_.str.8:                               ; @.str.8
	.asciz	"Unknown TV standard; defaulting to NTSC\n"

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.radeon_atombios_get_tv_info
l_switch.table.radeon_atombios_get_tv_info:
	.quad	_TV_STD_SECAM
	.quad	_TV_STD_PAL_N
	.quad	_TV_STD_PAL_M
	.quad	_TV_STD_PAL_CN
	.quad	_TV_STD_PAL_60
	.quad	_TV_STD_PAL
	.quad	_TV_STD_NTSC_J
	.quad	_TV_STD_NTSC

	.p2align	3                               ; @switch.table.radeon_atombios_get_tv_info.9
l_switch.table.radeon_atombios_get_tv_info.9:
	.quad	l_.str.7
	.quad	l_.str.4
	.quad	l_.str.3
	.quad	l_.str.5
	.quad	l_.str.6
	.quad	l_.str.2
	.quad	l_.str.1
	.quad	l_.str

.subsections_via_symbols
