	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_uint
_encode_uint:                           ## @encode_uint
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$128, %esi
	jl	LBB0_1
## %bb.2:
	movq	%rdi, %rax
	movl	%esi, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, %edx
	orb	$-128, %dl
	movb	%dl, (%rax)
	shrl	$7, %ecx
	incq	%rax
	cmpl	$16383, %esi                    ## imm = 0x3FFF
	movl	%ecx, %esi
	ja	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movl	%esi, %ecx
	movq	%rdi, %rax
LBB0_4:
	leal	127(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	andl	$128, %edx
	subl	%edx, %ecx
	movb	%cl, (%rax)
	subl	%edi, %eax
	incl	%eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_encode_uint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_uint
_encode_uint:                           ; @encode_uint
	.cfi_startproc
; %bb.0:
	cmp	w1, #128
	b.lt	LBB0_3
; %bb.1:
	mov	x8, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	orr	w9, w1, #0x80
	strb	w9, [x8], #1
	lsr	w9, w1, #7
	lsr	w10, w1, #14
	mov	x1, x9
	cbnz	w10, LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x9, x1
	mov	x8, x0
LBB0_4:
	negs	w10, w9
	and	w10, w10, #0x7f
	and	w9, w9, #0x7f
	csneg	w9, w9, w10, mi
	strb	w9, [x8]
	sub	w8, w8, w0
	add	w0, w8, #1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_encode_uint
.subsections_via_symbols
