	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ebml_read_binary
_ebml_read_binary:                      ## @ebml_read_binary
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	16(%rcx), %r14
	movslq	%esi, %r15
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	%r15, %rsi
	movq	%r14, %rdi
	callq	_av_buffer_realloc
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	16(%rbx), %rax
	leaq	(,%r15,4), %rdi
	addq	(%rax), %rdi
	movq	(%r13), %rdx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_memset
	movq	16(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rsi, 8(%rbx)
	movl	%r15d, (%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%rbx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_avio_read
	cmpl	%r15d, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_av_buffer_unref
	movq	$0, 8(%rbx)
	movl	$0, (%rbx)
	testl	%r13d, %r13d
	js	LBB0_5
## %bb.4:
	movq	_NEEDS_CHECKING@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_5:
	movl	%r13d, %r12d
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_NEEDS_CHECKING,4,2             ## @NEEDS_CHECKING
	.no_dead_strip	_ebml_read_binary
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ebml_read_binary
_ebml_read_binary:                      ; @ebml_read_binary
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	add	x20, x3, #16
	sxtw	x24, w21
Lloh0:
	adrp	x25, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x1, x8, x24
	mov	x0, x20
	bl	_av_buffer_realloc
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	add	x0, x8, x24, lsl #2
	ldr	x2, [x25]
	mov	w1, #0
	bl	_memset
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
	str	x1, [x19, #8]
	str	w21, [x19]
	str	w23, [x19, #24]
	mov	x0, x22
	mov	x2, x21
	bl	_avio_read
	mov	x22, x0
	mov	w0, #0
	cmp	w22, w21
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_av_buffer_unref
	str	xzr, [x19, #8]
	str	wzr, [x19]
Lloh2:
	adrp	x8, _NEEDS_CHECKING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NEEDS_CHECKING@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w22, #0
	csel	w0, w22, w8, lt
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_NEEDS_CHECKING,4,2             ; @NEEDS_CHECKING
	.no_dead_strip	_ebml_read_binary
.subsections_via_symbols
