	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bsf_list_filter
_bsf_list_filter:                       ## @bsf_list_filter
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %r12
	cmpl	$0, (%r12)
	je	LBB0_21
## %bb.1:
	movl	4(%r12), %eax
	movq	_AVERROR_EOF@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r12), %eax
	decl	%eax
	movl	%eax, 4(%r12)
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	8(%r12), %eax
	jle	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rcx
	cltq
	movl	-4(%rcx,%rax,4), %edi
	movq	%r15, %rsi
	callq	_av_bsf_receive_packet
	movl	%eax, %ebx
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %ebx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %eax
	cmpl	%eax, %ebx
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r12), %eax
	movl	%eax, 8(%r12)
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ff_bsf_get_packet_ref
	movl	%eax, %ebx
	movl	(%r13), %eax
	cmpl	%eax, %ebx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r12), %eax
	movl	%eax, 4(%r12)
	movl	%ebx, %eax
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	js	LBB0_19
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	4(%r12), %rcx
	cmpl	(%r12), %ecx
	jge	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %ebx
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	8(%r12), %ecx
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rsi
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rax
	movl	(%rax,%rcx,4), %edi
	callq	_av_bsf_send_packet
	testl	%eax, %eax
	js	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r12), %eax
	incl	%eax
	movl	%eax, 4(%r12)
	jmp	LBB0_2
LBB0_21:
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_bsf_get_packet_ref          ## TAILCALL
LBB0_18:
	testl	%ebx, %ebx
	jns	LBB0_20
	jmp	LBB0_19
LBB0_16:
	movl	%eax, %ebx
LBB0_19:
	movq	%r15, %rdi
	callq	_av_packet_unref
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.no_dead_strip	_bsf_list_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bsf_list_filter
_bsf_list_filter:                       ; @bsf_list_filter
	.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, x1
	mov	x20, x0
	ldr	x22, [x0]
	ldr	w8, [x22]
	cbz	w8, LBB0_17
; %bb.1:
	ldr	w8, [x22, #4]
Lloh0:
	adrp	x23, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EAGAIN@GOTPAGEOFF]
Lloh2:
	adrp	x24, _AVERROR_EOF@GOTPAGE
Lloh3:
	ldr	x24, [x24, _AVERROR_EOF@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22, #4]
	sub	w8, w8, #1
	str	w8, [x22, #4]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22, #8]
	cmp	w8, w9
	b.le	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x22, #16]
	sub	w8, w8, #1
	ldr	w0, [x9, w8, sxtw #2]
	mov	x1, x19
	bl	_av_bsf_receive_packet
	mov	x21, x0
	ldr	w0, [x23]
	bl	_AVERROR
	cmp	w21, w0
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24]
	cmp	w21, w8
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22, #4]
	str	w8, [x22, #8]
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_ff_bsf_get_packet_ref
	mov	x21, x0
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22, #8]
	str	w8, [x22, #4]
	mov	x8, x21
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w21, #31, LBB0_20
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w10, w9, [x22]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	cmp	w9, w10
	b.ge	LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w21, w8
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22, #8]
	cmp	w9, w8
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x19
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #16]
	ldr	w0, [x8, x9, lsl #2]
	bl	_av_bsf_send_packet
	tbnz	w0, #31, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22, #4]
	add	w8, w8, #1
	str	w8, [x22, #4]
	b	LBB0_3
LBB0_17:
	mov	x0, x20
	mov	x1, 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	_ff_bsf_get_packet_ref
LBB0_18:
	tbz	w21, #31, LBB0_21
	b	LBB0_20
LBB0_19:
	mov	x21, x0
LBB0_20:
	mov	x0, x19
	bl	_av_packet_unref
LBB0_21:
	mov	x0, x21
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.no_dead_strip	_bsf_list_filter
.subsections_via_symbols
