	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_leb128
_read_leb128:                           ## @read_leb128
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi,%r8), %r9d
	movl	%r9d, %r10d
	andl	$127, %r10d
	shlq	%cl, %r10
	orq	%r10, %rax
	addl	$7, %ecx
	incq	%r8
	testb	$-128, %r9b
	jne	LBB0_1
## %bb.2:
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movl	%r8d, (%rsi)
LBB0_4:
	movq	$-1, %rsi
	shlq	%cl, %rsi
	xorl	%edi, %edi
	testb	$64, %r9b
	cmoveq	%rdi, %rsi
	cmpl	$64, %ecx
	cmovaeq	%rdi, %rsi
	testl	%edx, %edx
	cmoveq	%rdi, %rsi
	orq	%rsi, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_read_leb128
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_leb128
_read_leb128:                           ; @read_leb128
	.cfi_startproc
; %bb.0:
	mov	x10, #0
	mov	x8, #0
	mov	w9, #0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x0, x10]
	and	x12, x11, #0x7f
	lsl	x12, x12, x9
	orr	x8, x12, x8
	add	w9, w9, #7
	add	x10, x10, #1
	tbnz	w11, #7, LBB0_1
; %bb.2:
	cbz	x1, LBB0_4
; %bb.3:
	str	w10, [x1]
LBB0_4:
	tst	w11, #0x40
	mov	w10, #63
	ccmp	w9, w10, #2, ne
	ccmp	w2, #0, #4, ls
	mov	x10, #-1
	lsl	x9, x10, x9
	csel	x9, xzr, x9, eq
	orr	x0, x8, x9
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_read_leb128
.subsections_via_symbols
