	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ewah_add_dirty_words           ## -- Begin function ewah_add_dirty_words
	.p2align	4, 0x90
_ewah_add_dirty_words:                  ## @ewah_add_dirty_words
	.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
	movl	%ecx, %ebx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_20 Depth 2
	movl	32(%r12), %edi
	callq	_rlw_get_literal_words
	movq	%rax, %r14
	movq	_RLW_LARGEST_LITERAL_COUNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	subq	%r14, %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_min_size
	movq	%rax, %r13
	movl	32(%r12), %edi
	addq	%rax, %r14
	movq	%r14, %rsi
	callq	_rlw_set_literal_words
	movq	(%r12), %rax
	addq	%r13, %rax
	cmpq	8(%r12), %rax
	jb	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	(%rax,%rax,2), %rsi
	shrq	%rsi
	movq	%r12, %rdi
	callq	_buffer_grow
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	testq	%r13, %r13
	pcmpeqd	%xmm2, %xmm2
	je	LBB0_23
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rax
	movq	24(%r12), %r9
	cmpq	$8, %r13
	jb	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	(%r9,%rax,4), %rcx
	subq	%r15, %rcx
	cmpq	$32, %rcx
	jae	LBB0_10
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edx, %edx
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rdx, %rsi
	notq	%rsi
	addq	%r13, %rsi
	movq	%r13, %rcx
	andq	$3, %rcx
	je	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15,%rdx,4), %edi
	notl	%edi
	movl	%edi, (%r9,%rax,4)
	incq	%rax
	incq	%rdx
	decq	%rcx
	jne	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$3, %rsi
	jb	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %r8d
	leaq	(%r9,%rax,4), %rcx
	addq	$12, %rcx
	movq	%r13, %rsi
	subq	%rdx, %rsi
	leaq	(%r15,%rdx,4), %rdi
	addq	$12, %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-12(%rdi,%rdx,4), %ebx
	notl	%ebx
	movl	%ebx, -12(%rcx,%rdx,4)
	movl	-8(%rdi,%rdx,4), %ebx
	notl	%ebx
	movl	%ebx, -8(%rcx,%rdx,4)
	movl	-4(%rdi,%rdx,4), %ebx
	notl	%ebx
	movl	%ebx, -4(%rcx,%rdx,4)
	movl	(%rdi,%rdx,4), %ebx
	notl	%ebx
	movl	%ebx, (%rcx,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	addq	%rdx, %rax
	movl	%r8d, %ebx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rdi
	shlq	$2, %rdi
	addq	24(%r12), %rdi
	leaq	(,%r13,4), %rdx
	movq	%r15, %rsi
	callq	_memcpy
	movq	(%r12), %rax
	addq	%r13, %rax
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, (%r12)
LBB0_23:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_BITS_IN_EWORD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	imulq	%r13, %rax
	addq	%rax, 16(%r12)
	subq	%r13, -48(%rbp)                 ## 8-byte Folded Spill
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_buffer_push_rlw
	leaq	(%r15,%r13,4), %r15
	jmp	LBB0_1
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdx
	andq	$-8, %rdx
	leaq	-8(%rdx), %rcx
	movq	%rcx, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rcx, %rcx
	je	LBB0_25
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r8, %rsi
	andq	$-2, %rsi
	leaq	(%r9,%rax,4), %rcx
	addq	$48, %rcx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	(%r15,%rdi,4), %xmm0
	movdqu	16(%r15,%rdi,4), %xmm1
	pxor	%xmm2, %xmm0
	pxor	%xmm2, %xmm1
	movdqu	%xmm0, -48(%rcx,%rdi,4)
	movdqu	%xmm1, -32(%rcx,%rdi,4)
	movdqu	32(%r15,%rdi,4), %xmm0
	movdqu	48(%r15,%rdi,4), %xmm1
	pxor	%xmm2, %xmm0
	pxor	%xmm2, %xmm1
	movdqu	%xmm0, -16(%rcx,%rdi,4)
	movdqu	%xmm1, (%rcx,%rdi,4)
	addq	$16, %rdi
	addq	$-2, %rsi
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	testb	$1, %r8b
	je	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	(%rax,%rdi), %rcx
	movdqu	(%r15,%rdi,4), %xmm0
	movdqu	16(%r15,%rdi,4), %xmm1
	pxor	%xmm2, %xmm0
	pxor	%xmm2, %xmm1
	movdqu	%xmm0, (%r9,%rcx,4)
	movdqu	%xmm1, 16(%r9,%rcx,4)
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	addq	%rdx, %rax
	cmpq	%rdx, %r13
	je	LBB0_22
	jmp	LBB0_16
LBB0_25:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edi, %edi
	testb	$1, %r8b
	jne	LBB0_14
	jmp	LBB0_15
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RLW_LARGEST_LITERAL_COUNT,8,3  ## @RLW_LARGEST_LITERAL_COUNT
	.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_add_dirty_words           ; -- Begin function ewah_add_dirty_words
	.p2align	2
_ewah_add_dirty_words:                  ; @ewah_add_dirty_words
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x25, _RLW_LARGEST_LITERAL_COUNT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _RLW_LARGEST_LITERAL_COUNT@GOTPAGEOFF]
Lloh2:
	adrp	x26, _BITS_IN_EWORD@GOTPAGE
Lloh3:
	ldr	x26, [x26, _BITS_IN_EWORD@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w0, [x22, #32]
	bl	_rlw_get_literal_words
	mov	x24, x0
	ldr	x8, [x25]
	sub	x1, x8, x0
	mov	x0, x20
	bl	_min_size
	mov	x23, x0
	ldr	w0, [x22, #32]
	add	x1, x23, x24
	bl	_rlw_set_literal_words
	ldp	x8, x9, [x22]
	add	x8, x8, x23
	cmp	x8, x9
	b.lo	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x8, x8, x8, lsl #1
	lsr	x1, x8, #1
	mov	x0, x22
	bl	_buffer_grow
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	cbz	w19, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	x23, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x22, #24]
	ldr	x9, [x22]
	cmp	x23, #16
	b.lo	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x11, x8, x9, lsl #2
	sub	x10, x11, x21
	cmp	x10, #64
	b.hs	LBB0_14
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x10, #0
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	sub	x11, x23, x10
	add	x10, x21, x10, lsl #2
	mov	x12, x9
LBB0_9:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x10], #4
	mvn	w13, w9
	add	x9, x12, #1
	str	w13, [x8, x12, lsl #2]
	mov	x12, x9
	subs	x11, x11, #1
	b.ne	LBB0_9
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x22, #24]
	ldr	x9, [x22]
	add	x0, x8, x9, lsl #2
	lsl	x2, x23, #2
	mov	x1, x21
	bl	_memcpy
	ldr	x8, [x22]
	add	x9, x8, x23
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	str	x9, [x22]
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x26]
	ldr	x9, [x22, #16]
	madd	x8, x8, x23, x9
	str	x8, [x22, #16]
	subs	x20, x20, x23
	b.eq	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	mov	w1, #0
	bl	_buffer_push_rlw
	add	x21, x21, x23, lsl #2
	b	LBB0_1
LBB0_14:                                ;   in Loop: Header=BB0_1 Depth=1
	and	x10, x23, #0xfffffffffffffff0
	add	x9, x9, x10
	add	x11, x11, #32
	add	x12, x21, #32
	mov	x13, x10
LBB0_15:                                ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	mvn.16b	v0, v0
	mvn.16b	v1, v1
	mvn.16b	v2, v2
	mvn.16b	v3, v3
	stp	q0, q1, [x11, #-32]
	stp	q2, q3, [x11], #64
	subs	x13, x13, #16
	b.ne	LBB0_15
; %bb.16:                               ;   in Loop: Header=BB0_1 Depth=1
	cmp	x23, x10
	b.eq	LBB0_11
	b	LBB0_8
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RLW_LARGEST_LITERAL_COUNT,8,3  ; @RLW_LARGEST_LITERAL_COUNT
	.comm	_BITS_IN_EWORD,8,3              ; @BITS_IN_EWORD
.subsections_via_symbols
