	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_combios_get_tv_info     ## -- Begin function radeon_combios_get_tv_info
	.p2align	4, 0x90
_radeon_combios_get_tv_info:            ## @radeon_combios_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rdi
	movq	_TV_STD_NTSC@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	movq	_COMBIOS_TV_INFO_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_combios_get_table_offset
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	leaq	6(%rax), %rdi
	callq	_RBIOS8
	cmpl	$84, %eax
	jne	LBB0_6
## %bb.2:
	leaq	7(%rbx), %rdi
	callq	_RBIOS8
	andl	$15, %eax
	decl	%eax
	cmpl	$5, %eax
	ja	LBB0_3
## %bb.4:
	cltq
	leaq	l_switch.table.radeon_combios_get_tv_info(%rip), %rcx
	movq	(%rcx,%rax,8), %r15
	leaq	l_reltable.radeon_combios_get_tv_info(%rip), %rcx
	movslq	(%rcx,%rax,4), %rdi
	addq	%rcx, %rdi
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.6(%rip), %rdi
LBB0_5:
	movl	(%r15), %r14d
	callq	_DRM_DEBUG_KMS
	addq	$9, %rbx
	movq	%rbx, %rdi
	callq	_RBIOS8
                                        ## kill: def $eax killed $eax def $rax
	shrl	$2, %eax
	andl	$3, %eax
	leaq	l_reltable.radeon_combios_get_tv_info.13(%rip), %rcx
	movslq	(%rcx,%rax,4), %rdi
	addq	%rcx, %rdi
	callq	_DRM_DEBUG_KMS
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TV_STD_NTSC,4,2                ## @TV_STD_NTSC
	.comm	_COMBIOS_TV_INFO_TABLE,4,2      ## @COMBIOS_TV_INFO_TABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Default TV standard: NTSC\n"

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

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

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

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

	.comm	_TV_STD_SCART_PAL,4,2           ## @TV_STD_SCART_PAL
L_.str.5:                               ## @.str.5
	.asciz	"Default TV standard: SCART-PAL\n"

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

L_.str.7:                               ## @.str.7
	.asciz	"29.498928713 MHz TV ref clk\n"

L_.str.8:                               ## @.str.8
	.asciz	"28.636360000 MHz TV ref clk\n"

L_.str.9:                               ## @.str.9
	.asciz	"14.318180000 MHz TV ref clk\n"

L_.str.10:                              ## @.str.10
	.asciz	"27.000000000 MHz TV ref clk\n"

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.radeon_combios_get_tv_info
l_switch.table.radeon_combios_get_tv_info:
	.quad	_TV_STD_NTSC
	.quad	_TV_STD_PAL
	.quad	_TV_STD_PAL_M
	.quad	_TV_STD_PAL_60
	.quad	_TV_STD_NTSC_J
	.quad	_TV_STD_SCART_PAL

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

	.p2align	2                               ## @reltable.radeon_combios_get_tv_info.13
l_reltable.radeon_combios_get_tv_info.13:
	.long	L_.str.7-l_reltable.radeon_combios_get_tv_info.13
	.long	L_.str.8-l_reltable.radeon_combios_get_tv_info.13
	.long	L_.str.9-l_reltable.radeon_combios_get_tv_info.13
	.long	L_.str.10-l_reltable.radeon_combios_get_tv_info.13

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_combios_get_tv_info     ; -- Begin function radeon_combios_get_tv_info
	.p2align	2
_radeon_combios_get_tv_info:            ; @radeon_combios_get_tv_info
	.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
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _TV_STD_NTSC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TV_STD_NTSC@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _COMBIOS_TV_INFO_TABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COMBIOS_TV_INFO_TABLE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_combios_get_table_offset
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	add	x0, x0, #6
	bl	_RBIOS8
	cmp	w0, #84
	b.ne	LBB0_6
; %bb.2:
	add	x0, x19, #7
	bl	_RBIOS8
                                        ; kill: def $w0 killed $w0 def $x0
	and	x8, x0, #0xf
	sub	x9, x8, #1
	cmp	w9, #5
	b.hi	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, l_switch.table.radeon_combios_get_tv_info@PAGE
Lloh7:
	add	x8, x8, l_switch.table.radeon_combios_get_tv_info@PAGEOFF
	ldr	x8, [x8, x9, lsl #3]
Lloh8:
	adrp	x10, l_switch.table.radeon_combios_get_tv_info.11@PAGE
Lloh9:
	add	x10, x10, l_switch.table.radeon_combios_get_tv_info.11@PAGEOFF
	ldr	x0, [x10, w9, sxtw #3]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x0, l_.str.6@PAGE
Lloh11:
	add	x0, x0, l_.str.6@PAGEOFF
Lloh12:
	adrp	x8, _TV_STD_NTSC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TV_STD_NTSC@GOTPAGEOFF]
LBB0_5:
	ldr	w20, [x8]
	bl	_DRM_DEBUG_KMS
	add	x0, x19, #9
	bl	_RBIOS8
	ubfx	w8, w0, #2, #2
Lloh14:
	adrp	x9, l_switch.table.radeon_combios_get_tv_info.12@PAGE
Lloh15:
	add	x9, x9, l_switch.table.radeon_combios_get_tv_info.12@PAGEOFF
	ldr	x0, [x9, w8, uxtw #3]
	bl	_DRM_DEBUG_KMS
LBB0_6:
	mov	x0, x20
	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 AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_TV_STD_NTSC,4,2                ; @TV_STD_NTSC
	.comm	_COMBIOS_TV_INFO_TABLE,4,2      ; @COMBIOS_TV_INFO_TABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Default TV standard: NTSC\n"

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

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

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

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

	.comm	_TV_STD_SCART_PAL,4,2           ; @TV_STD_SCART_PAL
l_.str.5:                               ; @.str.5
	.asciz	"Default TV standard: SCART-PAL\n"

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

l_.str.7:                               ; @.str.7
	.asciz	"29.498928713 MHz TV ref clk\n"

l_.str.8:                               ; @.str.8
	.asciz	"28.636360000 MHz TV ref clk\n"

l_.str.9:                               ; @.str.9
	.asciz	"14.318180000 MHz TV ref clk\n"

l_.str.10:                              ; @.str.10
	.asciz	"27.000000000 MHz TV ref clk\n"

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.radeon_combios_get_tv_info
l_switch.table.radeon_combios_get_tv_info:
	.quad	_TV_STD_NTSC
	.quad	_TV_STD_PAL
	.quad	_TV_STD_PAL_M
	.quad	_TV_STD_PAL_60
	.quad	_TV_STD_NTSC_J
	.quad	_TV_STD_SCART_PAL

	.p2align	3                               ; @switch.table.radeon_combios_get_tv_info.11
l_switch.table.radeon_combios_get_tv_info.11:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5

	.p2align	3                               ; @switch.table.radeon_combios_get_tv_info.12
l_switch.table.radeon_combios_get_tv_info.12:
	.quad	l_.str.7
	.quad	l_.str.8
	.quad	l_.str.9
	.quad	l_.str.10

.subsections_via_symbols
