	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solo_set_video_type            ## -- Begin function solo_set_video_type
	.p2align	4, 0x90
_solo_set_video_type:                   ## @solo_set_video_type
	.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	%esi, %r14d
	movq	%rdi, %r15
	addq	$20, %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, (%r15)
	jle	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_6:
	testl	%r14d, %r14d
	jne	LBB0_7
## %bb.8:
	movq	_SOLO_VO_FMT_TYPE_NTSC@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_SOLO_VO_FMT_TYPE_PAL@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	%r15, %rdi
	callq	_solo_disp_init
	movq	%r15, %rdi
	callq	_solo_enc_init
	movq	%r15, %rdi
	callq	_solo_tw28_init
	cmpl	$0, (%r15)
	jle	LBB0_12
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_solo_update_mode
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_12:
	movl	4(%r15), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_solo_v4l2_set_ch               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_SOLO_VO_FMT_TYPE_PAL,4,2       ## @SOLO_VO_FMT_TYPE_PAL
	.comm	_SOLO_VO_FMT_TYPE_NTSC,4,2      ## @SOLO_VO_FMT_TYPE_NTSC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solo_set_video_type            ; -- Begin function solo_set_video_type
	.p2align	2
_solo_set_video_type:                   ; @solo_set_video_type
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	add	x0, x0, #20
	bl	_vb2_is_busy
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x21, lsl #3]
	bl	_vb2_is_busy
	cbnz	x0, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_4
LBB0_6:
Lloh3:
	adrp	x8, _SOLO_VO_FMT_TYPE_PAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOLO_VO_FMT_TYPE_PAL@GOTPAGEOFF]
Lloh5:
	adrp	x9, _SOLO_VO_FMT_TYPE_NTSC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SOLO_VO_FMT_TYPE_NTSC@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_solo_disp_init
	mov	x0, x19
	bl	_solo_enc_init
	mov	x0, x19
	bl	_solo_tw28_init
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x20, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x20, lsl #3]
	bl	_solo_update_mode
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_8
LBB0_9:
	ldr	w1, [x19, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_solo_v4l2_set_ch
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_SOLO_VO_FMT_TYPE_PAL,4,2       ; @SOLO_VO_FMT_TYPE_PAL
	.comm	_SOLO_VO_FMT_TYPE_NTSC,4,2      ; @SOLO_VO_FMT_TYPE_NTSC
.subsections_via_symbols
