	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function repaper_all_pixels
_repaper_all_pixels:                    ## @repaper_all_pixels
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %eax
	leal	7(%rax), %r14d
	cmpl	$15, %r14d
	jae	LBB0_1
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r9d, %r12d
	movq	%rdx, %r13
	movq	%rsi, %rbx
	testl	%eax, %eax
	cmovnsl	%eax, %r14d
	sarl	$3, %r14d
	addl	$-128, %r12d
	jmp	LBB0_2
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	orl	$43690, %r15d                   ## imm = 0xAAAA
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	$21845, %r15d                   ## imm = 0x5555
	andl	%eax, %r15d
	xorl	$21845, %r15d                   ## imm = 0x5555
	movslq	%r15d, %rax
	sarl	$8, %r15d
	movslq	%r15d, %rcx
	movq	(%rbx), %rdx
	leaq	8(%rdx), %rsi
	movq	%rsi, (%rbx)
	movq	%rcx, (%rdx)
	movq	(%rbx), %rcx
	leaq	8(%rcx), %rdx
	movq	%rdx, (%rbx)
	movq	%rax, (%rcx)
	testl	%r14d, %r14d
	je	LBB0_15
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r13, %r13
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%r14d
	movq	(%r13,%r14,8), %rdi
	callq	_repaper_interleave_bits
	movl	%eax, %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax,%r14,8), %rdi
	callq	_repaper_interleave_bits
                                        ## kill: def $eax killed $eax def $rax
	xorl	%r15d, %eax
	andl	$21845, %eax                    ## imm = 0x5555
	leal	(%rax,%rax,2), %eax
	cmpl	$3, %r12d
	jbe	LBB0_7
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	leaq	8(%rax), %rcx
	movq	%rcx, (%rbx)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rax)
	movq	(%rbx), %rax
	leaq	8(%rax), %rcx
	movq	%rcx, (%rbx)
	movq	%rdx, (%rax)
	decl	%r14d
	testl	%r14d, %r14d
	jne	LBB0_2
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$65535, %eax                    ## imm = 0xFFFF
	cmpl	$3, %r12d
	ja	LBB0_12
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%r12,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	$21845, %r15d                   ## imm = 0x5555
	addl	$21845, %r15d                   ## imm = 0x5555
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	%r15d, %r15d
	andl	$-21846, %r15d                  ## imm = 0xAAAA
	xorl	$65535, %r15d                   ## imm = 0xFFFF
	jmp	LBB0_12
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	andl	$-43691, %r15d                  ## imm = 0xFFFF5555
	xorl	$65535, %r15d                   ## imm = 0xFFFF
	jmp	LBB0_12
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_repaper_all_pixels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function repaper_all_pixels
_repaper_all_pixels:                    ; @repaper_all_pixels
	.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
	ldr	w8, [x0]
	add	w9, w8, #7
	cmp	w9, #15
	b.hs	LBB0_2
LBB0_1:
	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_2:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w24, w8, #3
	sub	w25, w5, #128
	mov	w26, #21845
	mov	w27, #-43691
Lloh0:
	adrp	x28, lJTI0_0@PAGE
Lloh1:
	add	x28, x28, lJTI0_0@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w9, #43690
	orr	w23, w23, w9
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	and	w9, w23, w8
	bic	w8, w26, w8
	orr	w8, w9, w8
	lsr	w9, w8, #8
	ldr	x10, [x22]
	add	x11, x10, #8
	str	x11, [x22]
	str	x9, [x10]
	ldr	x9, [x22]
	add	x10, x9, #8
	str	x10, [x22]
	str	x8, [x9]
	cbz	w24, LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x21, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w24, w24, #1
	ldr	x0, [x21, w24, uxtw #3]
	bl	_repaper_interleave_bits
	mov	x23, x0
	cbz	x19, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, x24, lsl #3]
	bl	_repaper_interleave_bits
	eor	w8, w0, w23
	and	w8, w8, w26
	orr	w8, w8, w8, lsl #1
	cmp	w25, #3
	b.ls	LBB0_10
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22]
	add	x9, x8, #8
	str	x9, [x22]
	str	x20, [x8]
	ldr	x8, [x22]
	add	x9, x8, #8
	str	x9, [x22]
	str	x20, [x8]
	sub	w24, w24, #1
	cbnz	w24, LBB0_5
	b	LBB0_1
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #65535
	cmp	w25, #3
	b.hi	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x9, LBB0_3
	ldrb	w10, [x28, x25]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	eor	w9, w23, w26
	add	w23, w9, w26
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w9, #-21846
	and	w9, w9, w23, lsl #1
	eor	w23, w9, #0xffff
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w9, w23, w27
	eor	w23, w9, #0xffff
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
                                        ; -- End function
	.no_dead_strip	_repaper_all_pixels
.subsections_via_symbols
