	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen_bitlen
_gen_bitlen:                            ## @gen_bitlen
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	16(%rsi), %r8
	movl	(%rsi), %r12d
	movq	8(%rsi), %rax
	movq	16(%rax), %r11
	movq	(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rax), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movslq	12(%rax), %r9
	movq	_MAX_BITS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	js	LBB0_3
## %bb.1:
	movq	(%r13), %rcx
	movq	$-1, %rdx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, 4(%rcx,%rdx,4)
	movslq	(%rax), %rsi
	incq	%rdx
	cmpq	%rsi, %rdx
	jl	LBB0_2
LBB0_3:
	movq	8(%r13), %rax
	movq	16(%r13), %r10
	movq	(%rax,%r10,8), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	$0, (%r8,%rcx,8)
	incl	%r10d
	movq	_HEAP_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r10d
	jge	LBB0_30
## %bb.4:
	movslq	%r10d, %rcx
	leaq	(%rax,%rcx,8), %rdi
	xorl	%r15d, %r15d
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movb	%r14b, %bl
	addl	%ebx, %r15d
	addq	$8, %rdi
	incl	%r10d
	movq	_HEAP_SIZE@GOTPCREL(%rip), %rax
	cmpl	%r10d, (%rax)
	jle	LBB0_14
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rax
	movslq	%eax, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	8(%r8,%rcx,8), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movl	(%r8,%rdx,8), %esi
	xorl	%ebx, %ebx
	movq	%r9, %rdx
	cmpl	%edx, %esi
	setge	%r14b
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, %esi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%esi
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%esi, (%r8,%rcx,8)
	cmpl	%eax, %r12d
	jl	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%esi, %rdx
	movq	(%r13), %r8
	incl	(%r8,%rdx,4)
	xorl	%edx, %edx
	cmpl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	jg	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	subl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	cltq
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%rax,4), %edx
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	16(%r8,%rcx,8), %eax
	addl	%edx, %esi
	imull	%eax, %esi
	addl	%esi, 24(%r13)
	testq	%r11, %r11
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	addl	(%r11,%rcx,8), %edx
	imull	%eax, %edx
	addl	%edx, 28(%r13)
	jmp	LBB0_13
LBB0_14:
	testl	%r15d, %r15d
	je	LBB0_30
## %bb.15:
	movq	%r9, %rbx
	movq	%r10, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_Trace
	movq	(%r13), %rax
	movq	%rbx, %rdx
	shlq	$32, %rdx
	movabsq	$4294967296, %r9                ## imm = 0x100000000
	addq	%rdx, %r9
	leaq	(%rax,%rbx,4), %r8
	movabsq	$-4294967296, %rsi              ## imm = 0xFFFFFFFF00000000
	movq	%rbx, %rcx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movq	%r8, %rdx
	movq	%r9, %rdi
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addq	%rsi, %rdi
	movl	-4(%rdx), %ebx
	addq	$-4, %rdx
	testl	%ebx, %ebx
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	decl	%ebx
	movl	%ebx, (%rdx)
	sarq	$30, %rdi
	addl	$2, (%rax,%rdi)
	movl	(%rax,%rcx,4), %r14d
	decl	%r14d
	movl	%r14d, (%rax,%rcx,4)
	leal	-2(%r15), %edx
	cmpl	$2, %r15d
	movl	%edx, %r15d
	jg	LBB0_16
## %bb.19:
	testl	%ecx, %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_30
## %bb.20:
	movq	%rcx, %rdi
	.p2align	4, 0x90
LBB0_21:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
                                        ##       Child Loop BB0_23 Depth 3
	movl	%esi, %ebx
LBB0_22:                                ##   Parent Loop BB0_21 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_23 Depth 3
	movslq	%esi, %rax
	decq	%rax
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_21 Depth=1
                                        ##     Parent Loop BB0_22 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	testl	%r14d, %r14d
	je	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=3
	movq	8(%r13), %rcx
	movq	(%rcx,%rax,8), %rcx
	decl	%ebx
	decq	%rax
	cmpl	%ecx, %r12d
	jl	LBB0_23
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=2
	movslq	%ecx, %rax
	leaq	(%rax,%rax,2), %r15
	cmpl	%edi, (%rdx,%r15,8)
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_22 Depth=2
	leaq	(%rdx,%r15,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_Trace
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %eax
	movl	%edi, %ecx
	subl	%eax, %ecx
	imull	16(%rdx,%r15,8), %ecx
	addl	%ecx, 24(%r13)
	movl	%edi, (%rsi)
LBB0_27:                                ##   in Loop: Header=BB0_22 Depth=2
	decl	%r14d
	movl	%ebx, %esi
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_21 Depth=1
	decq	%rdi
	testl	%edi, %edi
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rdi,4), %r14d
	jmp	LBB0_21
LBB0_30:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_BITS,4,2                   ## @MAX_BITS
	.comm	_HEAP_SIZE,4,2                  ## @HEAP_SIZE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nbit length overflow\n"

	.no_dead_strip	_gen_bitlen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen_bitlen
_gen_bitlen:                            ; @gen_bitlen
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w21, [x1]
	ldp	x11, x22, [x1, #8]
	ldr	x8, [x11, #16]
	ldr	x9, [x11]
	ldp	w10, w20, [x11, #8]
                                        ; kill: def $w20 killed $w20 def $x20
	sxtw	x20, w20
Lloh0:
	adrp	x11, _MAX_BITS@GOTPAGE
Lloh1:
	ldr	x11, [x11, _MAX_BITS@GOTPAGEOFF]
	ldr	w12, [x11]
	tbnz	w12, #31, LBB0_3
; %bb.1:
	mov	x13, #0
	ldr	x12, [x19]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [x12, x13, lsl #2]
	add	x14, x13, #1
	ldrsw	x15, [x11]
	cmp	x13, x15
	mov	x13, x14
	b.lt	LBB0_2
LBB0_3:
	ldp	x13, x12, [x19, #8]
	ldr	x14, [x13, x12, lsl #3]
	mov	w11, #24
	mul	x14, x14, x11
	str	wzr, [x22, x14]
	add	w23, w12, #1
Lloh2:
	adrp	x12, _HEAP_SIZE@GOTPAGE
Lloh3:
	ldr	x12, [x12, _HEAP_SIZE@GOTPAGEOFF]
	ldr	w14, [x12]
	cmp	w23, w14
	b.ge	LBB0_27
; %bb.4:
	mov	w24, #0
	add	x13, x13, w23, sxtw #3
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w14, [x12]
	add	x13, x13, #8
	add	w23, w23, #1
	cmp	w14, w23
	b.le	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x13]
	smaddl	x16, w14, w11, x22
	ldr	x15, [x16, #8]
	mul	x15, x15, x11
	ldr	w15, [x22, x15]
	cmp	w15, w20
	csinc	w15, w20, w15, ge
	cinc	w24, w24, ge
	str	w15, [x16]
	cmp	w21, w14
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x16, [x19]
	sbfiz	x17, x15, #2, #32
	ldr	w0, [x16, x17]
	add	w0, w0, #1
	str	w0, [x16, x17]
	cmp	w10, w14
	b.le	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w16, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	w16, w14, w10
	ldr	w16, [x9, w16, sxtw #2]
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	sxtw	x17, w14
	madd	x14, x17, x11, x22
	ldr	w14, [x14, #16]
	add	w15, w16, w15
	ldr	w0, [x19, #24]
	madd	w15, w15, w14, w0
	str	w15, [x19, #24]
	cbz	x8, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mul	x15, x17, x11
	ldr	w15, [x8, x15]
	add	w15, w15, w16
	ldr	w16, [x19, #28]
	madd	w14, w15, w14, w16
	str	w14, [x19, #28]
	b	LBB0_5
LBB0_12:
	cbz	w24, LBB0_27
; %bb.13:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_Trace
	ldr	x8, [x19]
	mov	x9, #4294967296
	add	x9, x9, x20, lsl #32
	add	x10, x8, x20, lsl #2
	mov	x11, #-4294967296
	lsl	x12, x20, #2
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	mov	x13, x10
	mov	x14, x9
LBB0_15:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w15, [x13, #-4]!
	add	x14, x14, x11
	cbz	w15, LBB0_15
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	sub	w15, w15, #1
	str	w15, [x13]
	asr	x13, x14, #30
	ldr	w14, [x8, x13]
	add	w14, w14, #2
	str	w14, [x8, x13]
	ldr	w13, [x8, x12]
	sub	w25, w13, #1
	str	w25, [x8, x12]
	subs	w24, w24, #2
	b.gt	LBB0_14
; %bb.17:
	cbz	w20, LBB0_27
; %bb.18:
	mov	w24, #24
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x23, x26, w23, uxtw
	sub	w25, w25, #1
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
LBB0_20:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	mov	x26, #0
	sbfiz	x8, x23, #3, #32
	sub	x8, x8, #8
LBB0_21:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	w25, LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	ldr	x9, [x19, #8]
	add	x9, x9, x8
	ldr	x9, [x9, x26, lsl #3]
	sub	x26, x26, #1
	cmp	w21, w9
	b.lt	LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	smaddl	x27, w9, w24, x22
	ldr	w8, [x27]
	cmp	w8, w20
	b.eq	LBB0_19
; %bb.24:                               ;   in Loop: Header=BB0_20 Depth=1
	sxtw	x28, w9
	mov	x0, x20
	bl	_Trace
	ldr	w8, [x27]
	sub	w8, w20, w8
	madd	x9, x28, x24, x22
	ldr	w9, [x9, #16]
	ldr	w10, [x19, #24]
	madd	w8, w8, w9, w10
	str	w8, [x19, #24]
	str	w20, [x27]
	b	LBB0_19
LBB0_25:                                ;   in Loop: Header=BB0_20 Depth=1
	sub	x20, x20, #1
	cbz	w20, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	w23, w23
	ldr	x8, [x19]
	ldr	w25, [x8, x20, lsl #2]
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_20
LBB0_27:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_BITS,4,2                   ; @MAX_BITS
	.comm	_HEAP_SIZE,4,2                  ; @HEAP_SIZE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nbit length overflow\n"

	.no_dead_strip	_gen_bitlen
.subsections_via_symbols
