	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdec_output_conf
_vdec_output_conf:                      ## @vdec_output_conf
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	56(%rdi), %r14
	movl	$1, -56(%rbp)
	movl	(%rdi), %r15d
	movl	4(%rdi), %r12d
	movq	_VIDC_WORK_MODE_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_venus_helper_set_work_mode
	testl	%eax, %eax
	jne	LBB0_24
## %bb.1:
	movq	_VIDC_CORE_ID_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_venus_helper_set_core_usage
	testl	%eax, %eax
	jne	LBB0_24
## %bb.2:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_HFI_VERSION_1XX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_HFI_PROPERTY_PARAM_VDEC_CONTINUE_DATA_TRANSFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_hfi_session_set_property
	testl	%eax, %eax
	jne	LBB0_24
LBB0_4:
	xorl	%r13d, %r13d
	cmpl	$1921, %r15d                    ## imm = 0x781
	jl	LBB0_6
## %bb.5:
	movl	$1080, %edi                     ## imm = 0x438
	movl	$32, %esi
	callq	_ALIGN
	xorl	%r13d, %r13d
	cmpl	%eax, %r12d
	setg	%r13b
LBB0_6:
	movq	%r14, %rdi
	callq	_IS_V4
	testq	%rax, %rax
	movl	$1, %r8d
	cmovel	%r13d, %r8d
	movq	48(%rbx), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_venus_helper_get_out_fmts
	testl	%eax, %eax
	jne	LBB0_24
## %bb.7:
	movl	-48(%rbp), %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_venus_helper_get_framesz_raw
	movq	%rax, 16(%rbx)
	movl	-44(%rbp), %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_venus_helper_get_framesz_raw
	movq	%rax, 24(%rbx)
	movl	-48(%rbp), %edi
	callq	_is_ubwc_fmt
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_HFI_BUFFER_OUTPUT2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rdx, 40(%rbx)
	movl	-44(%rbp), %esi
	movl	%esi, 8(%rbx)
	movq	_HFI_BUFFER_OUTPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movl	-48(%rbp), %eax
	jmp	LBB0_12
LBB0_9:
	movl	-44(%rbp), %edi
	callq	_is_ubwc_fmt
	movq	_HFI_BUFFER_OUTPUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, 40(%rbx)
	movl	-48(%rbp), %esi
	movl	%esi, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_HFI_BUFFER_OUTPUT2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movl	-44(%rbp), %eax
	jmp	LBB0_12
LBB0_11:
	movq	$0, 32(%rbx)
	xorl	%eax, %eax
LBB0_12:
	movl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	callq	_venus_helper_set_raw_format
	testl	%eax, %eax
	je	LBB0_13
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	cmpl	$0, 12(%rbx)
	je	LBB0_17
## %bb.14:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_venus_helper_set_multistream
	testl	%eax, %eax
	jne	LBB0_24
## %bb.15:
	movl	12(%rbx), %esi
	movq	32(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_venus_helper_set_raw_format
	testl	%eax, %eax
	jne	LBB0_24
## %bb.16:
	movq	_HFI_BUFFER_OUTPUT2@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_venus_helper_set_output_resolution
	testl	%eax, %eax
	jne	LBB0_24
LBB0_17:
	movq	%r14, %rdi
	callq	_IS_V3
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_IS_V4
	testq	%rax, %rax
	je	LBB0_23
LBB0_19:
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.20:
	movq	_HFI_BUFFER_OUTPUT2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	callq	_venus_helper_set_bufsize
	testl	%eax, %eax
	jne	LBB0_24
LBB0_21:
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_23
## %bb.22:
	movq	_HFI_BUFFER_OUTPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	callq	_venus_helper_set_bufsize
	testl	%eax, %eax
	jne	LBB0_24
LBB0_23:
	movq	%rbx, %rdi
	callq	_venus_helper_set_dyn_bufmode
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDC_WORK_MODE_2,4,2           ## @VIDC_WORK_MODE_2
	.comm	_VIDC_CORE_ID_1,4,2             ## @VIDC_CORE_ID_1
	.comm	_HFI_VERSION_1XX,8,3            ## @HFI_VERSION_1XX
	.comm	_HFI_PROPERTY_PARAM_VDEC_CONTINUE_DATA_TRANSFER,4,2 ## @HFI_PROPERTY_PARAM_VDEC_CONTINUE_DATA_TRANSFER
	.comm	_HFI_BUFFER_OUTPUT2,8,3         ## @HFI_BUFFER_OUTPUT2
	.comm	_HFI_BUFFER_OUTPUT,8,3          ## @HFI_BUFFER_OUTPUT
	.no_dead_strip	_vdec_output_conf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdec_output_conf
_vdec_output_conf:                      ; @vdec_output_conf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x20, [x0, #56]
	mov	w8, #1
	str	w8, [sp, #8]
	ldp	w21, w22, [x0]
Lloh0:
	adrp	x8, _VIDC_WORK_MODE_2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDC_WORK_MODE_2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_venus_helper_set_work_mode
	cbnz	w0, LBB0_14
; %bb.1:
Lloh3:
	adrp	x8, _VIDC_CORE_ID_1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIDC_CORE_ID_1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_venus_helper_set_core_usage
	cbnz	w0, LBB0_14
; %bb.2:
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _HFI_VERSION_1XX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HFI_VERSION_1XX@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _HFI_PROPERTY_PARAM_VDEC_CONTINUE_DATA_TRANSFER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HFI_PROPERTY_PARAM_VDEC_CONTINUE_DATA_TRANSFER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_hfi_session_set_property
	cbnz	w0, LBB0_14
LBB0_4:
	cmp	w21, #1921
	b.lt	LBB0_6
; %bb.5:
	mov	w0, #1080
	mov	w1, #32
	bl	_ALIGN
	cmp	w22, w0
	cset	w23, gt
	b	LBB0_7
LBB0_6:
	mov	w23, #0
LBB0_7:
	mov	x0, x20
	bl	_IS_V4
	cmp	x0, #0
	csinc	w4, w23, wzr, eq
	ldr	x8, [x19, #48]
	ldr	w1, [x8]
	add	x2, sp, #4
	mov	x3, sp
	mov	x0, x19
	bl	_venus_helper_get_out_fmts
	cbnz	w0, LBB0_14
; %bb.8:
	ldr	w0, [sp, #4]
	mov	x1, x21
	mov	x2, x22
	bl	_venus_helper_get_framesz_raw
	str	x0, [x19, #16]
	ldr	w0, [sp]
	mov	x1, x21
	mov	x2, x22
	bl	_venus_helper_get_framesz_raw
	str	x0, [x19, #24]
	ldr	w0, [sp, #4]
	bl	_is_ubwc_fmt
	cbz	x0, LBB0_10
; %bb.9:
Lloh12:
	adrp	x8, _HFI_BUFFER_OUTPUT2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HFI_BUFFER_OUTPUT2@GOTPAGEOFF]
Lloh14:
	ldr	x2, [x8]
	ldr	w1, [sp]
	str	w1, [x19, #8]
Lloh15:
	adrp	x8, _HFI_BUFFER_OUTPUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HFI_BUFFER_OUTPUT@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	stp	x8, x2, [x19, #32]
	ldr	w8, [sp, #4]
	b	LBB0_13
LBB0_10:
	ldr	w0, [sp]
	bl	_is_ubwc_fmt
Lloh18:
	adrp	x8, _HFI_BUFFER_OUTPUT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HFI_BUFFER_OUTPUT@GOTPAGEOFF]
Lloh20:
	ldr	x2, [x8]
	str	x2, [x19, #40]
	ldr	w1, [sp, #4]
	str	w1, [x19, #8]
	cbz	x0, LBB0_12
; %bb.11:
Lloh21:
	adrp	x8, _HFI_BUFFER_OUTPUT2@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HFI_BUFFER_OUTPUT2@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	x8, [x19, #32]
	ldr	w8, [sp]
	b	LBB0_13
LBB0_12:
	mov	w8, #0
	str	xzr, [x19, #32]
LBB0_13:
	str	w8, [x19, #12]
	mov	x0, x19
	bl	_venus_helper_set_raw_format
	cbz	w0, LBB0_15
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_15:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_19
; %bb.16:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_venus_helper_set_multistream
	cbnz	w0, LBB0_14
; %bb.17:
	ldr	w1, [x19, #12]
	ldr	x2, [x19, #32]
	mov	x0, x19
	bl	_venus_helper_set_raw_format
	cbnz	w0, LBB0_14
; %bb.18:
Lloh24:
	adrp	x8, _HFI_BUFFER_OUTPUT2@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HFI_BUFFER_OUTPUT2@GOTPAGEOFF]
Lloh26:
	ldr	x3, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_venus_helper_set_output_resolution
	cbnz	w0, LBB0_14
LBB0_19:
	mov	x0, x20
	bl	_IS_V3
	cbnz	x0, LBB0_21
; %bb.20:
	mov	x0, x20
	bl	_IS_V4
	cbz	x0, LBB0_25
LBB0_21:
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_23
; %bb.22:
Lloh27:
	adrp	x8, _HFI_BUFFER_OUTPUT2@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HFI_BUFFER_OUTPUT2@GOTPAGEOFF]
Lloh29:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_venus_helper_set_bufsize
	cbnz	w0, LBB0_14
LBB0_23:
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_25
; %bb.24:
Lloh30:
	adrp	x8, _HFI_BUFFER_OUTPUT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HFI_BUFFER_OUTPUT@GOTPAGEOFF]
Lloh32:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_venus_helper_set_bufsize
	cbnz	w0, LBB0_14
LBB0_25:
	mov	x0, x19
	bl	_venus_helper_set_dyn_bufmode
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDC_WORK_MODE_2,4,2           ; @VIDC_WORK_MODE_2
	.comm	_VIDC_CORE_ID_1,4,2             ; @VIDC_CORE_ID_1
	.comm	_HFI_VERSION_1XX,8,3            ; @HFI_VERSION_1XX
	.comm	_HFI_PROPERTY_PARAM_VDEC_CONTINUE_DATA_TRANSFER,4,2 ; @HFI_PROPERTY_PARAM_VDEC_CONTINUE_DATA_TRANSFER
	.comm	_HFI_BUFFER_OUTPUT2,8,3         ; @HFI_BUFFER_OUTPUT2
	.comm	_HFI_BUFFER_OUTPUT,8,3          ; @HFI_BUFFER_OUTPUT
	.no_dead_strip	_vdec_output_conf
.subsections_via_symbols
