	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9m111_restore_state
_mt9m111_restore_state:                 ## @mt9m111_restore_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
	callq	_to_mt9m111
	movq	%rax, %r14
	movl	32(%rax), %esi
	movq	%rbx, %rdi
	callq	_mt9m111_set_context
	movq	24(%r14), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mt9m111_set_pixfmt
	leaq	20(%r14), %rsi
	movq	%rbx, %rdi
	callq	_mt9m111_setup_rect
	movl	16(%r14), %esi
	movq	_MT9M111_RMB_MIRROR_COLS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mt9m111_set_flip
	movl	12(%r14), %esi
	movq	_MT9M111_RMB_MIRROR_ROWS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mt9m111_set_flip
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	callq	_mt9m111_set_global_gain
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_mt9m111_set_autoexposure
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_mt9m111_set_autowhitebalance
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT9M111_RMB_MIRROR_COLS,4,2    ## @MT9M111_RMB_MIRROR_COLS
	.comm	_MT9M111_RMB_MIRROR_ROWS,4,2    ## @MT9M111_RMB_MIRROR_ROWS
	.no_dead_strip	_mt9m111_restore_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9m111_restore_state
_mt9m111_restore_state:                 ; @mt9m111_restore_state
	.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
	bl	_to_mt9m111
	mov	x20, x0
	ldr	w1, [x0, #32]
	mov	x0, x19
	bl	_mt9m111_set_context
	ldr	x8, [x20, #24]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mt9m111_set_pixfmt
	add	x1, x20, #20
	mov	x0, x19
	bl	_mt9m111_setup_rect
	ldr	w1, [x20, #16]
Lloh0:
	adrp	x8, _MT9M111_RMB_MIRROR_COLS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT9M111_RMB_MIRROR_COLS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mt9m111_set_flip
	ldr	w1, [x20, #12]
Lloh3:
	adrp	x8, _MT9M111_RMB_MIRROR_ROWS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT9M111_RMB_MIRROR_ROWS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mt9m111_set_flip
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_mt9m111_set_global_gain
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_mt9m111_set_autoexposure
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mt9m111_set_autowhitebalance
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT9M111_RMB_MIRROR_COLS,4,2    ; @MT9M111_RMB_MIRROR_COLS
	.comm	_MT9M111_RMB_MIRROR_ROWS,4,2    ; @MT9M111_RMB_MIRROR_ROWS
	.no_dead_strip	_mt9m111_restore_state
.subsections_via_symbols
