	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_str
_get_str:                               ## @get_str
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_ffio_read_varlen
	movl	%eax, %ebx
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.2:
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_FFMIN
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_avio_read
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_avio_r8
	decl	%ebx
	cmpq	$0, (%r14)
	cmovnel	%r12d, %ebx
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r12d, %ebx
	ja	LBB0_3
## %bb.5:
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.6:
	leal	-1(%r12), %esi
	movl	%ebx, %edi
	callq	_FFMIN
	movb	$0, (%r15,%rax)
LBB0_7:
	xorl	%eax, %eax
	cmpl	%r12d, %ebx
	sete	%cl
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.9:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_8:
	movb	%cl, %al
	negl	%eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.no_dead_strip	_get_str
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_str
_get_str:                               ; @get_str
	.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, x2
	mov	x21, x1
	mov	x20, x0
	bl	_ffio_read_varlen
	mov	x22, x0
	cbz	w19, LBB0_4
; %bb.1:
	cbz	w22, LBB0_4
; %bb.2:
	mov	x0, x22
	mov	x1, x19
	bl	_FFMIN
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_avio_read
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_avio_r8
	sub	w8, w22, #1
	ldr	x9, [x20]
	cmp	x9, #0
	csel	w22, w8, w19, eq
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w22, w19
	b.hi	LBB0_3
; %bb.5:
	cbz	w19, LBB0_7
; %bb.6:
	sub	w1, w19, #1
	mov	x0, x22
	bl	_FFMIN
	strb	wzr, [x21, x0]
LBB0_7:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVERROR_EOF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w22, w19
	csetm	w10, eq
	cmp	x8, #0
	csel	w0, w10, w9, eq
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.no_dead_strip	_get_str
.subsections_via_symbols
