	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9m111_setup_rect_ctx
_mt9m111_setup_rect_ctx:                ## @mt9m111_setup_rect_ctx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rsi, %r15
	callq	_v4l2_get_subdevdata
	movq	%rax, %r13
	movl	12(%r15), %esi
	movl	(%rbx), %edx
	movq	%rax, %rdi
	callq	_mt9m111_reg_write
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movl	8(%r15), %esi
	movl	4(%rbx), %edx
	movq	%r13, %rdi
	callq	_mt9m111_reg_write
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	4(%r15), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_mt9m111_reg_write
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt9m111_reg_write              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mt9m111_setup_rect_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9m111_setup_rect_ctx
_mt9m111_setup_rect_ctx:                ; @mt9m111_setup_rect_ctx
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	bl	_v4l2_get_subdevdata
	mov	x21, x0
	ldr	w1, [x20, #12]
	ldr	w2, [x23]
	bl	_mt9m111_reg_write
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	w1, [x20, #8]
	ldr	w2, [x23, #4]
	mov	x0, x21
	bl	_mt9m111_reg_write
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w1, [x20, #4]
	mov	x0, x21
	mov	x2, x22
	bl	_mt9m111_reg_write
	cbz	w0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w1, [x20]
	mov	x0, x21
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mt9m111_reg_write
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mt9m111_setup_rect_ctx
.subsections_via_symbols
