	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tt3650_ci_set_video_port
_tt3650_ci_set_video_port:              ## @tt3650_ci_set_video_port
	.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
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_ci_dbg
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%r15d, -28(%rbp)
	movq	_TT3650_CMD_CI_SET_VIDEO_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_tt3650_ci_msg_locked
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	xorl	%eax, %eax
	cmpl	%r15d, -28(%rbp)
	je	LBB0_6
## %bb.4:
	testl	%r15d, %r15d
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d %d"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TT3650_CMD_CI_SET_VIDEO_PORT,4,2 ## @TT3650_CMD_CI_SET_VIDEO_PORT
L_.str.1:                               ## @.str.1
	.asciz	"CI not %sabled."

L_.str.2:                               ## @.str.2
	.asciz	"en"

L_.str.3:                               ## @.str.3
	.asciz	"dis"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_tt3650_ci_set_video_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tt3650_ci_set_video_port
_tt3650_ci_set_video_port:              ; @tt3650_ci_set_video_port
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ci_dbg
	cbz	w21, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
LBB0_4:
	str	w19, [sp, #12]
Lloh4:
	adrp	x8, _TT3650_CMD_CI_SET_VIDEO_PORT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TT3650_CMD_CI_SET_VIDEO_PORT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	mov	w3, #1
	mov	w4, #1
	bl	_tt3650_ci_msg_locked
	tbnz	w0, #31, LBB0_3
; %bb.5:
	ldr	w8, [sp, #12]
	cmp	w8, w19
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_3
LBB0_7:
Lloh7:
	adrp	x8, l_.str.2@PAGE
Lloh8:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh9:
	adrp	x9, l_.str.3@PAGE
Lloh10:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w19, #0
	csel	x1, x9, x8, eq
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_err
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d %d"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TT3650_CMD_CI_SET_VIDEO_PORT,4,2 ; @TT3650_CMD_CI_SET_VIDEO_PORT
l_.str.1:                               ; @.str.1
	.asciz	"CI not %sabled."

l_.str.2:                               ; @.str.2
	.asciz	"en"

l_.str.3:                               ; @.str.3
	.asciz	"dis"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_tt3650_ci_set_video_port
.subsections_via_symbols
