	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx18_cropcap
_cx18_cropcap:                          ## @cx18_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	(%rdx), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	(%rsi), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rdx)
	movl	$720, 8(%rdx)                   ## imm = 0x2D0
	cmpq	$0, (%rax)
	movl	$480, %eax                      ## imm = 0x1E0
	movl	$576, %ecx                      ## imm = 0x240
	cmovel	%eax, %ecx
	movl	$10, %eax
	movl	$59, %esi
	cmovel	%eax, %esi
	movl	%ecx, 12(%rdx)
	movl	%esi, 56(%rdx)
	movl	$11, %eax
	movl	$54, %ecx
	cmovel	%eax, %ecx
	movl	%ecx, 60(%rdx)
	movq	24(%rdx), %rax
	movq	%rax, 48(%rdx)
	movl	8(%rdx), %eax
	movl	%eax, 32(%rdx)
	movl	12(%rdx), %eax
	movl	%eax, 36(%rdx)
	movq	16(%rdx), %rax
	movq	%rax, 40(%rdx)
	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
	.no_dead_strip	_cx18_cropcap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function cx18_cropcap
lCPI0_0:
	.long	59                              ; 0x3b
	.long	54                              ; 0x36
lCPI0_1:
	.long	10                              ; 0xa
	.long	11                              ; 0xb
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_cx18_cropcap:                          ; @cx18_cropcap
	.cfi_startproc
; %bb.0:
	ldr	x8, [x2]
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
	ldr	x8, [x1]
	stp	xzr, xzr, [x2, #16]
	ldr	x8, [x8]
	cmp	x8, #0
	mov	w8, #576
	mov	w9, #480
	csel	w8, w9, w8, eq
	cset	w9, eq
	dup.2s	v0, w9
	mov	w9, #720
	stp	w9, w8, [x2, #8]
	shl.2s	v0, v0, #31
	cmlt.2s	v0, v0, #0
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
Lloh5:
	adrp	x8, lCPI0_1@PAGE
Lloh6:
	ldr	d2, [x8, lCPI0_1@PAGEOFF]
	bsl.8b	v0, v2, v1
	str	d0, [x2, #56]
	str	xzr, [x2, #48]
	ldur	q0, [x2, #8]
	str	q0, [x2, #32]
	ret
LBB0_2:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cx18_cropcap
.subsections_via_symbols
