	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpfe_s_crop
_vpfe_s_crop:                           ## @vpfe_s_crop
	.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	%rdx, %r14
	callq	_video_drvdata
	movq	%rax, %r15
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	64(%r15), %r12
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r12, %rdx
	callq	_v4l2_dbg
	cmpq	$0, 88(%r15)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_v4l2_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_2:
	movq	%r15, %rdi
	callq	_mutex_lock_interruptible
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	movq	(%r14), %rax
	testq	%rax, %rax
	js	LBB0_5
## %bb.4:
	movq	8(%r14), %rcx
	testq	%rcx, %rcx
	js	LBB0_5
## %bb.7:
	movslq	16(%r14), %rdx
	addq	$15, %rdx
	andq	$-16, %rdx
	movl	%edx, 16(%r14)
	addq	%rdx, %rcx
	cmpq	72(%r15), %rcx
	jg	LBB0_9
## %bb.8:
	addq	24(%r14), %rax
	cmpq	80(%r15), %rax
	jle	LBB0_10
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	movq	%r12, %rdi
	callq	_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_ccdc_dev@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%r14, %rdi
	callq	*8(%rax)
	movslq	16(%r14), %rax
	movq	%rax, 40(%r15)
	movq	24(%r14), %rax
	movq	%rax, 48(%r15)
	movq	(%rbx), %rcx
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	*(%rcx)
	movl	%eax, 56(%r15)
	imull	48(%r15), %eax
	movl	%eax, 60(%r15)
	movups	(%r14), %xmm0
	movups	16(%r14), %xmm1
	movups	%xmm0, 8(%r15)
	movups	%xmm1, 24(%r15)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpfe_s_crop\n"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot change crop when streaming is ON\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.2:                               ## @.str.2
	.asciz	"doesn't support negative values for top & left\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"Error in S_CROP params\n"

	.comm	_ccdc_dev,8,3                   ## @ccdc_dev
	.no_dead_strip	_vpfe_s_crop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpfe_s_crop
_vpfe_s_crop:                           ; @vpfe_s_crop
	.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	x20, x2
	bl	_video_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x21, x0, #64
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_v4l2_dbg
	ldr	x8, [x19, #88]
	cbz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_v4l2_err
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_11
LBB0_2:
	mov	x0, x19
	bl	_mutex_lock_interruptible
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.3:
	ldr	x8, [x20]
	tbnz	x8, #63, LBB0_8
; %bb.4:
	ldr	x9, [x20, #8]
	tbnz	x9, #63, LBB0_8
; %bb.5:
	ldrsw	x10, [x20, #16]
	add	x10, x10, #15
	and	x10, x10, #0xfffffffffffffff0
	str	w10, [x20, #16]
	ldr	x11, [x19, #72]
	add	x9, x9, x10
	cmp	x9, x11
	b.gt	LBB0_7
; %bb.6:
	ldr	x9, [x20, #24]
	ldr	x10, [x19, #80]
	add	x8, x9, x8
	cmp	x8, x10
	b.le	LBB0_12
LBB0_7:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x21
	bl	_v4l2_err
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_11:
	mov	x0, x22
	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_12:
Lloh17:
	adrp	x21, _ccdc_dev@GOTPAGE
Lloh18:
	ldr	x21, [x21, _ccdc_dev@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
	ldrsw	x8, [x20, #16]
	ldr	x9, [x20, #24]
	stp	x8, x9, [x19, #40]
	ldr	x8, [x21]
	ldr	x8, [x8]
	blr	x8
	mov	w22, #0
	ldr	w8, [x19, #48]
	mul	w8, w0, w8
	stp	w0, w8, [x19, #56]
	ldp	q1, q0, [x20]
	stur	q1, [x19, #8]
	stur	q0, [x19, #24]
	b	LBB0_10
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpfe_s_crop\n"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot change crop when streaming is ON\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.2:                               ; @.str.2
	.asciz	"doesn't support negative values for top & left\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"Error in S_CROP params\n"

	.comm	_ccdc_dev,8,3                   ; @ccdc_dev
	.no_dead_strip	_vpfe_s_crop
.subsections_via_symbols
