	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function venc_s_parm
_venc_s_parm:                           ## @venc_s_parm
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	callq	_to_inst
	movq	%rax, %r14
	movq	(%r15), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_3:
	movl	12(%r15), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	16(%r15), %esi
	testl	%esi, %esi
	jne	LBB0_5
## %bb.4:
	movl	4(%r14), %esi
	movl	%esi, 16(%r15)
LBB0_5:
	movl	20(%r15), %ebx
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.6:
	movl	8(%r14), %ebx
	movl	%ebx, 20(%r15)
LBB0_7:
	movq	_V4L2_CAP_TIMEPERFRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_USEC_PER_SEC@GOTPCREL(%rip), %r12
	imull	(%r12), %ebx
	movl	%ebx, %edi
	callq	_do_div
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.8:
	movl	(%r12), %r12d
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_do_div
	movq	16(%r15), %rax
	movq	%rax, 4(%r14)
	movl	%r12d, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,8,3 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_CAP_TIMEPERFRAME,4,2      ## @V4L2_CAP_TIMEPERFRAME
	.comm	_USEC_PER_SEC,8,3               ## @USEC_PER_SEC
	.no_dead_strip	_venc_s_parm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function venc_s_parm
_venc_s_parm:                           ; @venc_s_parm
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	bl	_to_inst
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #12]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w1, [x19, #16]
	cbz	w1, LBB0_7
; %bb.2:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_8
LBB0_3:
Lloh6:
	adrp	x9, _V4L2_CAP_TIMEPERFRAME@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_CAP_TIMEPERFRAME@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x19, #8]
Lloh9:
	adrp	x22, _USEC_PER_SEC@GOTPAGE
Lloh10:
	ldr	x22, [x22, _USEC_PER_SEC@GOTPAGEOFF]
	ldr	w9, [x22]
	mul	w21, w8, w9
	mov	x0, x21
	bl	_do_div
	cbz	w21, LBB0_5
; %bb.4:
	ldr	w22, [x22]
	mov	x0, x22
	mov	x1, x21
	bl	_do_div
	mov	w0, #0
	ldr	x8, [x19, #16]
	stur	x8, [x20, #4]
	str	w22, [x20]
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w1, [x20, #4]
	str	w1, [x19, #16]
	ldr	w8, [x19, #20]
	cbnz	w8, LBB0_3
LBB0_8:
	ldr	w8, [x20, #8]
	str	w8, [x19, #20]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,8,3 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_CAP_TIMEPERFRAME,4,2      ; @V4L2_CAP_TIMEPERFRAME
	.comm	_USEC_PER_SEC,8,3               ; @USEC_PER_SEC
	.no_dead_strip	_venc_s_parm
.subsections_via_symbols
