	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avio_get_str                   ## -- Begin function avio_get_str
	.p2align	4, 0x90
_avio_get_str:                          ## @avio_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	%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
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.1:
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %r15
	decl	%ecx
	movl	%ecx, %edi
	callq	_FFMIN
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:
	movl	%eax, %r13d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%eax, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_avio_r8
	movb	%al, (%r12,%rbx)
	testb	%al, %al
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_4
## %bb.7:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_8
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	xorl	%r13d, %r13d
LBB0_8:
	movl	%r13d, %eax
	movb	$0, (%r12,%rax)
	cmpl	%r14d, %r13d
	jge	LBB0_13
## %bb.9:
	incl	%r13d
	movl	%r14d, %ebx
	negl	%ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_avio_r8
	testb	%al, %al
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	leal	(%rbx,%r13), %eax
	incl	%eax
	movl	%r13d, %ecx
	incl	%ecx
	movl	%ecx, %r13d
	cmpl	$1, %eax
	jne	LBB0_10
	jmp	LBB0_13
LBB0_5:
	incl	%ebx
	movl	%ebx, %r14d
	jmp	LBB0_13
LBB0_11:
	movl	%r13d, %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avio_get_str                   ; -- Begin function avio_get_str
	.p2align	2
_avio_get_str:                          ; @avio_get_str
	.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
	cmp	w3, #0
	b.le	LBB0_5
; %bb.1:
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	sub	w0, w3, #1
	bl	_FFMIN
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x21, x0
	mov	x23, #0
	mov	w24, w0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_avio_r8
	strb	w0, [x22, x23]
	cbz	w0, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	cmp	x24, x23
	b.ne	LBB0_3
	b	LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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	_AVERROR
LBB0_6:
	mov	w21, #0
LBB0_7:
	strb	wzr, [x22, w21, uxtw]
	cmp	w21, w19
	b.ge	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_avio_r8
	add	w21, w21, #1
	cbz	w0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w19, w21
	b.ne	LBB0_8
	b	LBB0_12
LBB0_10:
	add	w19, w23, #1
	b	LBB0_12
LBB0_11:
	mov	x19, x21
LBB0_12:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
