	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function power_on_sdtv
_power_on_sdtv:                         ## @power_on_sdtv
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	movl	%edi, %r12d
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	%r14d, -40(%rbp)
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_SDTV_MODE_PROGRESSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	orl	%r12d, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_LOG_STD
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_vc_tv_sdtv_power_on
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_LOG_ERR
LBB0_4:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDTV_MODE_PROGRESSIVE,4,2      ## @SDTV_MODE_PROGRESSIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Powering on SDTV with explicit settings (mode:%d aspect:%d)"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to power on SDTV with explicit settings (mode:%d aspect:%d)"

	.no_dead_strip	_power_on_sdtv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function power_on_sdtv
_power_on_sdtv:                         ; @power_on_sdtv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	w19, [sp, #8]
Lloh0:
	adrp	x8, _SDTV_MODE_PROGRESSIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDTV_MODE_PROGRESSIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, #0
	csel	w8, wzr, w8, eq
	orr	w20, w8, w21
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_LOG_STD
	add	x1, sp, #8
	mov	x0, x20
	bl	_vc_tv_sdtv_power_on
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_LOG_ERR
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SDTV_MODE_PROGRESSIVE,4,2      ; @SDTV_MODE_PROGRESSIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Powering on SDTV with explicit settings (mode:%d aspect:%d)"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to power on SDTV with explicit settings (mode:%d aspect:%d)"

	.no_dead_strip	_power_on_sdtv
.subsections_via_symbols
