	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svp_setup_reader
_svp_setup_reader:                      ## @svp_setup_reader
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	20(%rdi), %edi
	callq	_mmal_util_port_set_uri
	movq	%rax, %r12
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_5
## %bb.1:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movq	8(%rbx), %rdx
	movq	_MMAL_ES_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rcx,8), %rdi
	movq	(%rdi), %rdi
	cmpq	%rsi, (%rdi)
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_7
	jmp	LBB0_9
LBB0_5:
	movslq	16(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	jmp	LBB0_10
LBB0_2:
	xorl	%ecx, %ecx
LBB0_3:
	cmpq	%rax, %rcx
	jne	LBB0_4
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_10
LBB0_4:
	movq	8(%rbx), %rax
	movq	(%rax,%rcx,8), %rax
	movq	%rax, (%r15)
LBB0_10:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: couldn't open uri %s"

	.comm	_MMAL_ES_TYPE_VIDEO,8,3         ## @MMAL_ES_TYPE_VIDEO
L_.str.1:                               ## @.str.1
	.asciz	"%s: no video track"

	.comm	_MMAL_EINVAL,8,3                ## @MMAL_EINVAL
	.no_dead_strip	_svp_setup_reader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svp_setup_reader
_svp_setup_reader:                      ; @svp_setup_reader
	.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	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldr	w0, [x0, #20]
	bl	_mmal_util_port_set_uri
	mov	x19, x0
Lloh0:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x9, #0
	ldr	x10, [x22, #8]
Lloh3:
	adrp	x11, _MMAL_ES_TYPE_VIDEO@GOTPAGE
Lloh4:
	ldr	x11, [x11, _MMAL_ES_TYPE_VIDEO@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10, x9, lsl #3]
	ldr	x12, [x12]
	ldr	x12, [x12]
	cmp	x12, x11
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_3
	b	LBB0_8
LBB0_5:
	ldrsw	x1, [x22, #16]
	str	x20, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_ERROR
	b	LBB0_10
LBB0_6:
	mov	x9, #0
LBB0_7:
	cmp	x9, x8
	b.ne	LBB0_9
LBB0_8:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_LOG_ERROR
Lloh10:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	x19, [x8]
	b	LBB0_10
LBB0_9:
	ldr	x8, [x22, #8]
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [x21]
LBB0_10:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: couldn't open uri %s"

	.comm	_MMAL_ES_TYPE_VIDEO,8,3         ; @MMAL_ES_TYPE_VIDEO
l_.str.1:                               ; @.str.1
	.asciz	"%s: no video track"

	.comm	_MMAL_EINVAL,8,3                ; @MMAL_EINVAL
	.no_dead_strip	_svp_setup_reader
.subsections_via_symbols
