	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ewah_set                       ## -- Begin function ewah_set
	.p2align	4, 0x90
_ewah_set:                              ## @ewah_set
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	1(%rsi), %r12
	movq	_BITS_IN_EWORD@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	%r12, %rdi
	callq	_DIV_ROUND_UP
	movq	%rax, %rbx
	movq	(%r14), %rdi
	movq	(%r13), %rsi
	callq	_DIV_ROUND_UP
	movq	%rax, %r13
	xorl	%edi, %edi
	cmpq	%r15, (%r14)
	setbe	%dil
	callq	_assert
	movq	%r12, (%r14)
	subq	%r13, %rbx
	jne	LBB0_4
## %bb.1:
	movl	20(%r14), %edi
	callq	_rlw_get_literal_words
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	_BITS_IN_EWORD@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r15, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_13
## %bb.3:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_14
LBB0_4:
	cmpq	$2, %rbx
	jb	LBB0_6
## %bb.5:
	decq	%rbx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_add_empty_words
LBB0_6:
	movq	_BITS_IN_EWORD@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r15, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_10
## %bb.7:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_11
LBB0_8:
	movl	20(%r14), %ebx
	movl	%ebx, %edi
	callq	_rlw_get_running_len
	leaq	-1(%rax), %rsi
	movl	%ebx, %edi
	callq	_rlw_set_running_len
	movq	_BITS_IN_EWORD@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r15, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_17
## %bb.9:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rcx
	jmp	LBB0_18
LBB0_10:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_11:
	movl	$1, %esi
	movl	%edx, %ecx
	jmp	LBB0_12
LBB0_13:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_14:
	movq	8(%r14), %rax
	movslq	16(%r14), %rcx
	movq	-8(%rax,%rcx,8), %rsi
	btsq	%rdx, %rsi
	movq	%rsi, -8(%rax,%rcx,8)
	cmpq	$-1, %rsi
	je	LBB0_16
## %bb.15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	-1(%rcx), %rdx
	movl	%edx, 16(%r14)
	movq	$0, -8(%rax,%rcx,8)
	movl	20(%r14), %ebx
	movl	%ebx, %edi
	callq	_rlw_get_literal_words
	leaq	-1(%rax), %rsi
	movl	%ebx, %edi
	callq	_rlw_set_literal_words
	movq	%r14, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_add_empty_word                 ## TAILCALL
LBB0_17:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ecx
LBB0_18:
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $rcx
LBB0_12:
	shlq	%cl, %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_add_literal                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BITS_IN_EWORD,8,3              ## @BITS_IN_EWORD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ewah_set                       ; -- Begin function ewah_set
	.p2align	2
_ewah_set:                              ; @ewah_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	add	x21, x1, #1
Lloh0:
	adrp	x24, _BITS_IN_EWORD@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BITS_IN_EWORD@GOTPAGEOFF]
	ldr	x1, [x24]
	mov	x0, x21
	bl	_DIV_ROUND_UP
	mov	x22, x0
	ldr	x0, [x19]
	ldr	x1, [x24]
	bl	_DIV_ROUND_UP
	mov	x23, x0
	ldr	x8, [x19]
	cmp	x8, x20
	cset	w0, ls
	bl	_assert
	str	x21, [x19]
	subs	x8, x22, x23
	b.ne	LBB0_4
; %bb.1:
	ldr	w0, [x19, #20]
	bl	_rlw_get_literal_words
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x8, [x24]
	udiv	x9, x20, x8
	msub	x8, x9, x8, x20
	mov	w9, #1
	lsl	x10, x9, x8
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19, #16]
	sub	x9, x9, #1
	lsl	x11, x9, #3
	ldr	x12, [x8, x11]
	orr	x10, x12, x10
	str	x10, [x8, x11]
	cmn	x10, #1
	b.eq	LBB0_8
; %bb.3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	cmp	x8, #2
	b.lo	LBB0_7
; %bb.5:
	sub	x2, x8, #1
	mov	x0, x19
	mov	w1, #0
	bl	_add_empty_words
	b	LBB0_7
LBB0_6:
	ldr	w21, [x19, #20]
	mov	x0, x21
	bl	_rlw_get_running_len
	sub	x1, x0, #1
	mov	x0, x21
	bl	_rlw_set_running_len
LBB0_7:
	ldr	x8, [x24]
	udiv	x9, x20, x8
	msub	x8, x9, x8, x20
	mov	w9, #1
	lsl	x1, x9, x8
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_add_literal
LBB0_8:
	str	w9, [x19, #16]
	str	xzr, [x8, x9, lsl #3]
	ldr	w20, [x19, #20]
	mov	x0, x20
	bl	_rlw_get_literal_words
	sub	x1, x0, #1
	mov	x0, x20
	bl	_rlw_set_literal_words
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_add_empty_word
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BITS_IN_EWORD,8,3              ; @BITS_IN_EWORD
.subsections_via_symbols
