	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9m111_setup_rect
_mt9m111_setup_rect:                    ## @mt9m111_setup_rect
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_to_mt9m111
	movl	(%rbx), %r15d
	movl	4(%rbx), %r14d
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_V4L2_MBUS_FMT_SBGGR8_1X8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%cl
	movq	_V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setne	%r12b
	andb	%cl, %r12b
	movq	_COLUMN_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_reg_write
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testb	%r12b, %r12b
	je	LBB0_3
LBB0_6:
	testl	%eax, %eax
	jne	LBB0_16
## %bb.7:
	movq	_REDUCER_XZOOM_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MT9M111_MAX_WIDTH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_reg_write
	testl	%eax, %eax
	jne	LBB0_16
## %bb.8:
	movq	_REDUCER_YZOOM_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MT9M111_MAX_HEIGHT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_reg_write
	testl	%eax, %eax
	jne	LBB0_16
## %bb.9:
	movq	_REDUCER_XSIZE_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_reg_write
	testl	%eax, %eax
	jne	LBB0_16
## %bb.10:
	movq	_REDUCER_YSIZE_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_reg_write
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:
	movq	_REDUCER_XZOOM_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_reg_write
	testl	%eax, %eax
	jne	LBB0_16
## %bb.12:
	movq	_REDUCER_YZOOM_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_reg_write
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	movq	_REDUCER_XSIZE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_reg_write
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:
	movq	_REDUCER_YSIZE_A@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_1:
	movq	_ROW_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%rbx), %esi
	callq	_reg_write
	testb	%r12b, %r12b
	jne	LBB0_6
LBB0_3:
	testl	%eax, %eax
	jne	LBB0_16
## %bb.4:
	movq	_WINDOW_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_reg_write
	testl	%eax, %eax
	je	LBB0_5
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_WINDOW_HEIGHT@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %edi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reg_write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_MBUS_FMT_SBGGR8_1X8,8,3   ## @V4L2_MBUS_FMT_SBGGR8_1X8
	.comm	_V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE,8,3 ## @V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE
	.comm	_COLUMN_START,4,2               ## @COLUMN_START
	.comm	_ROW_START,4,2                  ## @ROW_START
	.comm	_WINDOW_WIDTH,4,2               ## @WINDOW_WIDTH
	.comm	_WINDOW_HEIGHT,4,2              ## @WINDOW_HEIGHT
	.comm	_REDUCER_XZOOM_B,4,2            ## @REDUCER_XZOOM_B
	.comm	_MT9M111_MAX_WIDTH,4,2          ## @MT9M111_MAX_WIDTH
	.comm	_REDUCER_YZOOM_B,4,2            ## @REDUCER_YZOOM_B
	.comm	_MT9M111_MAX_HEIGHT,4,2         ## @MT9M111_MAX_HEIGHT
	.comm	_REDUCER_XSIZE_B,4,2            ## @REDUCER_XSIZE_B
	.comm	_REDUCER_YSIZE_B,4,2            ## @REDUCER_YSIZE_B
	.comm	_REDUCER_XZOOM_A,4,2            ## @REDUCER_XZOOM_A
	.comm	_REDUCER_YZOOM_A,4,2            ## @REDUCER_YZOOM_A
	.comm	_REDUCER_XSIZE_A,4,2            ## @REDUCER_XSIZE_A
	.comm	_REDUCER_YSIZE_A,4,2            ## @REDUCER_YSIZE_A
	.no_dead_strip	_mt9m111_setup_rect
.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
_mt9m111_setup_rect:                    ; @mt9m111_setup_rect
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	bl	_to_mt9m111
	ldp	w20, w19, [x21]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _V4L2_MBUS_FMT_SBGGR8_1X8@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_MBUS_FMT_SBGGR8_1X8@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w22, ne
Lloh6:
	adrp	x8, _COLUMN_START@GOTPAGE
Lloh7:
	ldr	x8, [x8, _COLUMN_START@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
	bl	_reg_write
	cbz	w0, LBB0_11
; %bb.1:
	tbz	w22, #0, LBB0_12
LBB0_2:
	cbnz	w0, LBB0_14
; %bb.3:
Lloh9:
	adrp	x8, _REDUCER_XZOOM_B@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REDUCER_XZOOM_B@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x21, _MT9M111_MAX_WIDTH@GOTPAGE
Lloh13:
	ldr	x21, [x21, _MT9M111_MAX_WIDTH@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_reg_write
	cbnz	w0, LBB0_14
; %bb.4:
Lloh14:
	adrp	x8, _REDUCER_YZOOM_B@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REDUCER_YZOOM_B@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x22, _MT9M111_MAX_HEIGHT@GOTPAGE
Lloh18:
	ldr	x22, [x22, _MT9M111_MAX_HEIGHT@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_reg_write
	cbnz	w0, LBB0_14
; %bb.5:
Lloh19:
	adrp	x8, _REDUCER_XSIZE_B@GOTPAGE
Lloh20:
	ldr	x8, [x8, _REDUCER_XSIZE_B@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_reg_write
	cbnz	w0, LBB0_14
; %bb.6:
Lloh22:
	adrp	x8, _REDUCER_YSIZE_B@GOTPAGE
Lloh23:
	ldr	x8, [x8, _REDUCER_YSIZE_B@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_reg_write
	cbnz	w0, LBB0_14
; %bb.7:
Lloh25:
	adrp	x8, _REDUCER_XZOOM_A@GOTPAGE
Lloh26:
	ldr	x8, [x8, _REDUCER_XZOOM_A@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_reg_write
	cbnz	w0, LBB0_14
; %bb.8:
Lloh28:
	adrp	x8, _REDUCER_YZOOM_A@GOTPAGE
Lloh29:
	ldr	x8, [x8, _REDUCER_YZOOM_A@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_reg_write
	cbnz	w0, LBB0_14
; %bb.9:
Lloh31:
	adrp	x8, _REDUCER_XSIZE_A@GOTPAGE
Lloh32:
	ldr	x8, [x8, _REDUCER_XSIZE_A@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_reg_write
	cbnz	w0, LBB0_14
; %bb.10:
Lloh34:
	adrp	x8, _REDUCER_YSIZE_A@GOTPAGE
Lloh35:
	ldr	x8, [x8, _REDUCER_YSIZE_A@GOTPAGEOFF]
	b	LBB0_16
LBB0_11:
Lloh36:
	adrp	x8, _ROW_START@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ROW_START@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldr	w1, [x21, #12]
	bl	_reg_write
	tbnz	w22, #0, LBB0_2
LBB0_12:
	cbnz	w0, LBB0_14
; %bb.13:
Lloh39:
	adrp	x8, _WINDOW_WIDTH@GOTPAGE
Lloh40:
	ldr	x8, [x8, _WINDOW_WIDTH@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_reg_write
	cbz	w0, LBB0_15
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh42:
	adrp	x8, _WINDOW_HEIGHT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _WINDOW_HEIGHT@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_reg_write
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_MBUS_FMT_SBGGR8_1X8,8,3   ; @V4L2_MBUS_FMT_SBGGR8_1X8
	.comm	_V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE,8,3 ; @V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE
	.comm	_COLUMN_START,4,2               ; @COLUMN_START
	.comm	_ROW_START,4,2                  ; @ROW_START
	.comm	_WINDOW_WIDTH,4,2               ; @WINDOW_WIDTH
	.comm	_WINDOW_HEIGHT,4,2              ; @WINDOW_HEIGHT
	.comm	_REDUCER_XZOOM_B,4,2            ; @REDUCER_XZOOM_B
	.comm	_MT9M111_MAX_WIDTH,4,2          ; @MT9M111_MAX_WIDTH
	.comm	_REDUCER_YZOOM_B,4,2            ; @REDUCER_YZOOM_B
	.comm	_MT9M111_MAX_HEIGHT,4,2         ; @MT9M111_MAX_HEIGHT
	.comm	_REDUCER_XSIZE_B,4,2            ; @REDUCER_XSIZE_B
	.comm	_REDUCER_YSIZE_B,4,2            ; @REDUCER_YSIZE_B
	.comm	_REDUCER_XZOOM_A,4,2            ; @REDUCER_XZOOM_A
	.comm	_REDUCER_YZOOM_A,4,2            ; @REDUCER_YZOOM_A
	.comm	_REDUCER_XSIZE_A,4,2            ; @REDUCER_XSIZE_A
	.comm	_REDUCER_YSIZE_A,4,2            ; @REDUCER_YSIZE_A
	.no_dead_strip	_mt9m111_setup_rect
.subsections_via_symbols
