	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avcodec_port_flush
_avcodec_port_flush:                    ## @avcodec_port_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rcx
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_MMAL_PORT_TYPE_OUTPUT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.1:
	addq	$8, %rax
	jmp	LBB0_2
LBB0_5:
	movq	_MMAL_PORT_TYPE_INPUT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
LBB0_2:
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_mmal_queue_get
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_mmal_port_buffer_header_callback
	movq	%rbx, %rdi
	callq	_mmal_queue_get
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_7
LBB0_6:
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %r15
LBB0_7:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_PORT_TYPE_OUTPUT,8,3      ## @MMAL_PORT_TYPE_OUTPUT
	.comm	_MMAL_PORT_TYPE_INPUT,8,3       ## @MMAL_PORT_TYPE_INPUT
	.comm	_MMAL_EINVAL,4,2                ## @MMAL_EINVAL
	.comm	_MMAL_SUCCESS,4,2               ## @MMAL_SUCCESS
	.no_dead_strip	_avcodec_port_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avcodec_port_flush
_avcodec_port_flush:                    ; @avcodec_port_flush
	.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
	ldp	x9, x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh0:
	adrp	x10, _MMAL_PORT_TYPE_OUTPUT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MMAL_PORT_TYPE_OUTPUT@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	add	x8, x8, #8
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x10, _MMAL_PORT_TYPE_INPUT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MMAL_PORT_TYPE_INPUT@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
LBB0_3:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_mmal_queue_get
	cbz	x0, LBB0_6
; %bb.4:
	mov	x1, x0
Lloh6:
	adrp	x21, _MMAL_SUCCESS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _MMAL_SUCCESS@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_mmal_port_buffer_header_callback
	mov	x0, x20
	bl	_mmal_queue_get
	mov	x1, x0
	cbnz	x0, LBB0_5
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x21, _MMAL_SUCCESS@GOTPAGE
Lloh9:
	ldr	x21, [x21, _MMAL_SUCCESS@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x21, _MMAL_EINVAL@GOTPAGE
Lloh11:
	ldr	x21, [x21, _MMAL_EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x21]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_PORT_TYPE_OUTPUT,8,3      ; @MMAL_PORT_TYPE_OUTPUT
	.comm	_MMAL_PORT_TYPE_INPUT,8,3       ; @MMAL_PORT_TYPE_INPUT
	.comm	_MMAL_EINVAL,4,2                ; @MMAL_EINVAL
	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
	.no_dead_strip	_avcodec_port_flush
.subsections_via_symbols
