	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rvin_capture_start
_rvin_capture_start:                    ## @rvin_capture_start
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_HW_BUFFER_NUM@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_rvin_fill_hw_slot
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	callq	_rvin_crop_scale_comp
	movq	%r15, %rdi
	callq	_rvin_setup
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_vin_dbg
	movq	_VNFC_C_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VNFC_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_rvin_write
	movq	_STARTING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_BUFFER_NUM,4,2              ## @HW_BUFFER_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Starting to capture\n"

	.comm	_VNFC_C_FRAME,4,2               ## @VNFC_C_FRAME
	.comm	_VNFC_REG,4,2                   ## @VNFC_REG
	.comm	_STARTING,4,2                   ## @STARTING
	.no_dead_strip	_rvin_capture_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rvin_capture_start
_rvin_capture_start:                    ; @rvin_capture_start
	.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	x19, x0
Lloh0:
	adrp	x21, _HW_BUFFER_NUM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HW_BUFFER_NUM@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_rvin_fill_hw_slot
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_rvin_crop_scale_comp
	mov	x0, x19
	bl	_rvin_setup
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_vin_dbg
Lloh4:
	adrp	x8, _VNFC_C_FRAME@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VNFC_C_FRAME@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _VNFC_REG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VNFC_REG@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rvin_write
Lloh10:
	adrp	x8, _STARTING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STARTING@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_5:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_BUFFER_NUM,4,2              ; @HW_BUFFER_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Starting to capture\n"

	.comm	_VNFC_C_FRAME,4,2               ; @VNFC_C_FRAME
	.comm	_VNFC_REG,4,2                   ; @VNFC_REG
	.comm	_STARTING,4,2                   ; @STARTING
	.no_dead_strip	_rvin_capture_start
.subsections_via_symbols
