	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_bsf_send_packet             ## -- Begin function av_bsf_send_packet
	.p2align	4, 0x90
_av_bsf_send_packet:                    ## @av_bsf_send_packet
	.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, %r14
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$0, 4(%rsi)
	jne	LBB0_4
## %bb.2:
	cmpl	$0, (%rbx)
	je	LBB0_3
LBB0_4:
	movq	(%r14), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	(%r14), %rax
	movl	$1, (%rax)
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	8(%rax), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_8
## %bb.7:
	cmpq	$0, (%rax)
	je	LBB0_10
LBB0_8:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_10:
	movq	%rbx, %rdi
	callq	_av_packet_make_refcounted
	testl	%eax, %eax
	js	LBB0_13
## %bb.11:
	movq	(%r14), %rax
	movq	8(%rax), %rdi
	movq	%rbx, %rsi
	callq	_av_packet_move_ref
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"A non-NULL packet sent after an EOF.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EAGAIN,4,2                     ## @EAGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_bsf_send_packet             ; -- Begin function av_bsf_send_packet
	.p2align	2
_av_bsf_send_packet:                    ; @av_bsf_send_packet
	.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
	cbz	x1, LBB0_5
; %bb.1:
	mov	x20, x1
	ldr	w8, [x1, #4]
	cbnz	w8, LBB0_3
; %bb.2:
	ldr	w8, [x20]
	cbz	w8, LBB0_5
LBB0_3:
	ldr	x8, [x19]
	ldr	w9, [x8]
	cbz	w9, LBB0_7
; %bb.4:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	mov	w0, #0
	ldr	x8, [x19]
	mov	w9, #1
	str	w9, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x8, #8]
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_9
; %bb.8:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
LBB0_9:
Lloh7:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_11:
	mov	x0, x20
	bl	_av_packet_make_refcounted
	tbnz	w0, #31, LBB0_6
; %bb.12:
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	mov	x1, x20
	bl	_av_packet_move_ref
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"A non-NULL packet sent after an EOF.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EAGAIN,4,2                     ; @EAGAIN
.subsections_via_symbols
