	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffp_set_stream_selected        ## -- Begin function ffp_set_stream_selected
	.p2align	4, 0x90
_ffp_set_stream_selected:               ## @ffp_set_stream_selected
	.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), %rax
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_26
## %bb.1:
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_26
## %bb.2:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	(%rcx), %r8d
	testl	%esi, %esi
	js	LBB0_4
## %bb.3:
	cmpl	%r15d, %r8d
	jle	LBB0_4
## %bb.5:
	movq	8(%rcx), %rcx
	movl	%r15d, %esi
	movq	(%rcx,%rsi,8), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %r8d
	testl	%edx, %edx
	je	LBB0_17
## %bb.6:
	cmpl	$130, %r8d
	je	LBB0_14
## %bb.7:
	cmpl	$129, %r8d
	je	LBB0_15
## %bb.8:
	cmpl	$128, %r8d
	jne	LBB0_16
## %bb.9:
	movl	(%rax), %esi
	jmp	LBB0_10
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_25:
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	callq	_av_log
LBB0_26:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	cmpl	$130, %r8d
	je	LBB0_22
## %bb.18:
	cmpl	$129, %r8d
	je	LBB0_23
## %bb.19:
	cmpl	$128, %r8d
	jne	LBB0_24
## %bb.20:
	xorl	%r14d, %r14d
	cmpl	%r15d, (%rax)
	jne	LBB0_26
	jmp	LBB0_21
LBB0_14:
	movl	4(%rax), %esi
	jmp	LBB0_10
LBB0_15:
	movl	8(%rax), %esi
LBB0_10:
	cmpl	%r15d, %esi
	je	LBB0_13
## %bb.11:
	testl	%esi, %esi
	js	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_stream_component_close
LBB0_13:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stream_component_open          ## TAILCALL
LBB0_16:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_25
LBB0_22:
	xorl	%r14d, %r14d
	cmpl	%r15d, 4(%rax)
	jne	LBB0_26
	jmp	LBB0_21
LBB0_23:
	xorl	%r14d, %r14d
	cmpl	%r15d, 8(%rax)
	jne	LBB0_26
LBB0_21:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_stream_component_close
	jmp	LBB0_26
LBB0_24:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid stream index %d >= stream number (%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"select invalid stream %d of video type %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"select invalid stream %d of audio type %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffp_set_stream_selected        ; -- Begin function ffp_set_stream_selected
	.p2align	2
_ffp_set_stream_selected:               ; @ffp_set_stream_selected
	.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	x8, [x0]
	cbz	x8, LBB0_11
; %bb.1:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_11
; %bb.2:
	mov	x19, x1
	mov	x20, x0
	ldr	w4, [x9]
	tbnz	w1, #31, LBB0_9
; %bb.3:
	cmp	w4, w19
	b.le	LBB0_9
; %bb.4:
	ldr	x9, [x9, #8]
	ldr	x9, [x9, w19, uxtw #3]
	ldr	x9, [x9]
	ldr	w4, [x9]
	cmp	w4, #130
	cbz	w2, LBB0_13
; %bb.5:
	b.eq	LBB0_17
; %bb.6:
	cmp	w4, #129
	b.eq	LBB0_18
; %bb.7:
	cmp	w4, #128
	b.ne	LBB0_22
; %bb.8:
	ldr	w1, [x8]
	cmp	w1, w19
	b.ne	LBB0_19
	b	LBB0_21
LBB0_9:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
LBB0_10:
	mov	x0, x20
	mov	x3, x19
	bl	_av_log
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
	b.eq	LBB0_23
; %bb.14:
	cmp	w4, #129
	b.eq	LBB0_25
; %bb.15:
	cmp	w4, #128
	b.ne	LBB0_27
; %bb.16:
	ldr	w8, [x8]
	cmp	w8, w19
	b.eq	LBB0_24
	b	LBB0_26
LBB0_17:
	ldr	w1, [x8, #4]
	cmp	w1, w19
	b.ne	LBB0_19
	b	LBB0_21
LBB0_18:
	ldr	w1, [x8, #8]
	cmp	w1, w19
	b.eq	LBB0_21
LBB0_19:
	tbnz	w1, #31, LBB0_21
; %bb.20:
	mov	x0, x20
	bl	_stream_component_close
LBB0_21:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_stream_component_open
LBB0_22:
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_23:
	ldr	w8, [x8, #4]
	cmp	w8, w19
	b.ne	LBB0_26
LBB0_24:
	mov	x0, x20
	mov	x1, x19
	bl	_stream_component_close
	mov	w0, #0
	b	LBB0_12
LBB0_25:
	ldr	w8, [x8, #8]
	cmp	w8, w19
	b.eq	LBB0_24
LBB0_26:
	mov	w0, #0
	b	LBB0_12
LBB0_27:
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_10
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid stream index %d >= stream number (%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"select invalid stream %d of video type %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"select invalid stream %d of audio type %d\n"

.subsections_via_symbols
