	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function venc_s_fmt
_venc_s_fmt:                            ## @venc_s_fmt
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	callq	_to_inst
	movq	%rax, %r14
	movl	16(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	20(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_venc_try_fmt_common
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	24(%rbx), %r13
	movq	8(%r14), %rax
	movq	(%rax), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_4:
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	24(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rax
	movq	(%rax), %r13
	jmp	LBB0_8
LBB0_6:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
LBB0_7:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_8:
	leaq	-112(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, -112(%rbp)
	movq	%r13, -88(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -92(%rbp)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -96(%rbp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_venc_try_fmt_common
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_10
## %bb.9:
	movl	-92(%rbp), %eax
	movl	%eax, 52(%r14)
	movl	-96(%rbp), %eax
	movl	%eax, 48(%r14)
	movups	32(%rbx), %xmm0
	movups	%xmm0, 32(%r14)
LBB0_10:
	leaq	-112(%rbp), %r13
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, -112(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -88(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -92(%rbp)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -96(%rbp)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_venc_try_fmt_common
	movl	-92(%rbp), %eax
	movl	%eax, 28(%r14)
	movl	-96(%rbp), %eax
	movl	%eax, 24(%r14)
	movq	(%rbx), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r14)
	jmp	LBB0_14
LBB0_12:
	cmpq	(%r15), %rax
	jne	LBB0_14
## %bb.13:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r14)
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_14:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,8,3 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
	.no_dead_strip	_venc_s_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function venc_s_fmt
_venc_s_fmt:                            ; @venc_s_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	bl	_to_inst
	mov	x20, x0
	ldp	w22, w23, [x19, #16]
	mov	x1, x19
	bl	_venc_try_fmt_common
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x25, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGEOFF]
	ldr	x9, [x25]
Lloh2:
	adrp	x24, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x27, [x19, #24]
	ldr	x8, [x20, #8]
	ldr	x26, [x8]
	b	LBB0_7
LBB0_3:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_4:
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	x26, [x19, #24]
	ldr	x8, [x20, #16]
	ldr	x27, [x8]
	b	LBB0_7
LBB0_6:
	mov	x27, #0
	mov	x26, #0
LBB0_7:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldr	x8, [x25]
	str	x8, [sp]
	str	x27, [sp, #24]
	stp	w22, w23, [sp, #16]
	mov	x1, sp
	mov	x0, x20
	bl	_venc_try_fmt_common
	ldr	x8, [x19]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	d0, [sp, #16]
	str	d0, [x20, #48]
	ldr	q0, [x19, #32]
	str	q0, [x20, #32]
LBB0_9:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldr	x8, [x24]
	str	x8, [sp]
	str	x26, [sp, #24]
	stp	w22, w23, [sp, #16]
	mov	x1, sp
	mov	x0, x20
	bl	_venc_try_fmt_common
	ldr	d0, [sp, #16]
	str	d0, [x20, #24]
	ldr	x8, [x19]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	mov	w0, #0
	str	x21, [x20, #16]
	b	LBB0_14
LBB0_11:
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	mov	w0, #0
	str	x21, [x20, #8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,8,3 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
	.no_dead_strip	_venc_s_fmt
.subsections_via_symbols
