	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_bsf_get_packet              ## -- Begin function ff_bsf_get_packet
	.p2align	4, 0x90
_ff_bsf_get_packet:                     ## @ff_bsf_get_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_9
LBB0_2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rax), %rax
	cmpl	$0, 4(%rax)
	jne	LBB0_6
## %bb.3:
	cmpl	$0, (%rax)
	je	LBB0_4
LBB0_6:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_av_packet_alloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%r14)
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_bsf_get_packet              ; -- Begin function ff_bsf_get_packet
	.p2align	2
_ff_bsf_get_packet:                     ; @ff_bsf_get_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
	ldr	x8, [x0]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x8]
	ldr	w9, [x8, #4]
	cbnz	w9, LBB0_4
; %bb.3:
	ldr	w8, [x8]
	cbz	w8, LBB0_8
LBB0_4:
	bl	_av_packet_alloc
	cbz	x0, LBB0_7
; %bb.5:
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
	ldr	x9, [x9]
	str	x9, [x20]
	ldr	x9, [x19]
	str	x8, [x9]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
