	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_sleb128
_read_sleb128:                          ## @read_sleb128
	.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
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rdi), %rax
	cmpq	%rsi, %rax
	je	LBB0_3
## %bb.1:
	movl	(%rax), %ebx
	movl	%ebx, %r13d
	andl	$127, %r13d
	leaq	4(%rax), %rcx
	movl	$7, %r15d
	testb	$-128, %bl
	je	LBB0_2
## %bb.4:
	cmpq	%r12, %rcx
	je	LBB0_7
## %bb.5:
	movl	4(%rax), %ebx
	movl	%ebx, %ecx
	andl	$127, %ecx
	shll	$7, %ecx
	orl	%ecx, %r13d
	leaq	8(%rax), %rcx
	movl	$14, %r15d
	testb	$-128, %bl
	je	LBB0_2
## %bb.8:
	cmpq	%r12, %rcx
	je	LBB0_11
## %bb.9:
	movl	8(%rax), %ebx
	movl	%ebx, %ecx
	andl	$127, %ecx
	shll	$14, %ecx
	orl	%ecx, %r13d
	leaq	12(%rax), %rcx
	movl	$21, %r15d
	testb	$-128, %bl
	je	LBB0_2
## %bb.12:
	cmpq	%r12, %rcx
	je	LBB0_15
## %bb.13:
	movl	12(%rax), %ebx
	movl	%ebx, %ecx
	andl	$127, %ecx
	shll	$21, %ecx
	orl	%ecx, %r13d
	leaq	16(%rax), %rcx
	movl	$28, %r15d
	testb	$-128, %bl
	je	LBB0_2
## %bb.16:
	cmpq	%r12, %rcx
	je	LBB0_19
## %bb.17:
	movl	16(%rax), %ebx
	movl	%ebx, %ecx
	shll	$28, %ecx
	orl	%ecx, %r13d
	leaq	20(%rax), %rcx
	movl	$35, %r15d
	testb	$-128, %bl
	jne	LBB0_20
LBB0_2:
	movq	%rcx, %r12
	jmp	LBB0_42
LBB0_3:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_41
LBB0_7:
	movl	$7, %r15d
	jmp	LBB0_41
LBB0_11:
	movl	$14, %r15d
	jmp	LBB0_41
LBB0_15:
	movl	$21, %r15d
	jmp	LBB0_41
LBB0_19:
	movl	$28, %r15d
	jmp	LBB0_41
LBB0_20:
	cmpq	%r12, %rcx
	je	LBB0_24
## %bb.21:
	movl	20(%rax), %ebx
	leaq	24(%rax), %rcx
	testb	$-128, %bl
	jne	LBB0_25
## %bb.22:
	movl	$42, %r15d
	jmp	LBB0_23
LBB0_24:
	movl	$35, %r15d
	jmp	LBB0_41
LBB0_25:
	cmpq	%r12, %rcx
	je	LBB0_28
## %bb.26:
	movl	24(%rax), %ebx
	leaq	28(%rax), %rcx
	testb	$-128, %bl
	jne	LBB0_29
## %bb.27:
	movl	$49, %r15d
	jmp	LBB0_23
LBB0_28:
	movl	$42, %r15d
	jmp	LBB0_40
LBB0_29:
	cmpq	%r12, %rcx
	je	LBB0_32
## %bb.30:
	movl	28(%rax), %ebx
	leaq	32(%rax), %rcx
	testb	$-128, %bl
	jne	LBB0_33
## %bb.31:
	movl	$56, %r15d
LBB0_23:
                                        ## implicit-def: $r13d
	movq	%rcx, %r12
	jmp	LBB0_42
LBB0_32:
	movl	$49, %r15d
	jmp	LBB0_40
LBB0_33:
	cmpq	%r12, %rcx
	je	LBB0_36
## %bb.34:
	movl	32(%rax), %ebx
	addq	$36, %rax
	testb	$-128, %bl
	jne	LBB0_37
## %bb.35:
	movl	$63, %r15d
                                        ## implicit-def: $r13d
	movq	%rax, %r12
	jmp	LBB0_42
LBB0_36:
	movl	$56, %r15d
	jmp	LBB0_40
LBB0_37:
	cmpq	%r12, %rax
	je	LBB0_39
## %bb.38:
	leaq	L_.str.1(%rip), %rdi
	callq	_eprintf
                                        ## implicit-def: $eax
	jmp	LBB0_43
LBB0_39:
	movl	$63, %r15d
LBB0_40:
                                        ## implicit-def: $r13d
LBB0_41:
	leaq	L_.str(%rip), %rdi
	callq	_eprintf
LBB0_42:
	shll	$25, %ebx
	movq	$-1, %rax
	movl	%r15d, %ecx
	shlq	%cl, %rax
	sarl	$31, %ebx
	andl	%ebx, %eax
	orl	%r13d, %eax
	movq	%r12, (%r14)
LBB0_43:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malformed sleb128\n"

L_.str.1:                               ## @.str.1
	.asciz	"too large sleb128 shift\n"

	.no_dead_strip	_read_sleb128
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_sleb128
_read_sleb128:                          ; @read_sleb128
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, x1
	b.eq	LBB0_3
; %bb.1:
	mov	x9, x8
	ldr	w21, [x9], #4
	and	w22, w21, #0x7f
	tbnz	w21, #7, LBB0_4
; %bb.2:
	mov	w23, #7
	mov	x20, x9
	b	LBB0_42
LBB0_3:
	mov	w22, #0
	mov	x23, #0
	mov	w21, #0
	b	LBB0_41
LBB0_4:
	cmp	x9, x20
	b.eq	LBB0_7
; %bb.5:
	ldr	w21, [x8, #4]
	bfi	w22, w21, #7, #7
	add	x9, x8, #8
	tbnz	w21, #7, LBB0_8
; %bb.6:
	mov	w23, #14
	mov	x20, x9
	b	LBB0_42
LBB0_7:
	mov	w23, #7
	b	LBB0_41
LBB0_8:
	cmp	x9, x20
	b.eq	LBB0_11
; %bb.9:
	ldr	w21, [x8, #8]
	bfi	w22, w21, #14, #7
	add	x9, x8, #12
	tbnz	w21, #7, LBB0_12
; %bb.10:
	mov	w23, #21
	mov	x20, x9
	b	LBB0_42
LBB0_11:
	mov	w23, #14
	b	LBB0_41
LBB0_12:
	cmp	x9, x20
	b.eq	LBB0_15
; %bb.13:
	ldr	w21, [x8, #12]
	bfi	w22, w21, #21, #7
	add	x9, x8, #16
	tbnz	w21, #7, LBB0_16
; %bb.14:
	mov	w23, #28
	mov	x20, x9
	b	LBB0_42
LBB0_15:
	mov	w23, #21
	b	LBB0_41
LBB0_16:
	cmp	x9, x20
	b.eq	LBB0_19
; %bb.17:
	ldr	w21, [x8, #16]
	bfi	w22, w21, #28, #4
	add	x9, x8, #20
	tbnz	w21, #7, LBB0_20
; %bb.18:
	mov	w23, #35
	mov	x20, x9
	b	LBB0_42
LBB0_19:
	mov	w23, #28
	b	LBB0_41
LBB0_20:
	cmp	x9, x20
	b.eq	LBB0_23
; %bb.21:
	ldr	w21, [x8, #20]
	add	x9, x8, #24
	tbnz	w21, #7, LBB0_24
; %bb.22:
	mov	w23, #42
	b	LBB0_31
LBB0_23:
	mov	w23, #35
	b	LBB0_41
LBB0_24:
	cmp	x9, x20
	b.eq	LBB0_27
; %bb.25:
	ldr	w21, [x8, #24]
	add	x9, x8, #28
	tbnz	w21, #7, LBB0_28
; %bb.26:
	mov	w23, #49
	b	LBB0_31
LBB0_27:
	mov	w23, #42
	b	LBB0_40
LBB0_28:
	cmp	x9, x20
	b.eq	LBB0_32
; %bb.29:
	ldr	w21, [x8, #28]
	add	x9, x8, #32
	tbnz	w21, #7, LBB0_33
; %bb.30:
	mov	w23, #56
LBB0_31:
                                        ; implicit-def: $w22
	mov	x20, x9
	b	LBB0_42
LBB0_32:
	mov	w23, #49
	b	LBB0_40
LBB0_33:
	cmp	x9, x20
	b.eq	LBB0_36
; %bb.34:
	ldr	w21, [x8, #32]
	add	x8, x8, #36
	tbnz	w21, #7, LBB0_37
; %bb.35:
	mov	w23, #63
                                        ; implicit-def: $w22
	mov	x20, x8
	b	LBB0_42
LBB0_36:
	mov	w23, #56
	b	LBB0_40
LBB0_37:
	cmp	x8, x20
	b.eq	LBB0_39
; %bb.38:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_eprintf
                                        ; implicit-def: $w0
	b	LBB0_43
LBB0_39:
	mov	w23, #63
LBB0_40:
                                        ; implicit-def: $w22
LBB0_41:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_eprintf
LBB0_42:
	lsl	w8, w21, #25
	mov	x9, #-1
	lsl	x9, x9, x23
	and	w8, w9, w8, asr #31
	orr	w0, w8, w22
	str	x20, [x19]
LBB0_43:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malformed sleb128\n"

l_.str.1:                               ; @.str.1
	.asciz	"too large sleb128 shift\n"

	.no_dead_strip	_read_sleb128
.subsections_via_symbols
