	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9m111_make_rect
_mt9m111_make_rect:                     ## @mt9m111_make_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_to_mt9m111
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_V4L2_MBUS_FMT_SBGGR8_1X8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movq	16(%rbx), %rdi
	movl	$2, %esi
	callq	_ALIGN
	movq	%rax, 16(%rbx)
	movq	(%rbx), %rdi
	movl	$2, %esi
	callq	_ALIGN
	movq	%rax, (%rbx)
LBB0_3:
	leaq	24(%rbx), %rdi
	leaq	16(%rbx), %rsi
	movq	_MT9M111_MIN_DARK_COLS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MT9M111_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$2, %ecx
	callq	_soc_camera_limit_side
	leaq	8(%rbx), %rdi
	movq	_MT9M111_MIN_DARK_ROWS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MT9M111_MAX_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rsi
	movl	$2, %ecx
	callq	_soc_camera_limit_side
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mt9m111_setup_rect             ## 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	_MT9M111_MIN_DARK_COLS,4,2      ## @MT9M111_MIN_DARK_COLS
	.comm	_MT9M111_MAX_WIDTH,4,2          ## @MT9M111_MAX_WIDTH
	.comm	_MT9M111_MIN_DARK_ROWS,4,2      ## @MT9M111_MIN_DARK_ROWS
	.comm	_MT9M111_MAX_HEIGHT,4,2         ## @MT9M111_MAX_HEIGHT
	.no_dead_strip	_mt9m111_make_rect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9m111_make_rect
_mt9m111_make_rect:                     ; @mt9m111_make_rect
	.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, x1
	mov	x20, x0
	bl	_to_mt9m111
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _V4L2_MBUS_FMT_SBGGR8_1X8@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_MBUS_FMT_SBGGR8_1X8@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x19, #16]
	mov	w1, #2
	bl	_ALIGN
	str	x0, [x19, #16]
	ldr	x0, [x19]
	mov	w1, #2
	bl	_ALIGN
	str	x0, [x19]
LBB0_2:
	add	x0, x19, #24
	add	x1, x19, #16
Lloh6:
	adrp	x8, _MT9M111_MIN_DARK_COLS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT9M111_MIN_DARK_COLS@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _MT9M111_MAX_WIDTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT9M111_MAX_WIDTH@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	w3, #2
	bl	_soc_camera_limit_side
	add	x0, x19, #8
Lloh12:
	adrp	x8, _MT9M111_MIN_DARK_ROWS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MT9M111_MIN_DARK_ROWS@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _MT9M111_MAX_HEIGHT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MT9M111_MAX_HEIGHT@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
	mov	x1, x19
	mov	w3, #2
	bl	_soc_camera_limit_side
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mt9m111_setup_rect
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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	_MT9M111_MIN_DARK_COLS,4,2      ; @MT9M111_MIN_DARK_COLS
	.comm	_MT9M111_MAX_WIDTH,4,2          ; @MT9M111_MAX_WIDTH
	.comm	_MT9M111_MIN_DARK_ROWS,4,2      ; @MT9M111_MIN_DARK_ROWS
	.comm	_MT9M111_MAX_HEIGHT,4,2         ; @MT9M111_MAX_HEIGHT
	.no_dead_strip	_mt9m111_make_rect
.subsections_via_symbols
