	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solo_disp_init                 ## -- Begin function solo_disp_init
	.p2align	4, 0x90
_solo_disp_init:                        ## @solo_disp_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$704, (%rdi)                    ## imm = 0x2C0
	movq	8(%rdi), %rax
	movq	_SOLO_VO_FMT_TYPE_NTSC@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	movl	$240, %eax
	movl	$288, %ecx                      ## imm = 0x120
	cmovel	%eax, %ecx
	sete	%dl
	leal	(%rdx,%rdx,4), %eax
	addl	$25, %eax
	movl	%ecx, 16(%rdi)
	movl	%eax, 20(%rdi)
	callq	_solo_vin_config
	movq	%r14, %rdi
	callq	_solo_motion_config
	movq	%r14, %rdi
	callq	_solo_vout_config
	cmpl	$0, 24(%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_SOLO_VI_WIN_ON
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_solo_reg_write
	incl	%ebx
	cmpl	24(%r14), %ebx
	jl	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOLO_VO_FMT_TYPE_NTSC,8,3      ## @SOLO_VO_FMT_TYPE_NTSC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function solo_disp_init
lCPI0_0:
	.long	288                             ; 0x120
	.long	25                              ; 0x19
lCPI0_1:
	.long	240                             ; 0xf0
	.long	30                              ; 0x1e
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_solo_disp_init
	.p2align	2
_solo_disp_init:                        ; @solo_disp_init
	.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
	mov	x19, x0
	mov	w8, #704
	str	w8, [x0]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _SOLO_VO_FMT_TYPE_NTSC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SOLO_VO_FMT_TYPE_NTSC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	dup.2s	v0, w8
	shl.2s	v0, v0, #31
	cmlt.2s	v0, v0, #0
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
Lloh5:
	adrp	x8, lCPI0_1@PAGE
Lloh6:
	ldr	d2, [x8, lCPI0_1@PAGEOFF]
	bsl.8b	v0, v2, v1
	str	d0, [x0, #16]
	bl	_solo_vin_config
	mov	x0, x19
	bl	_solo_motion_config
	mov	x0, x19
	bl	_solo_vout_config
	ldr	w8, [x19, #24]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_SOLO_VI_WIN_ON
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_solo_reg_write
	add	w20, w20, #1
	ldr	w8, [x19, #24]
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SOLO_VO_FMT_TYPE_NTSC,8,3      ; @SOLO_VO_FMT_TYPE_NTSC
.subsections_via_symbols
