	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffmmal_fill_input_port
_ffmmal_fill_input_port:                ## @ffmmal_fill_input_port
	.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
	movq	%rdi, %r14
	movq	(%rdi), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	_mmal_port_send_buffer
	testq	%rax, %rax
	jne	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%r12d, %r12d
	cmpq	$0, 24(%r15)
	je	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	32(%r15), %rax
	movl	(%rax), %edi
	callq	_mmal_queue_get
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	movq	24(%r15), %r12
	movq	%rax, %rdi
	callq	_mmal_buffer_header_reset
	movq	$0, 32(%rbx)
	movl	(%r12), %eax
	movl	%eax, (%rbx)
	movups	16(%r12), %xmm0
	movups	%xmm0, 16(%rbx)
	movq	%r12, 8(%rbx)
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rbx)
	movq	8(%r12), %rcx
	movq	%rcx, 24(%r15)
	cmpq	%r12, 16(%r15)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	$0, 16(%r15)
	jmp	LBB0_5
LBB0_6:
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_mmal_buffer_header_release
	leaq	4(%r12), %rdi
	callq	_av_buffer_unref
	movq	_MMAL_BUFFER_HEADER_FLAG_FRAME_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	movl	$-1, %esi
	callq	_atomic_fetch_add
LBB0_8:
	movq	%r12, %rdi
	callq	_av_free
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r13d, %ecx
	callq	_av_log
	movq	_AVERROR_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MMAL error %d when sending input\n"

	.comm	_AVERROR_UNKNOWN,4,2            ## @AVERROR_UNKNOWN
	.no_dead_strip	_ffmmal_fill_input_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffmmal_fill_input_port
_ffmmal_fill_input_port:                ; @ffmmal_fill_input_port
	.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	x19, x0
	ldr	x20, [x0]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x8]
	mov	x1, x22
	bl	_mmal_port_send_buffer
	cbnz	x0, LBB0_7
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20, #32]
	ldr	w0, [x8]
	bl	_mmal_queue_get
	cbz	x0, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	ldr	x21, [x20, #24]
	bl	_mmal_buffer_header_reset
	ldr	w8, [x21]
	str	w8, [x22]
	ldr	q0, [x21, #16]
	str	q0, [x22, #16]
	str	x21, [x22, #8]
	ldp	x8, x9, [x20, #8]
	ldr	x8, [x8]
	ldr	x10, [x8]
	ldr	w10, [x10]
	str	w10, [x22, #4]
	ldr	x10, [x21, #8]
	str	x10, [x20, #24]
	str	xzr, [x22, #32]
	cmp	x9, x21
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	str	xzr, [x20, #16]
	b	LBB0_1
LBB0_6:
	mov	w0, #0
	b	LBB0_10
LBB0_7:
	mov	x23, x0
	mov	x0, x22
	bl	_mmal_buffer_header_release
	add	x0, x21, #4
	bl	_av_buffer_unref
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _MMAL_BUFFER_HEADER_FLAG_FRAME_END@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMAL_BUFFER_HEADER_FLAG_FRAME_END@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x20
	mov	w1, #-1
	bl	_atomic_fetch_add
LBB0_9:
	mov	x0, x21
	bl	_av_free
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x23
	bl	_av_log
Lloh8:
	adrp	x8, _AVERROR_UNKNOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_UNKNOWN@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_10:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_BUFFER_HEADER_FLAG_FRAME_END,4,2 ; @MMAL_BUFFER_HEADER_FLAG_FRAME_END
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MMAL error %d when sending input\n"

	.comm	_AVERROR_UNKNOWN,4,2            ; @AVERROR_UNKNOWN
	.no_dead_strip	_ffmmal_fill_input_port
.subsections_via_symbols
