	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function norm8
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	4                               ## 0x4
	.byte	8                               ## 0x8
	.byte	12                              ## 0xc
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_1:
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_2:
	.long	127                             ## 0x7f
	.long	127                             ## 0x7f
	.long	127                             ## 0x7f
	.long	127                             ## 0x7f
LCPI0_3:
	.long	4294967168                      ## 0xffffff80
	.long	4294967168                      ## 0xffffff80
	.long	4294967168                      ## 0xffffff80
	.long	4294967168                      ## 0xffffff80
LCPI0_4:
	.long	4294967039                      ## 0xfffffeff
	.long	4294967039                      ## 0xfffffeff
	.long	4294967039                      ## 0xfffffeff
	.long	4294967039                      ## 0xfffffeff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_norm8:                                 ## @norm8
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_TRACE
	testl	%r14d, %r14d
	je	LBB0_34
## %bb.1:
	leal	-1(%r14), %r8d
	cmpl	$3, %r8d
	jb	LBB0_2
## %bb.3:
	leaq	(%r15,%r8,4), %rax
	addq	$4, %rax
	cmpq	%rbx, %rax
	jbe	LBB0_5
## %bb.4:
	leaq	(%rbx,%r8), %rax
	incq	%rax
	cmpq	%r15, %rax
	jbe	LBB0_5
LBB0_2:
	movq	%rbx, %rax
	movq	%r15, %rcx
LBB0_16:
	testb	$1, %r14b
	jne	LBB0_18
## %bb.17:
	movl	%r14d, %edx
	cmpl	$1, %r14d
	je	LBB0_34
	jmp	LBB0_24
LBB0_18:
	movb	(%rcx), %dl
	addb	$-128, %dl
	movb	%dl, (%rax)
	movl	(%rcx), %esi
	cmpl	$-128, %esi
	jge	LBB0_20
## %bb.19:
	xorl	%edx, %edx
	jmp	LBB0_21
LBB0_5:
	incq	%r8
	movq	%r8, %rsi
	andq	$-4, %rsi
	subl	%esi, %r14d
	leaq	(%rbx,%rsi), %rax
	leaq	(%r15,%rsi,4), %rcx
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = <0,4,8,12,u,u,u,u,u,u,u,u,u,u,u,u>
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = <128,128,128,128,u,u,u,u,u,u,u,u,u,u,u,u>
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [127,127,127,127]
	movdqa	LCPI0_3(%rip), %xmm3            ## xmm3 = [4294967168,4294967168,4294967168,4294967168]
	movdqa	LCPI0_4(%rip), %xmm4            ## xmm4 = [4294967039,4294967039,4294967039,4294967039]
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$4, %rdi
	cmpq	%rdi, %rsi
	je	LBB0_15
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%r15,%rdi,4), %xmm7
	movdqa	%xmm7, %xmm5
	pshufb	%xmm0, %xmm5
	pxor	%xmm1, %xmm5
	movd	%xmm5, (%rbx,%rdi)
	movdqa	%xmm7, %xmm5
	pcmpgtd	%xmm2, %xmm5
	packssdw	%xmm5, %xmm5
	packsswb	%xmm5, %xmm5
	paddd	%xmm3, %xmm7
	movdqa	%xmm7, %xmm6
	pminud	%xmm4, %xmm6
	pcmpeqd	%xmm7, %xmm6
	movd	%xmm6, %edx
	testb	$1, %dl
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	pextrb	$0, %xmm5, (%rbx,%rdi)
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	pextrb	$4, %xmm6, %edx
	testb	$1, %dl
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	pextrb	$1, %xmm5, 1(%rbx,%rdi)
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	pextrb	$8, %xmm6, %edx
	testb	$1, %dl
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	pextrb	$2, %xmm5, 2(%rbx,%rdi)
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	pextrb	$12, %xmm6, %edx
	testb	$1, %dl
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	pextrb	$3, %xmm5, 3(%rbx,%rdi)
	jmp	LBB0_14
LBB0_15:
	cmpq	%rsi, %r8
	jne	LBB0_16
	jmp	LBB0_34
LBB0_20:
	movb	$-1, %dl
	cmpl	$128, %esi
	jl	LBB0_22
LBB0_21:
	movb	%dl, (%rax)
LBB0_22:
	leal	-1(%r14), %edx
	incq	%rax
	addq	$4, %rcx
	cmpl	$1, %r14d
	jne	LBB0_24
LBB0_34:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movl	%edx, %edx
	xorl	%esi, %esi
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_25 Depth=1
	xorl	%edi, %edi
LBB0_32:                                ##   in Loop: Header=BB0_25 Depth=1
	movb	%dil, 1(%rax,%rsi)
LBB0_33:                                ##   in Loop: Header=BB0_25 Depth=1
	addq	$2, %rsi
	cmpl	%esi, %edx
	je	LBB0_34
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx,%rsi,4), %ebx
	addb	$-128, %bl
	movb	%bl, (%rax,%rsi)
	movl	(%rcx,%rsi,4), %ebx
	cmpl	$-128, %ebx
	jge	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	xorl	%edi, %edi
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_25 Depth=1
	movb	$-1, %dil
	cmpl	$128, %ebx
	jl	LBB0_29
LBB0_28:                                ##   in Loop: Header=BB0_25 Depth=1
	movb	%dil, (%rax,%rsi)
LBB0_29:                                ##   in Loop: Header=BB0_25 Depth=1
	movzbl	4(%rcx,%rsi,4), %ebx
	addb	$-128, %bl
	movb	%bl, 1(%rax,%rsi)
	movl	4(%rcx,%rsi,4), %ebx
	cmpl	$-128, %ebx
	jl	LBB0_30
## %bb.31:                              ##   in Loop: Header=BB0_25 Depth=1
	movb	$-1, %dil
	cmpl	$128, %ebx
	jge	LBB0_32
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%p - %p %d\n"

	.no_dead_strip	_norm8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function norm8
_norm8:                                 ; @norm8
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	bl	_TRACE
	cbz	w19, LBB0_16
; %bb.1:
	sub	w8, w19, #1
	cmp	w8, #3
	b.lo	LBB0_4
; %bb.2:
	add	x9, x8, #1
	add	x10, x20, x9, lsl #2
	cmp	x10, x21
	b.ls	LBB0_5
; %bb.3:
	add	x9, x21, x9
	cmp	x9, x20
	b.ls	LBB0_5
LBB0_4:
	mov	x8, x21
	mov	x9, x20
	b	LBB0_20
LBB0_5:
	add	x10, x8, #1
	and	x11, x10, #0x1fffffffc
	sub	w19, w19, w11
	add	x8, x21, x11
	add	x9, x20, x11, lsl #2
	add	x12, x21, #1
	movi.4h	v0, #128
	movi.4s	v1, #127
	mvni.4s	v2, #127
	movi.2d	v3, #0xffffff00ffffff00
	mov	x13, x11
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x12, x12, #4
	add	x20, x20, #16
	subs	x13, x13, #4
	b.eq	LBB0_15
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	q5, [x20]
	xtn.4h	v4, v5
	eor.8b	v4, v4, v0
	xtn.8b	v4, v4
	stur	s4, [x12, #-1]
	cmgt.4s	v4, v5, v1
	xtn.4h	v4, v4
	add.4s	v5, v5, v2
	cmhi.4s	v5, v3, v5
	xtn.4h	v5, v5
	umov.h	w14, v5[0]
	tbnz	w14, #0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	umov.h	w14, v5[1]
	tbnz	w14, #0, LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	umov.h	w14, v5[2]
	tbnz	w14, #0, LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	umov.h	w14, v5[3]
	tbz	w14, #0, LBB0_6
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	umov.h	w14, v4[0]
	sturb	w14, [x12, #-1]
	umov.h	w14, v5[1]
	tbz	w14, #0, LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	umov.h	w14, v4[1]
	strb	w14, [x12]
	umov.h	w14, v5[2]
	tbz	w14, #0, LBB0_10
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	umov.h	w14, v4[2]
	strb	w14, [x12, #1]
	umov.h	w14, v5[3]
	tbz	w14, #0, LBB0_6
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	umov.h	w14, v4[3]
	strb	w14, [x12, #2]
	b	LBB0_6
LBB0_15:
	cmp	x10, x11
	b.ne	LBB0_20
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_17:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	w10, #0
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	strb	w10, [x8]
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x8, x8, #1
	add	x9, x9, #4
	cbz	w19, LBB0_16
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	sub	w19, w19, #1
	ldrb	w10, [x9]
	eor	w10, w10, #0x80
	strb	w10, [x8]
	ldr	w10, [x9]
	cmn	w10, #128
	b.lt	LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	cmp	w10, #128
	b.lt	LBB0_19
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	w10, #255
	b	LBB0_18
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p - %p %d\n"

	.no_dead_strip	_norm8
.subsections_via_symbols
