	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__heim_len_int                  ## -- Begin function _heim_len_int
	.p2align	4, 0x90
__heim_len_int:                         ## @_heim_len_int
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edi, %edi
	js	LBB0_3
## %bb.1:
	movq	$-1, %rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, %ecx
	leal	255(%rcx), %edx
	testl	%edi, %edi
	cmovsl	%edx, %edi
	sarl	$8, %edi
	incq	%rax
	cmpl	$511, %edx                      ## imm = 0x1FF
	jae	LBB0_2
	jmp	LBB0_5
LBB0_3:
	notl	%edi
	movq	$-1, %rax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, %ecx
	leal	255(%rcx), %edx
	testl	%edi, %edi
	cmovsl	%edx, %edi
	sarl	$8, %edi
	incq	%rax
	cmpl	$511, %edx                      ## imm = 0x1FF
	jae	LBB0_4
LBB0_5:
	leaq	1(%rax), %rdx
	addq	$2, %rax
	testb	$-128, %cl
	cmoveq	%rdx, %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	__heim_len_int                  ; -- Begin function _heim_len_int
	.p2align	2
__heim_len_int:                         ; @_heim_len_int
	.cfi_startproc
; %bb.0:
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x8, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x0
	add	w10, w0, #255
	cmp	w0, #0
	csel	w11, w10, w0, lt
	asr	w0, w11, #8
	add	x8, x8, #1
	cmp	w10, #511
	b.hs	LBB0_2
	b	LBB0_5
LBB0_3:
	mvn	w10, w0
	mov	x8, #-1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x10
	add	w11, w10, #255
	cmp	w10, #0
	csel	w10, w11, w10, lt
	asr	w10, w10, #8
	add	x8, x8, #1
	cmp	w11, #511
	b.hs	LBB0_4
LBB0_5:
	add	x10, x8, #1
	add	x8, x8, #2
	tst	w9, #0x80
	csel	x0, x10, x8, eq
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
