	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_venc_g_fmt
_vidioc_venc_g_fmt:                     ## @vidioc_venc_g_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rdi
	callq	_fh_to_ctx
	movq	%rax, %r14
	movl	16(%rax), %edi
	movl	(%r15), %esi
	callq	_v4l2_m2m_get_vq
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mtk_venc_get_q_data
	movq	%rax, %r12
	movl	32(%rax), %eax
	movl	%eax, 60(%r15)
	movl	28(%r12), %eax
	movl	%eax, 56(%r15)
	movq	16(%r12), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 52(%r15)
	movl	24(%r12), %ecx
	movl	%ecx, 48(%r15)
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	movl	$12, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %eax
	movq	40(%r15), %rcx
	movl	%eax, (%rcx,%r13)
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %eax
	movl	%eax, -4(%rcx,%r13)
	movq	-12(%rcx,%r13), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	incq	%rbx
	movslq	8(%r15), %rax
	addq	$16, %r13
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movq	$0, 32(%r15)
	movups	(%r14), %xmm0
	movups	%xmm0, 12(%r15)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vidioc_venc_g_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_venc_g_fmt
_vidioc_venc_g_fmt:                     ; @vidioc_venc_g_fmt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x0, x1
	bl	_fh_to_ctx
	mov	x20, x0
	ldr	w0, [x0, #16]
	ldr	w1, [x19]
	bl	_v4l2_m2m_get_vq
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_mtk_venc_get_q_data
	ldur	d0, [x0, #28]
	str	d0, [x19, #56]
	ldr	x8, [x0, #16]
	ldr	w9, [x0, #24]
	ldp	w8, w10, [x8]
	stp	w9, w10, [x19, #48]
	str	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, x0
	mov	x22, #0
	mov	x23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x8, x23, #2
	ldp	x10, x9, [x21]
	ldr	w9, [x9, x8]
	ldr	x11, [x19, #40]
	add	x11, x11, x22
	str	w9, [x11, #12]
	ldr	w8, [x10, x8]
	str	w8, [x11, #8]
	ldr	x0, [x11]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	add	x23, x23, #1
	ldrsw	x8, [x19, #8]
	add	x22, x22, #16
	cmp	x23, x8
	b.lt	LBB0_3
LBB0_4:
	mov	w0, #0
	str	xzr, [x19, #32]
	ldr	q0, [x20]
	stur	q0, [x19, #12]
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vidioc_venc_g_fmt
.subsections_via_symbols
