	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_venus_helper_get_out_fmts      ## -- Begin function venus_helper_get_out_fmts
	.p2align	4, 0x90
_venus_helper_get_out_fmts:             ## @venus_helper_get_out_fmts
	.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
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movl	%esi, %edi
	callq	_to_hfi_raw_fmt
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	$0, (%r15)
	movl	$0, (%r13)
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movl	%eax, %r14d
	movq	%r13, %r15
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%r12, %rdi
	callq	_venus_caps_by_codec
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %r12
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.3:
	movq	_HFI_COLOR_FORMAT_UBWC_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	orl	%r14d, %r13d
	movq	_HFI_BUFFER_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_find_fmt_from_caps
	movl	%eax, %ebx
	movq	_HFI_BUFFER_OUTPUT2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_find_fmt_from_caps
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.4:
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%r13d, (%r15)
	jmp	LBB0_6
LBB0_7:
	movq	_HFI_BUFFER_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_find_fmt_from_caps
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%r14d, (%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_9:
	movq	_HFI_BUFFER_OUTPUT2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_find_fmt_from_caps
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	$0, (%r15)
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HFI_COLOR_FORMAT_UBWC_BASE,4,2 ## @HFI_COLOR_FORMAT_UBWC_BASE
	.comm	_HFI_BUFFER_OUTPUT,4,2          ## @HFI_BUFFER_OUTPUT
	.comm	_HFI_BUFFER_OUTPUT2,4,2         ## @HFI_BUFFER_OUTPUT2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_venus_helper_get_out_fmts      ; -- Begin function venus_helper_get_out_fmts
	.p2align	2
_venus_helper_get_out_fmts:             ; @venus_helper_get_out_fmts
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x24, x0
	ldr	x22, [x0, #8]
	mov	x0, x1
	bl	_to_hfi_raw_fmt
	str	wzr, [x19]
	str	wzr, [x20]
	cbz	w0, LBB0_9
; %bb.1:
	mov	x21, x0
	ldp	w2, w1, [x24]
	mov	x0, x22
	bl	_venus_caps_by_codec
	cbz	x0, LBB0_9
; %bb.2:
	mov	x22, x0
Lloh0:
	adrp	x25, _HFI_BUFFER_OUTPUT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _HFI_BUFFER_OUTPUT@GOTPAGEOFF]
	cbz	w23, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _HFI_COLOR_FORMAT_UBWC_BASE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HFI_COLOR_FORMAT_UBWC_BASE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w23, w8, w21
	ldr	w1, [x25]
	mov	x0, x22
	mov	x2, x23
	bl	_find_fmt_from_caps
	mov	x24, x0
Lloh5:
	adrp	x8, _HFI_BUFFER_OUTPUT2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HFI_BUFFER_OUTPUT2@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x21
	bl	_find_fmt_from_caps
	cmp	w24, #0
	ccmp	w0, #0, #4, ne
	b.ne	LBB0_6
LBB0_4:
	ldr	w1, [x25]
	mov	x0, x22
	mov	x2, x21
	bl	_find_fmt_from_caps
	cbz	w0, LBB0_7
; %bb.5:
	mov	w0, #0
	str	w21, [x20]
	str	wzr, [x19]
	b	LBB0_10
LBB0_6:
	mov	w0, #0
	str	w23, [x20]
	str	w21, [x19]
	b	LBB0_10
LBB0_7:
Lloh8:
	adrp	x8, _HFI_BUFFER_OUTPUT2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HFI_BUFFER_OUTPUT2@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x21
	bl	_find_fmt_from_caps
	cbz	w0, LBB0_9
; %bb.8:
	mov	w0, #0
	str	wzr, [x20]
	str	w21, [x19]
	b	LBB0_10
LBB0_9:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HFI_COLOR_FORMAT_UBWC_BASE,4,2 ; @HFI_COLOR_FORMAT_UBWC_BASE
	.comm	_HFI_BUFFER_OUTPUT,4,2          ; @HFI_BUFFER_OUTPUT
	.comm	_HFI_BUFFER_OUTPUT2,4,2         ; @HFI_BUFFER_OUTPUT2
.subsections_via_symbols
