	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Xz_ReadVarInt                  ## -- Begin function Xz_ReadVarInt
	.p2align	4, 0x90
_Xz_ReadVarInt:                         ## @Xz_ReadVarInt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$0, (%rdx)
	cmpq	$9, %rsi
	movl	$9, %r8d
	cmovbq	%rsi, %r8
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	xorl	%r11d, %r11d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r11, %r8
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rdi,%r11,4), %r10d
	movl	%r10d, %esi
	andl	$127, %esi
	incq	%r11
	shll	%cl, %esi
	orl	%esi, %r9d
	movl	%r9d, (%rdx)
	addl	$7, %ecx
	testb	$-128, %r10b
	jne	LBB0_1
## %bb.3:
	xorl	%eax, %eax
	cmpl	$1, %r11d
	cmovel	%r11d, %eax
	testl	%r10d, %r10d
	cmovnel	%r11d, %eax
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Xz_ReadVarInt                  ; -- Begin function Xz_ReadVarInt
	.p2align	2
_Xz_ReadVarInt:                         ; @Xz_ReadVarInt
	.cfi_startproc
; %bb.0:
	mov	w9, #0
	mov	w10, #0
	mov	x8, #0
	str	wzr, [x2]
	mov	w11, #9
	cmp	x1, #9
	csel	x11, x1, x11, lo
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x11, x8
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w12, [x0, x8, lsl #2]
	and	w13, w12, #0x7f
	add	x8, x8, #1
	lsl	w13, w13, w9
	orr	w10, w13, w10
	str	w10, [x2]
	add	w9, w9, #7
	tbnz	w12, #7, LBB0_1
; %bb.3:
	cmp	w8, #1
	ccmp	w12, #0, #0, ne
	csel	w0, wzr, w8, eq
	ret
LBB0_4:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
