	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ksw_align                      ## -- Begin function ksw_align
	.p2align	4, 0x90
_ksw_align:                             ## @ksw_align
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	48(%rbp), %r15
	movl	40(%rbp), %ecx
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	(%r15), %r12
	testq	%r12, %r12
	jne	LBB0_6
LBB0_2:
	movq	_KSW_XBYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	xorl	%edi, %edi
	cmpl	$1, %eax
	adcl	$1, %edi
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	movq	16(%rbp), %r8
	callq	_ksw_qinit
	movq	%rax, %r12
	testq	%r15, %r15
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%r15)
	jne	LBB0_5
## %bb.4:
	movq	%r12, (%r15)
LBB0_5:
	movl	40(%rbp), %ecx
LBB0_6:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movl	32(%rbp), %r9d
	movl	24(%rbp), %r8d
	movl	(%r12), %r13d
	cmpl	$2, %r13d
	jne	LBB0_7
## %bb.8:
	movq	_ksw_i16@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_ksw_u8@GOTPCREL(%rip), %rax
LBB0_9:
	movl	%ecx, (%rsp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%ecx, %ebx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	callq	*%rax
	testq	%r15, %r15
	jne	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	callq	_free
LBB0_11:
	movq	_KSW_XSTART@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_16
## %bb.12:
	movq	_KSW_XSUBO@GOTPCREL(%rip), %rax
	movl	(%r14), %ecx
	testl	%ebx, (%rax)
	je	LBB0_14
## %bb.13:
	movzwl	%bx, %eax
	cmpl	%eax, %ecx
	jl	LBB0_16
LBB0_14:
	movl	4(%r14), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leal	1(%rax), %ebx
	movl	%ebx, %edi
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rsi
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	callq	_revseq
	movl	8(%r14), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leal	1(%rax), %edi
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_revseq
	movl	%r13d, %edi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	16(%rbp), %r8
	callq	_ksw_qinit
	movq	%rax, %r13
	movq	_KSW_XSTOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, (%rsp)
	leaq	-128(%rbp), %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	movl	24(%rbp), %r8d
	movl	32(%rbp), %r9d
	callq	*-96(%rbp)                      ## 8-byte Folded Reload
	movl	-124(%rbp), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	-120(%rbp), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	-128(%rbp), %ebx
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	callq	_revseq
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	callq	_revseq
	movq	%r13, %rdi
	callq	_free
	cmpl	%ebx, -52(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_16
## %bb.15:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	subl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, 12(%r14)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	subl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, 16(%r14)
LBB0_16:
	movq	%r14, %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KSW_XBYTE,4,2                  ## @KSW_XBYTE
	.comm	_KSW_XSTART,4,2                 ## @KSW_XSTART
	.comm	_KSW_XSUBO,4,2                  ## @KSW_XSUBO
	.comm	_KSW_XSTOP,4,2                  ## @KSW_XSTOP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ksw_align                      ; -- Begin function ksw_align
	.p2align	2
_ksw_align:                             ; @ksw_align
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	stp	w6, w7, [sp, #16]               ; 8-byte Folded Spill
	mov	x26, x5
	mov	x22, x4
	mov	x20, x3
	mov	x24, x2
	mov	x21, x1
	mov	x1, x0
	mov	x19, x8
	ldr	x23, [x29, #24]
	ldr	w27, [x29, #16]
	cbz	x23, LBB0_2
; %bb.1:
	ldr	x25, [x23]
	cbnz	x25, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _KSW_XBYTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KSW_XBYTE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w27
	mov	w8, #1
	cinc	w0, w8, eq
	mov	x2, x21
	mov	x3, x22
	mov	x4, x26
	bl	_ksw_qinit
	mov	x25, x0
	cbz	x23, LBB0_5
; %bb.3:
	ldr	x8, [x23]
	cbnz	x8, LBB0_5
; %bb.4:
	str	x25, [x23]
LBB0_5:
	str	w22, [sp, #12]                  ; 4-byte Folded Spill
	ldr	w28, [x25]
Lloh3:
	adrp	x8, _ksw_u8@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ksw_u8@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ksw_i16@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ksw_i16@GOTPAGEOFF]
	cmp	w28, #2
	csel	x22, x9, x8, eq
	mov	x8, x19
	mov	x0, x25
	mov	x1, x24
	mov	x2, x20
	ldp	w3, w4, [sp, #16]               ; 8-byte Folded Reload
	mov	x5, x27
	blr	x22
	cbnz	x23, LBB0_7
; %bb.6:
	mov	x0, x25
	bl	_free
LBB0_7:
Lloh7:
	adrp	x8, _KSW_XSTART@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KSW_XSTART@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w27
	b.eq	LBB0_11
; %bb.8:
Lloh10:
	adrp	x8, _KSW_XSUBO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KSW_XSUBO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w8, w8, w27
	ldr	w23, [x19]
	and	w9, w27, #0xffff
	cmp	w8, #0
	ccmp	w23, w9, #0, ne
	b.lt	LBB0_11
; %bb.9:
	ldr	w8, [x19, #4]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	add	w25, w8, #1
	mov	x0, x25
	mov	x1, x21
	bl	_revseq
	ldr	w8, [x19, #8]
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	add	w27, w8, #1
	mov	x0, x27
	mov	x1, x20
	bl	_revseq
	mov	x0, x28
	mov	x1, x25
	mov	x2, x21
	ldr	w3, [sp, #12]                   ; 4-byte Folded Reload
	mov	x4, x26
	bl	_ksw_qinit
	mov	x26, x0
Lloh13:
	adrp	x8, _KSW_XSTOP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KSW_XSTOP@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w5, w23, w8
	add	x8, sp, #24
	mov	x1, x24
	mov	x2, x20
	ldp	w3, w4, [sp, #16]               ; 8-byte Folded Reload
	blr	x22
	ldp	w28, w22, [sp, #24]
	ldr	w24, [sp, #32]
	mov	x0, x25
	mov	x1, x21
	bl	_revseq
	mov	x0, x27
	mov	x1, x20
	bl	_revseq
	mov	x0, x26
	bl	_free
	cmp	w23, w28
	b.ne	LBB0_11
; %bb.10:
	ldp	w8, w9, [sp, #4]                ; 8-byte Folded Reload
	sub	w8, w8, w24
	sub	w9, w9, w22
	stp	w8, w9, [x19, #12]
LBB0_11:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_KSW_XBYTE,4,2                  ; @KSW_XBYTE
	.comm	_KSW_XSTART,4,2                 ; @KSW_XSTART
	.comm	_KSW_XSUBO,4,2                  ; @KSW_XSUBO
	.comm	_KSW_XSTOP,4,2                  ; @KSW_XSTOP
.subsections_via_symbols
