	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9m111_set_context
_mt9m111_set_context:                   ## @mt9m111_set_context
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movq	_MT9M111_CTXT_CTRL_RESTART@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_HIGHPOWER@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_MT9M111_CTXT_CTRL_DEFECTCOR_B@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_MT9M111_CTXT_CTRL_RESIZE_B@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_MT9M111_CTXT_CTRL_CTRL2_B@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_MT9M111_CTXT_CTRL_GAMMA_B@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_MT9M111_CTXT_CTRL_READ_MODE_B@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_MT9M111_CTXT_CTRL_VBLANK_SEL_B@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_MT9M111_CTXT_CTRL_HBLANK_SEL_B@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
LBB0_2:
	movq	_CONTEXT_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_reg_write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT9M111_CTXT_CTRL_RESTART,4,2  ## @MT9M111_CTXT_CTRL_RESTART
	.comm	_MT9M111_CTXT_CTRL_DEFECTCOR_B,4,2 ## @MT9M111_CTXT_CTRL_DEFECTCOR_B
	.comm	_MT9M111_CTXT_CTRL_RESIZE_B,4,2 ## @MT9M111_CTXT_CTRL_RESIZE_B
	.comm	_MT9M111_CTXT_CTRL_CTRL2_B,4,2  ## @MT9M111_CTXT_CTRL_CTRL2_B
	.comm	_MT9M111_CTXT_CTRL_GAMMA_B,4,2  ## @MT9M111_CTXT_CTRL_GAMMA_B
	.comm	_MT9M111_CTXT_CTRL_READ_MODE_B,4,2 ## @MT9M111_CTXT_CTRL_READ_MODE_B
	.comm	_MT9M111_CTXT_CTRL_VBLANK_SEL_B,4,2 ## @MT9M111_CTXT_CTRL_VBLANK_SEL_B
	.comm	_MT9M111_CTXT_CTRL_HBLANK_SEL_B,4,2 ## @MT9M111_CTXT_CTRL_HBLANK_SEL_B
	.comm	_HIGHPOWER,4,2                  ## @HIGHPOWER
	.comm	_CONTEXT_CONTROL,4,2            ## @CONTEXT_CONTROL
	.no_dead_strip	_mt9m111_set_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9m111_set_context
_mt9m111_set_context:                   ; @mt9m111_set_context
	.cfi_startproc
; %bb.0:
	mov	x8, x1
Lloh0:
	adrp	x9, _MT9M111_CTXT_CTRL_RESTART@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MT9M111_CTXT_CTRL_RESTART@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x9, _HIGHPOWER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HIGHPOWER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MT9M111_CTXT_CTRL_DEFECTCOR_B@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT9M111_CTXT_CTRL_DEFECTCOR_B@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w8, w8, w1
Lloh9:
	adrp	x9, _MT9M111_CTXT_CTRL_RESIZE_B@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MT9M111_CTXT_CTRL_RESIZE_B@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _MT9M111_CTXT_CTRL_CTRL2_B@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MT9M111_CTXT_CTRL_CTRL2_B@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _MT9M111_CTXT_CTRL_GAMMA_B@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MT9M111_CTXT_CTRL_GAMMA_B@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _MT9M111_CTXT_CTRL_READ_MODE_B@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MT9M111_CTXT_CTRL_READ_MODE_B@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _MT9M111_CTXT_CTRL_VBLANK_SEL_B@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MT9M111_CTXT_CTRL_VBLANK_SEL_B@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _MT9M111_CTXT_CTRL_HBLANK_SEL_B@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MT9M111_CTXT_CTRL_HBLANK_SEL_B@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w1, w8, w9
LBB0_2:
Lloh27:
	adrp	x8, _CONTEXT_CONTROL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CONTEXT_CONTROL@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	b	_reg_write
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MT9M111_CTXT_CTRL_RESTART,4,2  ; @MT9M111_CTXT_CTRL_RESTART
	.comm	_MT9M111_CTXT_CTRL_DEFECTCOR_B,4,2 ; @MT9M111_CTXT_CTRL_DEFECTCOR_B
	.comm	_MT9M111_CTXT_CTRL_RESIZE_B,4,2 ; @MT9M111_CTXT_CTRL_RESIZE_B
	.comm	_MT9M111_CTXT_CTRL_CTRL2_B,4,2  ; @MT9M111_CTXT_CTRL_CTRL2_B
	.comm	_MT9M111_CTXT_CTRL_GAMMA_B,4,2  ; @MT9M111_CTXT_CTRL_GAMMA_B
	.comm	_MT9M111_CTXT_CTRL_READ_MODE_B,4,2 ; @MT9M111_CTXT_CTRL_READ_MODE_B
	.comm	_MT9M111_CTXT_CTRL_VBLANK_SEL_B,4,2 ; @MT9M111_CTXT_CTRL_VBLANK_SEL_B
	.comm	_MT9M111_CTXT_CTRL_HBLANK_SEL_B,4,2 ; @MT9M111_CTXT_CTRL_HBLANK_SEL_B
	.comm	_HIGHPOWER,4,2                  ; @HIGHPOWER
	.comm	_CONTEXT_CONTROL,4,2            ; @CONTEXT_CONTROL
	.no_dead_strip	_mt9m111_set_context
.subsections_via_symbols
