	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function konicawc_setup_on_open
_konicawc_setup_on_open:                ## @konicawc_setup_on_open
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movl	(%rbx), %edx
	leal	(%rdx,%rdx,4), %eax
	leal	(%rdx,%rax,2), %ecx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_DEBUG
	movl	(%rbx), %esi
	movq	_SetBrightness@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_konicawc_set_value
	movl	4(%rbx), %edx
	leal	(%rdx,%rdx,4), %eax
	leal	(%rdx,%rax,2), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_DEBUG
	movl	4(%rbx), %esi
	movq	_SetWhitebal@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_konicawc_set_value
	movl	8(%rbx), %edx
	leal	(%rdx,%rdx,4), %eax
	leal	(%rdx,%rax,2), %ecx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_DEBUG
	movl	8(%rbx), %esi
	movq	_SetContrast@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_konicawc_set_value
	movl	12(%rbx), %edx
	leal	(%rdx,%rdx,4), %eax
	leal	(%rdx,%rax,2), %ecx
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_DEBUG
	movl	12(%rbx), %esi
	movq	_SetSaturation@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_konicawc_set_value
	movl	16(%rbx), %edx
	leal	(%rdx,%rdx,4), %eax
	leal	(%rdx,%rax,2), %ecx
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_DEBUG
	movl	16(%rbx), %esi
	movq	_SetSharpness@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_konicawc_set_value
	movq	%r14, %rdi
	callq	_konicawc_set_camera_size
	movl	$-2, 20(%rbx)
	movq	$0, 24(%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting brightness to %d (%d)"

	.comm	_SetBrightness,4,2              ## @SetBrightness
L_.str.1:                               ## @.str.1
	.asciz	"setting white balance to %d (%d)"

	.comm	_SetWhitebal,4,2                ## @SetWhitebal
L_.str.2:                               ## @.str.2
	.asciz	"setting contrast to %d (%d)"

	.comm	_SetContrast,4,2                ## @SetContrast
L_.str.3:                               ## @.str.3
	.asciz	"setting saturation to %d (%d)"

	.comm	_SetSaturation,4,2              ## @SetSaturation
L_.str.4:                               ## @.str.4
	.asciz	"setting sharpness to %d (%d)"

	.comm	_SetSharpness,4,2               ## @SetSharpness
	.no_dead_strip	_konicawc_setup_on_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function konicawc_setup_on_open
_konicawc_setup_on_open:                ; @konicawc_setup_on_open
	.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
	ldr	x20, [x0]
	ldr	w2, [x20]
	mov	w21, #11
	mul	w3, w2, w21
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_DEBUG
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _SetBrightness@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SetBrightness@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_konicawc_set_value
	ldr	w2, [x20, #4]
	mul	w3, w2, w21
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_DEBUG
	ldr	w1, [x20, #4]
Lloh7:
	adrp	x8, _SetWhitebal@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SetWhitebal@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_konicawc_set_value
	ldr	w2, [x20, #8]
	mul	w3, w2, w21
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_DEBUG
	ldr	w1, [x20, #8]
Lloh12:
	adrp	x8, _SetContrast@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SetContrast@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_konicawc_set_value
	ldr	w2, [x20, #12]
	mul	w3, w2, w21
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_DEBUG
	ldr	w1, [x20, #12]
Lloh17:
	adrp	x8, _SetSaturation@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SetSaturation@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_konicawc_set_value
	ldr	w2, [x20, #16]
	mul	w3, w2, w21
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_DEBUG
	ldr	w1, [x20, #16]
Lloh22:
	adrp	x8, _SetSharpness@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SetSharpness@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_konicawc_set_value
	mov	x0, x19
	bl	_konicawc_set_camera_size
	mov	w8, #-2
	str	w8, [x20, #20]
	str	xzr, [x20, #24]
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting brightness to %d (%d)"

	.comm	_SetBrightness,4,2              ; @SetBrightness
l_.str.1:                               ; @.str.1
	.asciz	"setting white balance to %d (%d)"

	.comm	_SetWhitebal,4,2                ; @SetWhitebal
l_.str.2:                               ; @.str.2
	.asciz	"setting contrast to %d (%d)"

	.comm	_SetContrast,4,2                ; @SetContrast
l_.str.3:                               ; @.str.3
	.asciz	"setting saturation to %d (%d)"

	.comm	_SetSaturation,4,2              ; @SetSaturation
l_.str.4:                               ; @.str.4
	.asciz	"setting sharpness to %d (%d)"

	.comm	_SetSharpness,4,2               ; @SetSharpness
	.no_dead_strip	_konicawc_setup_on_open
.subsections_via_symbols
