	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffmmal_flush
_ffmmal_flush:                          ## @ffmmal_flush
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r14
	callq	_ffmmal_stop_decoder
	movl	16(%r14), %edi
	movq	_control_port_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mmal_port_enable
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	_input_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mmal_port_enable
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_output_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mmal_port_enable
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_av_log                         ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_control_port_cb,4,2            ## @control_port_cb
	.comm	_input_callback,4,2             ## @input_callback
	.comm	_output_callback,4,2            ## @output_callback
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MMAL flush error: %i\n"

	.no_dead_strip	_ffmmal_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffmmal_flush
_ffmmal_flush:                          ; @ffmmal_flush
	.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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x20, [x8]
	bl	_ffmmal_stop_decoder
	ldr	w0, [x20, #16]
Lloh0:
	adrp	x8, _control_port_cb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _control_port_cb@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mmal_port_enable
	mov	x3, x0
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _input_callback@GOTPAGE
Lloh4:
	ldr	x8, [x8, _input_callback@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_mmal_port_enable
	mov	x3, x0
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _output_callback@GOTPAGE
Lloh7:
	ldr	x8, [x8, _output_callback@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_mmal_port_enable
	mov	x3, x0
	cbz	x0, LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w3 killed $w3 killed $x3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_av_log
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_control_port_cb,4,2            ; @control_port_cb
	.comm	_input_callback,4,2             ; @input_callback
	.comm	_output_callback,4,2            ; @output_callback
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MMAL flush error: %i\n"

	.no_dead_strip	_ffmmal_flush
.subsections_via_symbols
