	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffmmal_stop_decoder
_ffmmal_stop_decoder:                   ## @ffmmal_stop_decoder
	.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	(%rdi), %r15
	movq	72(%r15), %rbx
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_mmal_port_disable
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_mmal_port_disable
	movl	(%rbx), %edi
	callq	_mmal_port_disable
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_mmal_port_flush
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_mmal_port_flush
	movl	(%rbx), %edi
	callq	_mmal_port_flush
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	64(%r15), %edi
	callq	_mmal_queue_get
	testq	%rax, %rax
	je	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rdi
	callq	_mmal_buffer_header_release
	jmp	LBB0_1
LBB0_2:
	movq	56(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.3:
	leaq	40(%r15), %r14
	movq	_MMAL_BUFFER_HEADER_FLAG_FRAME_END@GOTPCREL(%rip), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	4(%rbx), %rdi
	callq	_av_buffer_unref
	movq	%rbx, %rdi
	callq	_av_free
	movq	56(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	%rax, 56(%r15)
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_atomic_fetch_add
	jmp	LBB0_6
LBB0_7:
	movq	$0, 48(%r15)
	leaq	40(%r15), %rdi
	callq	_atomic_load
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_av_assert0
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movups	%xmm0, 16(%r15)
	movq	$0, 32(%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_BUFFER_HEADER_FLAG_FRAME_END,4,2 ## @MMAL_BUFFER_HEADER_FLAG_FRAME_END
	.no_dead_strip	_ffmmal_stop_decoder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffmmal_stop_decoder
_ffmmal_stop_decoder:                   ; @ffmmal_stop_decoder
	.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
	ldr	x21, [x0]
	ldr	x19, [x21, #72]
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_mmal_port_disable
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_mmal_port_disable
	ldr	w0, [x19]
	bl	_mmal_port_disable
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_mmal_port_flush
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_mmal_port_flush
	ldr	w0, [x19]
	bl	_mmal_port_flush
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #64]
	bl	_mmal_queue_get
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_mmal_buffer_header_release
	b	LBB0_1
LBB0_3:
	ldr	x19, [x21, #56]
	cbz	x19, LBB0_8
; %bb.4:
	add	x20, x21, #40
Lloh0:
	adrp	x22, _MMAL_BUFFER_HEADER_FLAG_FRAME_END@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MMAL_BUFFER_HEADER_FLAG_FRAME_END@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, x19, #4
	bl	_av_buffer_unref
	mov	x0, x19
	bl	_av_free
	ldr	x19, [x21, #56]
	cbz	x19, LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	str	x8, [x21, #56]
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	w1, #-1
	bl	_atomic_fetch_add
	b	LBB0_5
LBB0_8:
	str	xzr, [x21, #48]
	add	x0, x21, #40
	bl	_atomic_load
	cmp	x0, #0
	cset	w0, eq
	bl	_av_assert0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x21]
	str	xzr, [x21, #32]
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_BUFFER_HEADER_FLAG_FRAME_END,4,2 ; @MMAL_BUFFER_HEADER_FLAG_FRAME_END
	.no_dead_strip	_ffmmal_stop_decoder
.subsections_via_symbols
