	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9m111_cropcap
_mt9m111_cropcap:                       ## @mt9m111_cropcap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_MT9M111_MIN_DARK_COLS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rsi)
	movq	_MT9M111_MIN_DARK_ROWS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rsi)
	movq	_MT9M111_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rsi)
	movq	_MT9M111_MAX_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rsi)
	movl	16(%rsi), %eax
	movl	%eax, 32(%rsi)
	movl	20(%rsi), %eax
	movl	%eax, 36(%rsi)
	movl	24(%rsi), %eax
	movl	%eax, 40(%rsi)
	movl	28(%rsi), %eax
	movl	%eax, 44(%rsi)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 8(%rsi)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MT9M111_MIN_DARK_COLS,4,2      ## @MT9M111_MIN_DARK_COLS
	.comm	_MT9M111_MIN_DARK_ROWS,4,2      ## @MT9M111_MIN_DARK_ROWS
	.comm	_MT9M111_MAX_WIDTH,4,2          ## @MT9M111_MAX_WIDTH
	.comm	_MT9M111_MAX_HEIGHT,4,2         ## @MT9M111_MAX_HEIGHT
	.no_dead_strip	_mt9m111_cropcap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9m111_cropcap
_mt9m111_cropcap:                       ; @mt9m111_cropcap
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
Lloh3:
	adrp	x8, _MT9M111_MIN_DARK_COLS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT9M111_MIN_DARK_COLS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MT9M111_MIN_DARK_ROWS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MT9M111_MIN_DARK_ROWS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x1, #24]
Lloh9:
	adrp	x8, _MT9M111_MAX_WIDTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT9M111_MAX_WIDTH@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _MT9M111_MAX_HEIGHT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MT9M111_MAX_HEIGHT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x1, #16]
	ldr	q0, [x1, #16]
	str	q0, [x1, #32]
	movi.2s	v0, #1
	str	d0, [x1, #8]
	ret
LBB0_2:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MT9M111_MIN_DARK_COLS,4,2      ; @MT9M111_MIN_DARK_COLS
	.comm	_MT9M111_MIN_DARK_ROWS,4,2      ; @MT9M111_MIN_DARK_ROWS
	.comm	_MT9M111_MAX_WIDTH,4,2          ; @MT9M111_MAX_WIDTH
	.comm	_MT9M111_MAX_HEIGHT,4,2         ; @MT9M111_MAX_HEIGHT
	.no_dead_strip	_mt9m111_cropcap
.subsections_via_symbols
