	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivtv_s_crop
_ivtv_s_crop:                           ## @ivtv_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdx), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	8(%rsi), %r14
	movq	_V4L2_CAP_VIDEO_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_6
## %bb.2:
	movq	%rdx, %rbx
	movl	(%rsi), %eax
	movq	_IVTV_DEC_STREAM_TYPE_YUV@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movups	8(%rbx), %xmm0
	movups	%xmm0, 20(%r14)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_4:
	movq	_CX2341X_OSD_SET_FRAMEBUFFER_WINDOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%rbx), %ecx
	movl	16(%rbx), %r8d
	movl	8(%rbx), %eax
	movl	12(%rbx), %r9d
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_ivtv_vapi
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	addq	$8, %rbx
	movups	(%rbx), %xmm0
	movups	%xmm0, 4(%r14)
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,8,3 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.comm	_V4L2_CAP_VIDEO_OUTPUT,4,2      ## @V4L2_CAP_VIDEO_OUTPUT
	.comm	_IVTV_DEC_STREAM_TYPE_YUV,4,2   ## @IVTV_DEC_STREAM_TYPE_YUV
	.comm	_CX2341X_OSD_SET_FRAMEBUFFER_WINDOW,4,2 ## @CX2341X_OSD_SET_FRAMEBUFFER_WINDOW
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ivtv_s_crop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivtv_s_crop
_ivtv_s_crop:                           ; @ivtv_s_crop
	.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
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	x20, [x1, #8]
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _V4L2_CAP_VIDEO_OUTPUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_CAP_VIDEO_OUTPUT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	mov	x19, x2
	ldr	w8, [x1]
Lloh6:
	adrp	x9, _IVTV_DEC_STREAM_TYPE_YUV@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IVTV_DEC_STREAM_TYPE_YUV@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	ldur	q0, [x19, #8]
	stur	q0, [x20, #20]
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _CX2341X_OSD_SET_FRAMEBUFFER_WINDOW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CX2341X_OSD_SET_FRAMEBUFFER_WINDOW@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w6, [x19, #8]!
	ldp	w4, w3, [x19, #8]
	ldr	w5, [x19, #4]
	mov	x0, x20
	mov	w2, #4
	bl	_ivtv_vapi
	cbz	w0, LBB0_7
LBB0_5:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	q0, [x19]
	stur	q0, [x20, #4]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,8,3 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.comm	_V4L2_CAP_VIDEO_OUTPUT,4,2      ; @V4L2_CAP_VIDEO_OUTPUT
	.comm	_IVTV_DEC_STREAM_TYPE_YUV,4,2   ; @IVTV_DEC_STREAM_TYPE_YUV
	.comm	_CX2341X_OSD_SET_FRAMEBUFFER_WINDOW,4,2 ; @CX2341X_OSD_SET_FRAMEBUFFER_WINDOW
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ivtv_s_crop
.subsections_via_symbols
