	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function konicawc_set_camera_size
_konicawc_set_camera_size:              ## @konicawc_set_camera_size
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	_camera_sizes@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rbx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	8(%rax,%rcx,4), %edx
	movl	$2, %esi
	movl	$8, %ecx
	callq	_konicawc_set_misc
	movq	(%r15), %rax
	movq	(%rbx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	%edi, 8(%rbx)
	movl	4(%rax,%rcx,4), %esi
	movl	%esi, 12(%rbx)
	movl	%esi, %eax
	imull	%edi, %eax
	movl	%eax, 16(%rbx)
	leal	(%rax,%rax,2), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movl	%edx, 20(%rbx)
	leal	255(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$8, %ecx
	movl	%ecx, 24(%rbx)
	callq	_VIDEOSIZE
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_camera_sizes,8,3               ## @camera_sizes
	.no_dead_strip	_konicawc_set_camera_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function konicawc_set_camera_size
_konicawc_set_camera_size:              ; @konicawc_set_camera_size
	.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, x0
Lloh0:
	adrp	x20, _camera_sizes@GOTPAGE
Lloh1:
	ldr	x20, [x20, _camera_sizes@GOTPAGEOFF]
	ldr	x21, [x0, #8]
	ldr	x8, [x20]
	ldr	x9, [x21]
	mov	w22, #12
	madd	x8, x9, x22, x8
	ldr	w2, [x8, #8]
	mov	w1, #2
	mov	w3, #8
	bl	_konicawc_set_misc
	ldr	x8, [x20]
	ldr	x9, [x21]
	madd	x8, x9, x22, x8
	ldp	w0, w1, [x8]
	stp	w0, w1, [x21, #8]
	mul	w8, w1, w0
	add	w9, w8, w8, lsl #1
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	stp	w8, w9, [x21, #16]
	add	w9, w8, #255
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #8
	str	w8, [x21, #24]
	bl	_VIDEOSIZE
	str	w0, [x19]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_camera_sizes,8,3               ; @camera_sizes
	.no_dead_strip	_konicawc_set_camera_size
.subsections_via_symbols
