	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function BZ2_hbCreateDecodeTables
LCPI0_0:
	.quad	2                               ## 0x2
	.quad	2                               ## 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_BZ2_hbCreateDecodeTables
	.p2align	4, 0x90
_BZ2_hbCreateDecodeTables:              ## @BZ2_hbCreateDecodeTables
	.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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rbp), %r10
	cmpq	%r9, %r8
	jbe	LBB0_1
LBB0_13:
	movq	_BZ_MAX_CODE_LEN@GOTPCREL(%rip), %r11
	cmpq	$0, (%r11)
	je	LBB0_14
## %bb.33:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rsi,%rbx,8)
	incq	%rbx
	movq	(%r11), %rax
	cmpq	%rax, %rbx
	jb	LBB0_34
## %bb.15:
	testq	%r10, %r10
	jne	LBB0_16
LBB0_21:
	cmpq	$2, %rax
	jae	LBB0_22
	jmp	LBB0_24
LBB0_1:
	movq	%r10, %r11
	andq	$-2, %r11
	xorl	%r15d, %r15d
	movq	%r8, %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	cmpq	%r9, %r14
	ja	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testq	%r10, %r10
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	cmpq	$1, %r10
	jne	LBB0_4
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r10b
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r14, (%rcx,%rbx,8)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, (%rdx,%r15,8)
	incq	%r15
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	addq	$2, %rbx
	cmpq	%rbx, %r11
	je	LBB0_9
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r14, (%rcx,%rbx,8)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, (%rdx,%r15,8)
	incq	%r15
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	cmpq	%r14, 8(%rcx,%rbx,8)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	1(%rbx), %rax
	movq	%rax, (%rdx,%r15,8)
	incq	%r15
	jmp	LBB0_8
LBB0_14:
	xorl	%eax, %eax
	testq	%r10, %r10
	je	LBB0_21
LBB0_16:
	cmpq	$1, %r10
	jne	LBB0_35
## %bb.17:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_35:
	movq	%r10, %rbx
	andq	$-2, %rbx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rax,8), %rdx
	incq	8(%rsi,%rdx,8)
	movq	8(%rcx,%rax,8), %rdx
	incq	8(%rsi,%rdx,8)
	addq	$2, %rax
	cmpq	%rax, %rbx
	jne	LBB0_36
LBB0_18:
	testb	$1, %r10b
	je	LBB0_20
## %bb.19:
	movq	(%rcx,%rax,8), %rax
	incq	8(%rsi,%rax,8)
LBB0_20:
	movq	(%r11), %rax
	cmpq	$2, %rax
	jb	LBB0_24
LBB0_22:
	movq	(%rsi), %rcx
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	addq	(%rsi,%rbx,8), %rcx
	movq	%rcx, (%rsi,%rbx,8)
	incq	%rbx
	movq	(%r11), %rax
	cmpq	%rax, %rbx
	jb	LBB0_23
LBB0_24:
	testq	%rax, %rax
	je	LBB0_27
## %bb.25:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rdi,%rax,8)
	incq	%rax
	cmpq	(%r11), %rax
	jb	LBB0_26
LBB0_27:
	cmpq	%r9, %r8
	ja	LBB0_30
## %bb.28:
	xorl	%eax, %eax
	movq	%r8, %rcx
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rsi,%rcx,8), %rdx
	subq	(%rsi,%rcx,8), %rdx
	leaq	(%rdx,%rax), %rbx
	decq	%rbx
	movq	%rbx, (%rdi,%rcx,8)
	leaq	1(%rcx), %rbx
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rbx, %rcx
	cmpq	%r9, %rbx
	jbe	LBB0_29
LBB0_30:
	leaq	1(%r8), %rax
	cmpq	%r9, %rax
	ja	LBB0_44
## %bb.31:
	leaq	2(%r8), %r10
	leaq	1(%r9), %rcx
	cmpq	%rcx, %r10
	movq	%rcx, %rdx
	cmovaq	%r10, %rdx
	movq	%r8, %r11
	notq	%r11
	addq	%rdx, %r11
	cmpq	$4, %r11
	jae	LBB0_37
## %bb.32:
	movq	%r8, %rdx
	jmp	LBB0_43
LBB0_37:
	cmpq	%rcx, %r10
	cmovaq	%r10, %rcx
	leaq	(%rsi,%rax,8), %rdx
	leaq	(%rdi,%rcx,8), %rbx
	addq	$-8, %rbx
	cmpq	%rbx, %rdx
	jae	LBB0_40
## %bb.38:
	leaq	(%rsi,%rcx,8), %rcx
	leaq	(%rdi,%r8,8), %rdx
	cmpq	%rcx, %rdx
	jae	LBB0_40
## %bb.39:
	movq	%r8, %rdx
	jmp	LBB0_43
LBB0_40:
	movq	%r11, %r14
	andq	$-4, %r14
	addq	%r14, %rax
	leaq	(%r14,%r8), %rdx
	leaq	(%rsi,%r8,8), %rbx
	addq	$24, %rbx
	leaq	(%rdi,%r10,8), %r8
	xorl	%ecx, %ecx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [2,2]
	.p2align	4, 0x90
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%r8,%rcx,8), %xmm1
	movdqu	(%r8,%rcx,8), %xmm2
	paddq	%xmm1, %xmm1
	paddq	%xmm2, %xmm2
	movdqu	-16(%rbx,%rcx,8), %xmm3
	psubq	%xmm3, %xmm1
	movdqu	(%rbx,%rcx,8), %xmm3
	psubq	%xmm3, %xmm2
	paddq	%xmm0, %xmm1
	paddq	%xmm0, %xmm2
	movdqu	%xmm1, -16(%rbx,%rcx,8)
	movdqu	%xmm2, (%rbx,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %r14
	jne	LBB0_41
## %bb.42:
	cmpq	%r14, %r11
	je	LBB0_44
	.p2align	4, 0x90
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rdx,8), %rcx
	addq	%rcx, %rcx
	subq	(%rsi,%rax,8), %rcx
	addq	$2, %rcx
	movq	%rcx, (%rsi,%rax,8)
	movq	%rax, %rdx
	incq	%rax
	cmpq	%r9, %rax
	jbe	LBB0_43
LBB0_44:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BZ_MAX_CODE_LEN,8,3            ## @BZ_MAX_CODE_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BZ2_hbCreateDecodeTables       ; -- Begin function BZ2_hbCreateDecodeTables
	.p2align	2
_BZ2_hbCreateDecodeTables:              ; @BZ2_hbCreateDecodeTables
	.cfi_startproc
; %bb.0:
	cmp	x4, x5
	b.ls	LBB0_19
LBB0_1:
Lloh0:
	adrp	x8, _BZ_MAX_CODE_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BZ_MAX_CODE_LEN@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_4
; %bb.2:
	mov	x10, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x1, x10, lsl #3]
	add	x10, x10, #1
	ldr	x9, [x8]
	cmp	x10, x9
	b.lo	LBB0_3
LBB0_4:
	cbz	x6, LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x3], #8
	add	x9, x1, x9, lsl #3
	ldr	x10, [x9, #8]
	add	x10, x10, #1
	str	x10, [x9, #8]
	subs	x6, x6, #1
	b.ne	LBB0_5
; %bb.6:
	ldr	x9, [x8]
LBB0_7:
	cmp	x9, #2
	b.lo	LBB0_10
; %bb.8:
	ldr	x10, [x1]
	mov	w11, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x9, x11, #3
	ldr	x12, [x1, x9]
	add	x10, x12, x10
	str	x10, [x1, x9]
	add	x11, x11, #1
	ldr	x9, [x8]
	cmp	x11, x9
	b.lo	LBB0_9
LBB0_10:
	cbz	x9, LBB0_13
; %bb.11:
	mov	x9, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	str	xzr, [x0, x9, lsl #3]
	add	x9, x9, #1
	ldr	x10, [x8]
	cmp	x9, x10
	b.lo	LBB0_12
LBB0_13:
	cmp	x4, x5
	b.hi	LBB0_16
; %bb.14:
	mov	x8, #0
	mov	x9, x4
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	lsl	x10, x9, #3
	add	x11, x9, #1
	add	x9, x1, x10
	ldp	x9, x12, [x9]
	sub	x9, x12, x9
	add	x8, x9, x8
	sub	x9, x8, #1
	str	x9, [x0, x10]
	lsl	x8, x8, #1
	mov	x9, x11
	cmp	x11, x5
	b.ls	LBB0_15
LBB0_16:
	add	x8, x4, #1
	cmp	x8, x5
	b.hi	LBB0_33
; %bb.17:
	add	x10, x4, #2
	add	x11, x5, #1
	cmp	x10, x11
	csinc	x9, x10, x5, hi
	mvn	x12, x4
	add	x9, x9, x12
	cmp	x9, #8
	b.hs	LBB0_26
; %bb.18:
	mov	x10, x4
	b	LBB0_32
LBB0_19:
	mov	x8, #0
	mov	x9, x4
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x9, x9, #1
	cmp	x9, x5
	b.hi	LBB0_1
LBB0_21:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
	cbz	x6, LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x10, #0
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=2
	add	x10, x10, #1
	cmp	x6, x10
	b.eq	LBB0_20
LBB0_24:                                ;   Parent Loop BB0_21 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x3, x10, lsl #3]
	cmp	x11, x9
	b.ne	LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	str	x10, [x2, x8, lsl #3]
	add	x8, x8, #1
	b	LBB0_23
LBB0_26:
	add	x12, x1, x8, lsl #3
	cmp	x10, x11
	csinc	x10, x10, x5, hi
	lsl	x10, x10, #3
	add	x11, x10, x0
	sub	x11, x11, #8
	cmp	x12, x11
	b.hs	LBB0_29
; %bb.27:
	add	x11, x0, x4, lsl #3
	add	x10, x1, x10
	cmp	x11, x10
	b.hs	LBB0_29
; %bb.28:
	mov	x10, x4
	b	LBB0_32
LBB0_29:
	and	x11, x9, #0xfffffffffffffff8
	add	x8, x8, x11
	add	x10, x11, x4
	lsl	x13, x4, #3
	add	x12, x13, x0
	add	x12, x12, #32
	add	x13, x13, x1
	add	x13, x13, #40
	mov	w14, #2
	dup.2d	v0, x14
	mov	x14, x11
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x12, #-32]
	ldp	q3, q4, [x12], #64
	shl.2d	v1, v1, #1
	shl.2d	v2, v2, #1
	shl.2d	v3, v3, #1
	shl.2d	v4, v4, #1
	ldp	q5, q6, [x13, #-32]
	ldp	q7, q16, [x13]
	sub.2d	v1, v1, v5
	add.2d	v1, v1, v0
	sub.2d	v2, v2, v6
	add.2d	v2, v2, v0
	sub.2d	v3, v3, v7
	add.2d	v3, v3, v0
	sub.2d	v4, v4, v16
	add.2d	v4, v4, v0
	stp	q1, q2, [x13, #-32]
	stp	q3, q4, [x13], #64
	subs	x14, x14, #8
	b.ne	LBB0_30
; %bb.31:
	cmp	x9, x11
	b.eq	LBB0_33
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x0, x10, lsl #3]
	lsl	x9, x9, #1
	lsl	x10, x8, #3
	ldr	x11, [x1, x10]
	sub	x9, x9, x11
	add	x9, x9, #2
	str	x9, [x1, x10]
	mov	x10, x8
	add	x8, x8, #1
	cmp	x8, x5
	b.ls	LBB0_32
LBB0_33:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BZ_MAX_CODE_LEN,8,3            ; @BZ_MAX_CODE_LEN
.subsections_via_symbols
