	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivtv_stop_decoding
_ivtv_stop_decoding:                    ## @ivtv_stop_decoding
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	16(%rdi), %rbx
	movq	24(%rbx), %rcx
	leaq	(%rcx,%rax,8), %r14
	movl	4(%rcx,%rax,8), %esi
	leaq	L_.str(%rip), %rdi
	callq	_IVTV_DEBUG_FILE
	movq	(%r15), %rax
	movq	_IVTV_DEC_STREAM_TYPE_YUV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_IVTV_F_I_DECODING_YUV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_ivtv_yuv_close
LBB0_3:
	movq	_IVTV_F_S_STREAMING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_IVTV_DEBUG_INFO
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_ivtv_stop_v4l2_decode_stream
	movq	_OUT_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_5:
	movq	_IVTV_F_S_APPL_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	_IVTV_F_S_STREAMOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	(%rbx), %rax
	movq	_OUT_UDMA_YUV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	cmpq	$0, 8(%r15)
	je	LBB0_8
## %bb.7:
	movq	_OUT_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_8:
	movq	$0, 16(%rbx)
	movq	_IVTV_F_I_DEC_PAUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rbx
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ivtv_release_stream            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"close() of %s\n"

	.comm	_IVTV_DEC_STREAM_TYPE_YUV,8,3   ## @IVTV_DEC_STREAM_TYPE_YUV
	.comm	_IVTV_F_I_DECODING_YUV,4,2      ## @IVTV_F_I_DECODING_YUV
	.comm	_IVTV_F_S_STREAMING,4,2         ## @IVTV_F_S_STREAMING
L_.str.1:                               ## @.str.1
	.asciz	"close stopping decode\n"

	.comm	_OUT_NONE,8,3                   ## @OUT_NONE
	.comm	_IVTV_F_S_APPL_IO,4,2           ## @IVTV_F_S_APPL_IO
	.comm	_IVTV_F_S_STREAMOFF,4,2         ## @IVTV_F_S_STREAMOFF
	.comm	_OUT_UDMA_YUV,8,3               ## @OUT_UDMA_YUV
	.comm	_IVTV_F_I_DEC_PAUSED,4,2        ## @IVTV_F_I_DEC_PAUSED
	.no_dead_strip	_ivtv_stop_decoding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivtv_stop_decoding
_ivtv_stop_decoding:                    ; @ivtv_stop_decoding
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	ldr	x20, [x0, #16]
	ldr	x8, [x20, #24]
	ldr	x9, [x0]
	add	x19, x8, x9, lsl #3
	ldr	w1, [x19, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IVTV_DEBUG_FILE
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _IVTV_DEC_STREAM_TYPE_YUV@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IVTV_DEC_STREAM_TYPE_YUV@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _IVTV_F_I_DECODING_YUV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IVTV_F_I_DECODING_YUV@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_ivtv_yuv_close
LBB0_3:
Lloh8:
	adrp	x8, _IVTV_F_S_STREAMING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IVTV_F_S_STREAMING@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.4:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IVTV_DEBUG_INFO
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_ivtv_stop_v4l2_decode_stream
Lloh13:
	adrp	x8, _OUT_NONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OUT_NONE@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_5:
Lloh16:
	adrp	x8, _IVTV_F_S_APPL_IO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IVTV_F_S_APPL_IO@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_clear_bit
Lloh19:
	adrp	x8, _IVTV_F_S_STREAMOFF@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IVTV_F_S_STREAMOFF@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_clear_bit
	ldr	x8, [x20]
Lloh22:
	adrp	x9, _OUT_UDMA_YUV@GOTPAGE
Lloh23:
	ldr	x9, [x9, _OUT_UDMA_YUV@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
; %bb.7:
Lloh25:
	adrp	x8, _OUT_NONE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _OUT_NONE@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_8:
	str	xzr, [x20, #16]
Lloh28:
	adrp	x8, _IVTV_F_I_DEC_PAUSED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IVTV_F_I_DEC_PAUSED@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_clear_bit
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ivtv_release_stream
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"close() of %s\n"

	.comm	_IVTV_DEC_STREAM_TYPE_YUV,8,3   ; @IVTV_DEC_STREAM_TYPE_YUV
	.comm	_IVTV_F_I_DECODING_YUV,4,2      ; @IVTV_F_I_DECODING_YUV
	.comm	_IVTV_F_S_STREAMING,4,2         ; @IVTV_F_S_STREAMING
l_.str.1:                               ; @.str.1
	.asciz	"close stopping decode\n"

	.comm	_OUT_NONE,8,3                   ; @OUT_NONE
	.comm	_IVTV_F_S_APPL_IO,4,2           ; @IVTV_F_S_APPL_IO
	.comm	_IVTV_F_S_STREAMOFF,4,2         ; @IVTV_F_S_STREAMOFF
	.comm	_OUT_UDMA_YUV,8,3               ; @OUT_UDMA_YUV
	.comm	_IVTV_F_I_DEC_PAUSED,4,2        ; @IVTV_F_I_DEC_PAUSED
	.no_dead_strip	_ivtv_stop_decoding
.subsections_via_symbols
