	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ebml_read_ascii
_ebml_read_ascii:                       ## @ebml_read_ascii
	.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
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r12
	leal	1(%rbx), %edi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_avio_read
	cmpl	%ebx, %eax
	jne	LBB0_2
## %bb.4:
	movslq	%ebx, %rax
	movb	$0, (%r15,%rax)
	movq	(%r14), %rdi
	callq	_av_free
	movq	%r15, (%r14)
	xorl	%r12d, %r12d
	jmp	LBB0_5
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_av_free
	testl	%r12d, %r12d
	js	LBB0_5
## %bb.3:
	movq	_NEEDS_CHECKING@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_5:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NEEDS_CHECKING,4,2             ## @NEEDS_CHECKING
	.no_dead_strip	_ebml_read_ascii
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ebml_read_ascii
_ebml_read_ascii:                       ; @ebml_read_ascii
	.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	x22, x0
	add	w0, w1, #1
	bl	_av_malloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_avio_read
	cmp	w0, w21
	b.ne	LBB0_4
; %bb.2:
	strb	wzr, [x20, w21, sxtw]
	ldr	x0, [x19]
	bl	_av_free
	mov	w0, #0
	str	x20, [x19]
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_4:
	mov	x22, x0
	mov	x0, x20
	bl	_av_free
Lloh3:
	adrp	x8, _NEEDS_CHECKING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NEEDS_CHECKING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w22, #0
	csel	w0, w22, w8, lt
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NEEDS_CHECKING,4,2             ; @NEEDS_CHECKING
	.no_dead_strip	_ebml_read_ascii
.subsections_via_symbols
