	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdec_start_output
_vdec_start_output:                     ## @vdec_start_output
	.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, %rbx
	movq	(%rdi), %rax
	movq	_VENUS_DEC_STATE_SEEK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_venus_helper_process_initial_out_bufs
	movq	_VENUS_DEC_STATE_DECODING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rbx)
	jmp	LBB0_14
LBB0_2:
	movq	_VENUS_DEC_STATE_INIT@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_4
## %bb.3:
	movq	_VENUS_DEC_STATE_CAPTURE_SETUP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.5:
	movq	_VENUS_DEC_STATE_DEINIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	_venus_helper_init_instance
	movq	$0, 24(%rbx)
	movl	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_vdec_set_properties
	testl	%eax, %eax
	jne	LBB0_15
## %bb.8:
	movq	%rbx, %rdi
	callq	_vdec_output_conf
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:
	movq	%rbx, %rdi
	callq	_vdec_verify_conf
	testl	%eax, %eax
	jne	LBB0_15
## %bb.10:
	movl	16(%rbx), %esi
	movq	_VB2_MAX_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_venus_helper_set_num_bufs
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movq	%rbx, %rdi
	callq	_venus_helper_vb2_start_streaming
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movq	%rbx, %rdi
	callq	_venus_helper_process_initial_out_bufs
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_4:
	movq	%rbx, %rdi
	callq	_venus_helper_process_initial_out_bufs
LBB0_14:
	movl	$1, 12(%rbx)
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_VENUS_DEC_STATE_SEEK,8,3       ## @VENUS_DEC_STATE_SEEK
	.comm	_VENUS_DEC_STATE_DECODING,8,3   ## @VENUS_DEC_STATE_DECODING
	.comm	_VENUS_DEC_STATE_INIT,8,3       ## @VENUS_DEC_STATE_INIT
	.comm	_VENUS_DEC_STATE_CAPTURE_SETUP,8,3 ## @VENUS_DEC_STATE_CAPTURE_SETUP
	.comm	_VENUS_DEC_STATE_DEINIT,8,3     ## @VENUS_DEC_STATE_DEINIT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VB2_MAX_FRAME,4,2              ## @VB2_MAX_FRAME
	.no_dead_strip	_vdec_start_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdec_start_output
_vdec_start_output:                     ; @vdec_start_output
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _VENUS_DEC_STATE_SEEK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VENUS_DEC_STATE_SEEK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_venus_helper_process_initial_out_bufs
Lloh3:
	adrp	x8, _VENUS_DEC_STATE_DECODING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VENUS_DEC_STATE_DECODING@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
LBB0_2:
	str	x8, [x19]
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x20, _VENUS_DEC_STATE_INIT@GOTPAGE
Lloh7:
	ldr	x20, [x20, _VENUS_DEC_STATE_INIT@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh8:
	adrp	x10, _VENUS_DEC_STATE_CAPTURE_SETUP@GOTPAGE
Lloh9:
	ldr	x10, [x10, _VENUS_DEC_STATE_CAPTURE_SETUP@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_venus_helper_process_initial_out_bufs
LBB0_5:
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh11:
	adrp	x9, _VENUS_DEC_STATE_DEINIT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VENUS_DEC_STATE_DEINIT@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.8:
	mov	x0, x19
	bl	_venus_helper_init_instance
	str	xzr, [x19, #24]
	str	wzr, [x19, #8]
	mov	x0, x19
	bl	_vdec_set_properties
	cbnz	w0, LBB0_6
; %bb.9:
	mov	x0, x19
	bl	_vdec_output_conf
	cbnz	w0, LBB0_6
; %bb.10:
	mov	x0, x19
	bl	_vdec_verify_conf
	cbnz	w0, LBB0_6
; %bb.11:
	ldr	w1, [x19, #16]
Lloh14:
	adrp	x8, _VB2_MAX_FRAME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VB2_MAX_FRAME@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	bl	_venus_helper_set_num_bufs
	cbnz	w0, LBB0_6
; %bb.12:
	mov	x0, x19
	bl	_venus_helper_vb2_start_streaming
	cbnz	w0, LBB0_6
; %bb.13:
	mov	x0, x19
	bl	_venus_helper_process_initial_out_bufs
	cbnz	w0, LBB0_6
; %bb.14:
	ldr	x8, [x20]
	b	LBB0_2
LBB0_15:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_VENUS_DEC_STATE_SEEK,8,3       ; @VENUS_DEC_STATE_SEEK
	.comm	_VENUS_DEC_STATE_DECODING,8,3   ; @VENUS_DEC_STATE_DECODING
	.comm	_VENUS_DEC_STATE_INIT,8,3       ; @VENUS_DEC_STATE_INIT
	.comm	_VENUS_DEC_STATE_CAPTURE_SETUP,8,3 ; @VENUS_DEC_STATE_CAPTURE_SETUP
	.comm	_VENUS_DEC_STATE_DEINIT,8,3     ; @VENUS_DEC_STATE_DEINIT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VB2_MAX_FRAME,4,2              ; @VB2_MAX_FRAME
	.no_dead_strip	_vdec_start_output
.subsections_via_symbols
