	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function soc_camera_s_crop
_soc_camera_s_crop:                     ## @soc_camera_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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	(%rdi), %r14
	movl	(%r14), %edi
	callq	_to_soc_camera_host
	movq	%rax, %r15
	movq	(%r12), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	8(%r12), %rdx
	movq	16(%r12), %rcx
	movl	28(%r12), %r8d
	movl	24(%r12), %r9d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	(%r15), %rax
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.6:
	movq	8(%r12), %rax
	cmpq	-56(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movq	16(%r12), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
LBB0_9:
	movq	(%r15), %rax
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	*8(%rax)
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"S_CROP(%ux%u@%u:%u)\n"

L_.str.1:                               ## @.str.1
	.asciz	"S_CROP denied: getting current crop failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"S_CROP denied: queue initialised and sizes differ\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_soc_camera_s_crop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function soc_camera_s_crop
_soc_camera_s_crop:                     ; @soc_camera_s_crop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x19, [x0]
	ldr	w0, [x19]
	bl	_to_soc_camera_host
	ldr	x8, [x20]
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_6
; %bb.1:
	mov	x21, x0
	ldp	x2, x3, [x20, #8]
	ldp	w5, w4, [x20, #24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	x1, sp
	mov	x0, x19
	blr	x8
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
	ldr	x8, [x20, #16]
	ldr	x9, [sp, #16]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_5:
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	x22, x0
	b	LBB0_10
LBB0_6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	x22, x0
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_10
LBB0_8:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"S_CROP(%ux%u@%u:%u)\n"

l_.str.1:                               ; @.str.1
	.asciz	"S_CROP denied: getting current crop failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"S_CROP denied: queue initialised and sizes differ\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_soc_camera_s_crop
.subsections_via_symbols
