	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpia2_s_parm
_cpia2_s_parm:                          ## @cpia2_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	%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	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_video_drvdata
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r13), %r14d
	movl	4(%r13), %r15d
	movq	_framerate_controls@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_cpia2_g_parm
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.2:
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %r9d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	8(%rdi), %rcx
	movq	_DEVICE_STV_672@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.4:
	movq	(%rdi), %rcx
	movq	_CPIA2_VP_SENSOR_FLAGS_500@GOTPCREL(%rip), %rdx
	addl	$-3, %eax
	cmpq	(%rdx), %rcx
	cmovel	%eax, %r9d
LBB0_5:
	movq	_framerate_controls@GOTPCREL(%rip), %r10
	movq	(%r10), %r8
	testl	%r9d, %r9d
	js	LBB0_6
## %bb.7:
	leal	1(%r9), %edx
	leaq	8(%r8), %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %ebx
	imull	%r14d, %ebx
	movl	-4(%rax), %ecx
	imull	%r15d, %ecx
	cmpl	%ecx, %ebx
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rsi
	addq	$12, %rax
	cmpq	%rsi, %rdx
	jne	LBB0_8
	jmp	LBB0_11
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_10:
	movl	%esi, %edx
LBB0_11:
	cmpl	%r9d, %edx
	cmovll	%edx, %r9d
	movslq	%r9d, %rax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %rax
	movq	4(%r8,%rax), %rcx
	movq	%rcx, (%r13)
	movq	(%r10), %rcx
	movl	(%rcx,%rax), %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cpia2_set_fps                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_framerate_controls,8,3         ## @framerate_controls
	.comm	_DEVICE_STV_672,8,3             ## @DEVICE_STV_672
	.comm	_CPIA2_VP_SENSOR_FLAGS_500,8,3  ## @CPIA2_VP_SENSOR_FLAGS_500
	.no_dead_strip	_cpia2_s_parm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpia2_s_parm
_cpia2_s_parm:                          ; @cpia2_s_parm
	.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	x19, x2
	mov	x22, x1
	mov	x23, x0
	bl	_video_drvdata
	mov	x20, x0
	ldp	w25, w26, [x19]
Lloh0:
	adrp	x24, _framerate_controls@GOTPAGE
Lloh1:
	ldr	x24, [x24, _framerate_controls@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	mov	x21, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	bl	_cpia2_g_parm
	cbnz	w0, LBB0_9
; %bb.1:
	cbz	w26, LBB0_9
; %bb.2:
	cbz	w25, LBB0_9
; %bb.3:
	sub	w8, w21, #1
	ldr	x9, [x20, #8]
Lloh2:
	adrp	x10, _DEVICE_STV_672@GOTPAGE
Lloh3:
	ldr	x10, [x10, _DEVICE_STV_672@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.4:
	ldr	x9, [x20]
Lloh5:
	adrp	x10, _CPIA2_VP_SENSOR_FLAGS_500@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CPIA2_VP_SENSOR_FLAGS_500@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	sub	w11, w21, #3
	cmp	x9, x10
	csel	w8, w11, w8, eq
LBB0_5:
	ldr	x9, [x24]
	tbnz	w8, #31, LBB0_10
; %bb.6:
	mov	x11, #0
	add	w10, w8, #1
	add	x12, x9, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w13, w14, [x12, #-4]
	mul	w14, w14, w25
	mul	w13, w13, w26
	cmp	w14, w13
	b.ge	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x11, x11, #1
	add	x12, x12, #12
	cmp	x10, x11
	b.ne	LBB0_7
	b	LBB0_12
LBB0_9:
	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
LBB0_10:
	mov	w10, #0
	b	LBB0_12
LBB0_11:
	mov	x10, x11
LBB0_12:
	cmp	w10, w8
	csel	w8, w10, w8, lt
	mov	w10, #12
	smull	x11, w8, w10
	smaddl	x8, w8, w10, x9
	ldur	x8, [x8, #4]
	str	x8, [x19]
	ldr	x8, [x24]
	ldr	w1, [x8, x11]
	mov	x0, x20
	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
	b	_cpia2_set_fps
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_framerate_controls,8,3         ; @framerate_controls
	.comm	_DEVICE_STV_672,8,3             ; @DEVICE_STV_672
	.comm	_CPIA2_VP_SENSOR_FLAGS_500,8,3  ; @CPIA2_VP_SENSOR_FLAGS_500
	.no_dead_strip	_cpia2_s_parm
.subsections_via_symbols
