	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcm_adjust_picture
_qcm_adjust_picture:                    ## @qcm_adjust_picture
	.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
	movq	40(%rdi), %r14
	callq	_qcm_camera_off
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_15
LBB0_2:
	movq	(%rbx), %rcx
	cmpq	%rcx, (%r14)
	jne	LBB0_3
## %bb.4:
	movq	8(%r14), %rax
	movq	8(%rbx), %rsi
	cmpq	%rsi, %rax
	jne	LBB0_6
## %bb.5:
	movq	16(%r14), %rdx
	movq	%rax, %rsi
	cmpq	16(%rbx), %rdx
	jne	LBB0_6
	jmp	LBB0_8
LBB0_3:
	movq	8(%rbx), %rsi
LBB0_6:
	movq	%rcx, (%r14)
	movq	%rsi, 8(%r14)
	movq	16(%rbx), %rdx
	movq	%rdx, 16(%r14)
	movq	%rbx, %rdi
	callq	_qcm_sensor_set_gains
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_15
LBB0_8:
	movq	24(%rbx), %rsi
	cmpq	%rsi, 24(%r14)
	je	LBB0_11
## %bb.9:
	movq	%rsi, 24(%r14)
	movq	%rbx, %rdi
	callq	_qcm_sensor_set_exposure
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_15
LBB0_11:
	movq	32(%rbx), %rsi
	cmpq	%rsi, 32(%r14)
	je	LBB0_13
## %bb.12:
	movq	%rsi, 32(%r14)
	movq	%rbx, %rdi
	callq	_qcm_sensor_set_shutter
LBB0_13:
	movq	%rbx, %rdi
	callq	_qcm_camera_on
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	leaq	L_.str.4(%rip), %rdi
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_err                            ## TAILCALL
LBB0_16:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't turn camera off. abandoning pic adjustment"

L_.str.1:                               ## @.str.1
	.asciz	"can't set gains. abandoning pic adjustment"

L_.str.2:                               ## @.str.2
	.asciz	"can't set exposure. abandoning pic adjustment"

L_.str.4:                               ## @.str.4
	.asciz	"can't reenable camera. pic adjustment failed"

	.no_dead_strip	_qcm_adjust_picture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcm_adjust_picture
_qcm_adjust_picture:                    ; @qcm_adjust_picture
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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	x20, [x0, #40]
	bl	_qcm_camera_off
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_15
LBB0_2:
	ldr	x8, [x20]
	ldr	x3, [x19]
	cmp	x8, x3
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	x1, [x19, #8]
	cmp	x8, x1
	b.ne	LBB0_6
; %bb.4:
	ldr	x9, [x20, #16]
	ldr	x10, [x19, #16]
	mov	x1, x8
	cmp	x9, x10
	b.ne	LBB0_6
	b	LBB0_8
LBB0_5:
	ldr	x1, [x19, #8]
LBB0_6:
	stp	x3, x1, [x20]
	ldr	x2, [x19, #16]
	str	x2, [x20, #16]
	mov	x0, x19
	bl	_qcm_sensor_set_gains
	cbz	w0, LBB0_8
; %bb.7:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_8:
	ldr	x8, [x20, #24]
	ldr	x1, [x19, #24]
	cmp	x8, x1
	b.eq	LBB0_11
; %bb.9:
	str	x1, [x20, #24]
	mov	x0, x19
	bl	_qcm_sensor_set_exposure
	cbz	w0, LBB0_11
; %bb.10:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_11:
	ldr	x8, [x20, #32]
	ldr	x1, [x19, #32]
	cmp	x8, x1
	b.eq	LBB0_13
; %bb.12:
	str	x1, [x20, #32]
	mov	x0, x19
	bl	_qcm_sensor_set_shutter
LBB0_13:
	mov	x0, x19
	bl	_qcm_camera_on
	cbz	w0, LBB0_16
; %bb.14:
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_err
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't turn camera off. abandoning pic adjustment"

l_.str.1:                               ; @.str.1
	.asciz	"can't set gains. abandoning pic adjustment"

l_.str.2:                               ; @.str.2
	.asciz	"can't set exposure. abandoning pic adjustment"

l_.str.4:                               ; @.str.4
	.asciz	"can't reenable camera. pic adjustment failed"

	.no_dead_strip	_qcm_adjust_picture
.subsections_via_symbols
