	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function save_camera_state
_save_camera_state:                     ## @save_camera_state
	.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, %rbx
	movl	(%rdi), %eax
	movq	_COMMAND_SETCOLOURBALANCE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_CPIA_COMMAND_GetColourBalance@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_do_command
	movl	(%rbx), %eax
LBB0_2:
	movq	_COMMAND_SETEXPOSURE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_CPIA_COMMAND_GetExposure@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_do_command
LBB0_4:
	movl	44(%rbx), %esi
	movl	40(%rbx), %edx
	movl	36(%rbx), %ecx
	movl	32(%rbx), %r8d
	movl	28(%rbx), %r9d
	movl	24(%rbx), %r10d
	movl	16(%rbx), %r11d
	movl	20(%rbx), %r14d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	pushq	%r11
	pushq	%r14
	pushq	%r10
	callq	_DBG
	addq	$32, %rsp
	movl	12(%rbx), %esi
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DBG                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_COMMAND_SETCOLOURBALANCE,4,2   ## @COMMAND_SETCOLOURBALANCE
	.comm	_CPIA_COMMAND_GetColourBalance,4,2 ## @CPIA_COMMAND_GetColourBalance
	.comm	_COMMAND_SETEXPOSURE,4,2        ## @COMMAND_SETEXPOSURE
	.comm	_CPIA_COMMAND_GetExposure,4,2   ## @CPIA_COMMAND_GetExposure
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d/%d/%d/%d/%d/%d/%d/%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%d/%d/%d\n"

	.no_dead_strip	_save_camera_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function save_camera_state
_save_camera_state:                     ; @save_camera_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _COMMAND_SETCOLOURBALANCE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _COMMAND_SETCOLOURBALANCE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _CPIA_COMMAND_GetColourBalance@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CPIA_COMMAND_GetColourBalance@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_do_command
	ldr	w8, [x19]
LBB0_2:
Lloh6:
	adrp	x9, _COMMAND_SETEXPOSURE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _COMMAND_SETEXPOSURE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _CPIA_COMMAND_GetExposure@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CPIA_COMMAND_GetExposure@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_do_command
LBB0_4:
	ldp	w2, w1, [x19, #40]
	ldp	w8, w3, [x19, #32]
	ldp	w10, w9, [x19, #24]
	ldp	w12, w11, [x19, #16]
	stp	x11, x12, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	ldp	w2, w1, [x19, #8]
	ldr	w3, [x19, #4]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_DBG
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_COMMAND_SETCOLOURBALANCE,4,2   ; @COMMAND_SETCOLOURBALANCE
	.comm	_CPIA_COMMAND_GetColourBalance,4,2 ; @CPIA_COMMAND_GetColourBalance
	.comm	_COMMAND_SETEXPOSURE,4,2        ; @COMMAND_SETEXPOSURE
	.comm	_CPIA_COMMAND_GetExposure,4,2   ; @CPIA_COMMAND_GetExposure
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d/%d/%d/%d/%d/%d/%d/%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%d/%d/%d\n"

	.no_dead_strip	_save_camera_state
.subsections_via_symbols
