	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inverse_bw_transform           ## -- Begin function inverse_bw_transform
	.p2align	4, 0x90
_inverse_bw_transform:                  ## @inverse_bw_transform
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, %r13d
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ALPHABET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	(,%rbx,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	(,%rbx,8), %rax
	callq	____chkstk_darwin
	movl	%r13d, %r10d
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r9
	movl	$-1, %r13d
	cmpl	%r12d, %r10d
	jl	LBB0_44
## %bb.1:
	testq	%r15, %r15
	je	LBB0_44
## %bb.2:
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_44
## %bb.3:
	movl	%r12d, %eax
	orl	%r10d, %eax
	js	LBB0_44
## %bb.4:
	testl	%r10d, %r10d
	jle	LBB0_6
## %bb.5:
	testl	%r12d, %r12d
	je	LBB0_44
LBB0_6:
	xorl	%r13d, %r13d
	cmpl	$2, %r10d
	jl	LBB0_44
## %bb.7:
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movl	%r10d, %r11d
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %rax
	testq	%rcx, %rcx
	movq	%r11, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_11
## %bb.8:
	movl	%r10d, %ebx
	movq	%r9, %r13
	leaq	(,%r11,4), %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	_ALPHABET_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%r13, %r9
	movl	%ebx, %r10d
	movq	-72(%rbp), %r11                 ## 8-byte Reload
LBB0_11:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%edi, %r12d
	testl	%edi, %edi
	jle	LBB0_13
## %bb.12:
	leaq	(,%r12,4), %rsi
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	%r14, %rdi
	movq	%r9, %r13
	movl	%r10d, %ebx
	callq	___bzero
	movq	%r12, %rdi
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %r11                 ## 8-byte Reload
	movl	%ebx, %r10d
	movq	%r13, %r9
LBB0_13:
	leaq	-1(%r11), %rcx
	movl	%r11d, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_46
## %bb.14:
	xorl	%ecx, %ecx
	jmp	LBB0_15
LBB0_46:
	movl	%r11d, %edx
	andl	$-4, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_47:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rcx,8), %rsi
	incl	(%r14,%rsi,4)
	movq	8(%r15,%rcx,8), %rsi
	incl	(%r14,%rsi,4)
	movq	16(%r15,%rcx,8), %rsi
	incl	(%r14,%rsi,4)
	movq	24(%r15,%rcx,8), %rsi
	incl	(%r14,%rsi,4)
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_47
LBB0_15:
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	leaq	(%r15,%rcx,8), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	incl	(%r14,%rsi,4)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_17
LBB0_18:
	xorl	%r8d, %r8d
	movl	$0, %r13d
	testl	%edi, %edi
	jle	LBB0_24
## %bb.19:
	cmpl	$1, %edi
	jne	LBB0_48
## %bb.20:
	xorl	%ecx, %ecx
	xorl	%r13d, %r13d
	xorl	%edx, %edx
LBB0_21:
	testb	$1, %r12b
	je	LBB0_24
## %bb.22:
	cmpl	$0, (%r14,%rcx,4)
	jle	LBB0_24
## %bb.23:
	movl	%edx, (%r14,%rcx,4)
	movslq	%r13d, %rdx
	incl	%r13d
	movq	%rcx, (%r9,%rdx,8)
LBB0_24:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_29
## %bb.25:
	movl	%eax, %r12d
	cmpl	$1, %eax
	jne	LBB0_54
## %bb.26:
	xorl	%ecx, %ecx
	jmp	LBB0_27
LBB0_48:
	movl	%r12d, %esi
	andl	$-2, %esi
	xorl	%ecx, %ecx
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	jmp	LBB0_49
	.p2align	4, 0x90
LBB0_53:                                ##   in Loop: Header=BB0_49 Depth=1
	addq	$2, %rcx
	cmpq	%rcx, %rsi
	je	LBB0_21
LBB0_49:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rcx,4), %edi
	testl	%edi, %edi
	jle	LBB0_51
## %bb.50:                              ##   in Loop: Header=BB0_49 Depth=1
	movl	%edx, (%r14,%rcx,4)
	movslq	%r13d, %rbx
	incl	%r13d
	movq	%rcx, (%r9,%rbx,8)
	addl	%edi, %edx
LBB0_51:                                ##   in Loop: Header=BB0_49 Depth=1
	movl	4(%r14,%rcx,4), %edi
	testl	%edi, %edi
	jle	LBB0_53
## %bb.52:                              ##   in Loop: Header=BB0_49 Depth=1
	leaq	1(%rcx), %rbx
	movl	%edx, 4(%r14,%rcx,4)
	movslq	%r13d, %rax
	incl	%r13d
	movq	%rbx, (%r9,%rax,8)
	addl	%edi, %edx
	jmp	LBB0_53
LBB0_54:
	movl	%r12d, %eax
	andl	$-2, %eax
	xorl	%ecx, %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_55:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rcx,8), %rsi
	movslq	(%r14,%rsi,4), %rdi
	leal	1(%rdi), %ebx
	movl	%ebx, (%r14,%rsi,4)
	movl	%ecx, (%rdx,%rdi,4)
	movq	8(%r15,%rcx,8), %rsi
	movslq	(%r14,%rsi,4), %rdi
	leal	1(%rdi), %ebx
	movl	%ebx, (%r14,%rsi,4)
	leal	1(%rcx), %esi
	movl	%esi, (%rdx,%rdi,4)
	addq	$2, %rcx
	cmpq	%rax, %rcx
	jne	LBB0_55
## %bb.56:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
LBB0_27:
	movl	%eax, %r8d
	testb	$1, %r12b
	je	LBB0_29
## %bb.28:
	movq	(%r15,%rcx,8), %rax
	movslq	(%r14,%rax,4), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%r14,%rax,4)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax,%rdx,4)
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
LBB0_29:
	cmpl	%r10d, %r8d
	jge	LBB0_33
## %bb.30:
	movl	%r8d, %ecx
	movl	%r11d, %edx
	subl	%r8d, %edx
	movq	%rcx, %rax
	notq	%rax
	testb	$1, %dl
	je	LBB0_32
## %bb.31:
	movq	(%r15,%rcx,8), %rdx
	incq	%rcx
	movslq	(%r14,%rdx,4), %rsi
	leal	1(%rsi), %edi
	movl	%edi, (%r14,%rdx,4)
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx,%rsi,4)
LBB0_32:
	addq	%r11, %rax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_33
	.p2align	4, 0x90
LBB0_57:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rcx,8), %rax
	movslq	(%r14,%rax,4), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%r14,%rax,4)
	leal	1(%rcx), %eax
	movl	%eax, (%rdi,%rdx,4)
	movq	8(%r15,%rcx,8), %rax
	addq	$2, %rcx
	movslq	(%r14,%rax,4), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%r14,%rax,4)
	movl	%ecx, (%rdi,%rdx,4)
	cmpq	%rcx, %r11
	jne	LBB0_57
LBB0_33:
	testl	%r13d, %r13d
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_39
## %bb.34:
	movl	%r13d, %edi
	leaq	-1(%rdi), %rdx
	movl	%edi, %eax
	andl	$3, %eax
	cmpq	$3, %rdx
	jae	LBB0_58
## %bb.35:
	xorl	%edx, %edx
	jmp	LBB0_36
LBB0_58:
	andl	$-4, %edi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_59:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r9,%rdx,8), %rsi
	movl	(%r14,%rsi,4), %esi
	movl	%esi, (%r14,%rdx,4)
	movq	8(%r9,%rdx,8), %rsi
	movl	(%r14,%rsi,4), %esi
	movl	%esi, 4(%r14,%rdx,4)
	movq	16(%r9,%rdx,8), %rsi
	movl	(%r14,%rsi,4), %esi
	movl	%esi, 8(%r14,%rdx,4)
	movq	24(%r9,%rdx,8), %rsi
	movl	(%r14,%rsi,4), %esi
	movl	%esi, 12(%r14,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %rdi
	jne	LBB0_59
LBB0_36:
	testq	%rax, %rax
	je	LBB0_39
## %bb.37:
	leaq	(%r14,%rdx,4), %rbx
	leaq	(%r9,%rdx,8), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rdi
	movl	(%r14,%rdi,4), %edi
	movl	%edi, (%rbx,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_38
LBB0_39:
	testl	%r10d, %r10d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	jle	LBB0_42
## %bb.40:
	xorl	%ebx, %ebx
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%edx, %r14d
	movl	%edx, %esi
	movl	%r13d, %edx
	movq	%r9, %r15
	callq	_binarysearch_lower
	movl	%r14d, %edx
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %r9
	movq	(%r15,%rax,8), %rax
	movq	%rax, (%r12,%rbx,8)
	movslq	%r13d, %rax
	movl	-4(%rdi,%rax,4), %r13d
	incq	%rbx
	cmpq	%rbx, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_41
LBB0_42:
	xorl	%r13d, %r13d
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_44
## %bb.43:
	callq	_free
	jmp	LBB0_44
LBB0_9:
	movl	$-2, %r13d
LBB0_44:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_45
## %bb.60:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_45:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ALPHABET_SIZE,4,2              ## @ALPHABET_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inverse_bw_transform           ; -- Begin function inverse_bw_transform
	.p2align	2
_inverse_bw_transform:                  ; @inverse_bw_transform
	.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
	sub	sp, sp, #16
	mov	x20, x4
	mov	x23, x3
	mov	x21, x1
	mov	x25, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x19, _ALPHABET_SIZE@GOTPAGE
Lloh4:
	ldr	x19, [x19, _ALPHABET_SIZE@GOTPAGEOFF]
	ldr	w26, [x19]
	lsl	x8, x26, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	lsl	x8, x26, #3
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x27, x9, x8
	mov	sp, x27
	mov	w0, #-1
	cmp	w3, w4
	b.lt	LBB0_36
; %bb.1:
	cbz	x25, LBB0_36
; %bb.2:
	cbz	x21, LBB0_36
; %bb.3:
	orr	w8, w20, w23
	tbnz	w8, #31, LBB0_36
; %bb.4:
	cmp	w23, #1
	b.lt	LBB0_7
; %bb.5:
	cbnz	w20, LBB0_7
; %bb.6:
	mov	w0, #-1
	b	LBB0_36
LBB0_7:
	cmp	w23, #1
	b.le	LBB0_35
; %bb.8:
	mov	w28, w23
	mov	x24, x2
	stur	x2, [x29, #-96]                 ; 8-byte Folded Spill
	cbnz	x2, LBB0_11
; %bb.9:
	lsl	x0, x28, #2
	bl	_malloc
	cbz	x0, LBB0_38
; %bb.10:
	mov	x24, x0
	ldr	w26, [x19]
LBB0_11:
	mov	w19, w26
	cmp	w26, #1
	b.lt	LBB0_13
; %bb.12:
	lsl	x1, x19, #2
	mov	x0, x22
	bl	_bzero
LBB0_13:
	mov	x8, x28
	mov	x9, x25
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	lsl	x10, x10, #2
	ldr	w11, [x22, x10]
	add	w11, w11, #1
	str	w11, [x22, x10]
	subs	x8, x8, #1
	b.ne	LBB0_14
; %bb.15:
	cmp	w26, #1
	b.lt	LBB0_20
; %bb.16:
	mov	x8, #0
	mov	w26, #0
	mov	w9, #0
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x8, x8, #1
	cmp	x19, x8
	b.eq	LBB0_21
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x22, x8, lsl #2]
	cmp	w10, #1
	b.lt	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	str	w9, [x22, x8, lsl #2]
	str	x8, [x27, w26, sxtw #3]
	add	w26, w26, #1
	add	w9, w10, w9
	b	LBB0_17
LBB0_20:
	mov	w26, #0
LBB0_21:
	cmp	w20, #1
	b.lt	LBB0_25
; %bb.22:
	mov	x8, #0
	mov	w9, w20
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x25, x8, lsl #3]
	lsl	x10, x10, #2
	ldrsw	x11, [x22, x10]
	add	w12, w11, #1
	str	w12, [x22, x10]
	str	w8, [x24, x11, lsl #2]
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.24:
	mov	x8, x20
	cmp	w8, w23
	b.lt	LBB0_26
	b	LBB0_28
LBB0_25:
	mov	w8, #0
	cmp	w8, w23
	b.ge	LBB0_28
LBB0_26:
	mov	w8, w8
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x25, x8, lsl #3]
	add	x10, x8, #1
	lsl	x8, x9, #2
	ldrsw	x9, [x22, x8]
	add	w11, w9, #1
	str	w11, [x22, x8]
	str	w10, [x24, x9, lsl #2]
	mov	x8, x10
	cmp	x28, x10
	b.ne	LBB0_27
LBB0_28:
	cmp	w26, #1
	b.lt	LBB0_31
; %bb.29:
	mov	w8, w26
	mov	x9, x27
	mov	x10, x22
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9], #8
	ldr	w11, [x22, x11, lsl #2]
	str	w11, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_30
LBB0_31:
	cmp	w23, #1
	b.lt	LBB0_33
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x26
	mov	x2, x20
	bl	_binarysearch_lower
	ldr	x8, [x27, x0, lsl #3]
	str	x8, [x21], #8
	sub	w8, w20, #1
	ldr	w20, [x24, w8, sxtw #2]
	subs	x28, x28, #1
	b.ne	LBB0_32
LBB0_33:
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	cbnz	x8, LBB0_35
; %bb.34:
	mov	x0, x24
	bl	_free
LBB0_35:
	mov	w0, #0
LBB0_36:
	ldur	x8, [x29, #-88]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_39
; %bb.37:
	sub	sp, x29, #80
	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
LBB0_38:
	mov	w0, #-2
	b	LBB0_36
LBB0_39:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ALPHABET_SIZE,4,2              ; @ALPHABET_SIZE
.subsections_via_symbols
