	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x86_code
_x86_code:                              ## @x86_code
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	cmpq	$5, %r8
	jae	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	jmp	LBB0_25
LBB0_2:
	movq	%r8, %r13
	movq	%rcx, %r15
	movl	%esi, %ebx
	movl	(%rdi), %ecx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %edx
	subl	%edx, %esi
	leal	-5(%rbx), %eax
	cmpl	$6, %esi
	cmovll	%edx, %eax
	addq	$-5, %r13
	leal	-1(%rbx), %edx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdi
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r13, %rdi
	ja	LBB0_24
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
	movl	(%r15,%rdi,4), %edx
	andl	$-2, %edx
	cmpl	$232, %edx
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	(%rdi,%rbx), %edx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx killed $rdx
	subl	%eax, %edx
	xorl	%r14d, %r14d
	cmpl	$5, %edx
	jg	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%edx, %edx
	jle	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	addl	%edi, %esi
	subl	%eax, %esi
	movl	%edx, %eax
	andl	$7, %eax
	cmpl	$7, %esi
	jb	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	andl	$-8, %edx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	$-8, %edx
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %r14d
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	andl	$119, %r14d
	addl	%r14d, %r14d
	decl	%eax
	jne	LBB0_14
	jmp	LBB0_15
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %r14d
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	16(%r15,%rdi,4), %r12d
	movl	%r12d, %edi
	callq	_Test86MSByte
	testq	%rax, %rax
	je	LBB0_22
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %eax
	sarl	%eax
	movl	%eax, %ecx
	andb	$7, %cl
	movzbl	%cl, %ecx
	movl	$232, %edx
	btl	%ecx, %edx
	jb	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$31, %r14d
	jg	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	shll	$24, %r12d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	8(%r15,%rsi,4), %edx
	movl	12(%r15,%rsi,4), %ecx
	shll	$16, %ecx
	orl	%r12d, %ecx
	shll	$8, %edx
	orl	%ecx, %edx
	orl	4(%r15,%rsi,4), %edx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	leal	5(%rsi), %ecx
	movl	$-5, %r13d
	subl	%esi, %r13d
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	movslq	%eax, %r15
	cmovnel	%ecx, %r13d
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edx, %ebx
	addl	%r13d, %ebx
	testl	%r14d, %r14d
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	leaq	_x86_code.MASK_TO_BIT_NUMBER(%rip), %rax
	movl	(%rax,%r15,4), %r12d
	shll	$3, %r12d
	movb	$24, %cl
	subb	%r12b, %cl
	movl	%ebx, %edi
	sarl	%cl, %edi
	callq	_Test86MSByte
	negb	%r12b
	movl	$-1, %edx
	movl	%r12d, %ecx
	shll	%cl, %edx
	xorl	%ebx, %edx
	notl	%edx
	testq	%rax, %rax
	jne	LBB0_19
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %eax
	shll	$7, %eax
	sarl	$31, %eax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, 16(%r15,%rdi,4)
	movl	%ebx, %eax
	sarl	$16, %eax
	movl	%eax, 12(%r15,%rdi,4)
	movl	%ebx, %eax
	sarl	$8, %eax
	movl	%eax, 8(%r15,%rdi,4)
	movl	%ebx, 4(%r15,%rdi,4)
	addq	$5, %rdi
	xorl	%ecx, %ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %r15
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	incq	%r13
	movl	%r12d, %edi
	callq	_Test86MSByte
	movq	%r13, %rdi
	movq	%r15, %r13
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	shll	$4, %ecx
	orl	%r14d, %ecx
	orl	$1, %ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	jmp	LBB0_23
LBB0_24:
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	movl	%eax, 4(%rdx)
LBB0_25:
	movq	%rdi, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @x86_code.MASK_TO_BIT_NUMBER
_x86_code.MASK_TO_BIT_NUMBER:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3

	.no_dead_strip	_x86_code
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function x86_code
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_x86_code:                              ; @x86_code
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	str	w2, [sp, #36]                   ; 4-byte Folded Spill
	subs	x27, x4, #5
	b.hs	LBB0_2
; %bb.1:
	mov	x19, #0
	b	LBB0_19
LBB0_2:
	mov	x20, x3
	mov	x21, x1
	mov	x19, #0
	ldp	w26, w8, [x0]
	str	x0, [sp]                        ; 8-byte Folded Spill
	sub	w9, w1, w8
	sub	w10, w1, #5
	cmp	w9, #5
	csel	w8, w10, w8, gt
	mov	w28, #17
Lloh0:
	adrp	x9, lCPI0_0@PAGE
Lloh1:
	ldr	d8, [x9, lCPI0_0@PAGEOFF]
	mov	w22, #238
	str	x3, [sp, #24]                   ; 8-byte Folded Spill
	str	w1, [sp, #20]                   ; 4-byte Folded Spill
	str	x27, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x19, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x19, x27
	b.hi	LBB0_18
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	ldr	w9, [x20, x19, lsl #2]
	and	w9, w9, #0xfffffffe
	cmp	w9, #232
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w23, w19, w21
	sub	w8, w23, w8
	cmp	w8, #5
	b.le	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w26, #0
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #1
	b.lt	LBB0_10
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	w26, w22, w26, lsl #1
	subs	w8, w8, #1
	b.ne	LBB0_9
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x19, #4
	ldr	w24, [x20, x25, lsl #2]
	mov	x0, x24
	bl	_Test86MSByte
	cbz	x0, LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	asr	w8, w26, #1
	and	w9, w8, #0x7
	mov	w10, #232
	lsr	x9, x10, x9
	tbnz	w9, #0, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w26, #31
	b.gt	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x28, x20, x19, lsl #2
	ldp	w9, w10, [x28, #8]!
	lsl	w10, w10, #16
	orr	w10, w10, w24, lsl #24
	orr	w9, w10, w9, lsl #8
	add	x10, x19, #1
	str	x10, [sp, #40]                  ; 8-byte Folded Spill
	ldr	w10, [x20, x10, lsl #2]
	orr	w9, w9, w10
	sxtw	x21, w8
	add	w8, w23, #5
	mov	w10, #-5
	sub	w10, w10, w23
	ldr	w11, [sp, #36]                  ; 4-byte Folded Reload
	cmp	w11, #0
	csel	w24, w10, w8, eq
LBB0_14:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w27, w9, w24
	cbz	w26, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
Lloh2:
	adrp	x8, _x86_code.MASK_TO_BIT_NUMBER@PAGE
Lloh3:
	add	x8, x8, _x86_code.MASK_TO_BIT_NUMBER@PAGEOFF
	ldr	w8, [x8, x21, lsl #2]
	lsl	w20, w8, #3
	mov	w8, #24
	sub	w8, w8, w20
	asr	w0, w27, w8
	bl	_Test86MSByte
	neg	w8, w20
	mov	w9, #-1
	lsl	w8, w9, w8
	eon	w9, w27, w8
	cbnz	x0, LBB0_14
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w26, #0
	sbfx	w8, w27, #24, #1
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
	str	w8, [x20, x25, lsl #2]
	dup.2s	v0, w27
	sshl.2s	v0, v0, v8
	str	d0, [x28]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	w27, [x20, x8, lsl #2]
	add	x19, x19, #5
	mov	x8, x23
	ldr	w21, [sp, #20]                  ; 4-byte Folded Reload
	ldr	x27, [sp, #8]                   ; 8-byte Folded Reload
	mov	w28, #17
	b	LBB0_4
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x19, #1
	mov	x0, x24
	bl	_Test86MSByte
	cmp	x0, #0
	csinc	w8, w28, wzr, ne
	orr	w26, w8, w26
	mov	x8, x23
	b	LBB0_4
LBB0_18:
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	stp	w26, w8, [x9]
LBB0_19:
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @x86_code.MASK_TO_BIT_NUMBER
_x86_code.MASK_TO_BIT_NUMBER:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3

	.no_dead_strip	_x86_code
.subsections_via_symbols
