	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x86_Convert                    ## -- Begin function x86_Convert
	.p2align	4, 0x90
_x86_Convert:                           ## @x86_Convert
	.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
                                        ## kill: def $edx killed $edx def $rdx
	xorl	%ebx, %ebx
	cmpl	$5, %esi
	jl	LBB0_27
## %bb.1:
	movq	%rcx, %r12
	movq	%rdi, %r15
	movl	(%rcx), %r14d
	andl	$7, %r14d
	movl	%esi, %eax
	leaq	(%rdi,%rax,4), %rsi
	addq	$-16, %rsi
	movl	$-1, %eax
	cmpq	%rdi, %rsi
	jbe	LBB0_25
## %bb.2:
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	addl	$5, %edx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdx
	negq	%rdx
	movl	$-1, %r13d
	movl	$254, %edi
	movq	%r15, %rbx
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	movl	%r13d, %eax
	leaq	(%rdx,%rbx), %r13
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %ecx
	andl	%edi, %ecx
	cmpl	$232, %ecx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	addq	$4, %rbx
	addq	$4, %r13
	cmpq	%rsi, %rbx
	jb	LBB0_4
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	shrq	$2, %r13
	movl	%r13d, %ecx
	subl	%eax, %ecx
	cmpl	$3, %ecx
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	decb	%cl
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r14d
                                        ## kill: def $r14d killed $r14d killed $r14 def $r14
	movl	$0, %eax
	andl	$7, %r14d
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %eax
	movq	_kMaskToAllowedStatus@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rcx,%rax,4)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_kMaskToBitNumber@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rcx,%rax,4), %rax
	shlq	$2, %rax
	movq	%rbx, %rcx
	subq	%rax, %rcx
	movl	16(%rcx), %edi
	callq	_Test86MSByte
	movl	$254, %edi
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	andl	$3, %r14d
	addl	%r14d, %r14d
	incl	%r14d
	movl	$1, %eax
	jmp	LBB0_23
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %eax
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %edi
	callq	_Test86MSByte
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %eax
	shll	$24, %eax
	movl	8(%rbx), %r14d
	movl	12(%rbx), %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	shll	$8, %r14d
	orl	%ecx, %r14d
	orl	4(%rbx), %r14d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addl	%r13d, %eax
	movl	%eax, %edx
	negl	%edx
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	cmovnel	%eax, %edx
	addl	%edx, %r14d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	movq	_kMaskToBitNumber@GOTPCREL(%rip), %rcx
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%eax, %edx
	movq	(%rcx), %rax
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movl	(%rax,%rdx,4), %r15d
	shll	$3, %r15d
	movb	$24, %cl
	subb	%r15b, %cl
	movl	%r14d, %edi
	sarl	%cl, %edi
	callq	_Test86MSByte
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_kMaskToBitNumber@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	negb	%r15b
	movl	$-1, %r12d
	movl	%r15d, %ecx
	shll	%cl, %r12d
	xorl	%r14d, %r12d
	notl	%r12d
	addl	-56(%rbp), %r12d                ## 4-byte Folded Reload
	movq	(%rdx), %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	(%rax,%rcx,4), %r15d
	shll	$3, %r15d
	movb	$24, %cl
	subb	%r15b, %cl
	movl	%r12d, %edi
	sarl	%cl, %edi
	callq	_Test86MSByte
	movq	_kMaskToBitNumber@GOTPCREL(%rip), %rdx
	movl	%r12d, %r14d
	testq	%rax, %rax
	jne	LBB0_17
	jmp	LBB0_21
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	andl	$3, %r14d
	addl	%r14d, %r14d
	incl	%r14d
	movl	$1, %eax
	jmp	LBB0_22
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %r12d
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %eax
	shll	$7, %eax
	sarl	$31, %eax
	movl	%eax, 16(%rbx)
	movl	%r12d, %eax
	sarl	$16, %eax
	movl	%eax, 12(%rbx)
	movl	%r12d, %eax
	sarl	$8, %eax
	movl	%eax, 8(%rbx)
	movl	%r12d, 4(%rbx)
	movl	$5, %eax
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$254, %edi
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	%r13d, %eax
	cltq
	leaq	(%r15,%rax,4), %rbx
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rsi, %rbx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	jb	LBB0_3
## %bb.24:
	movl	%r13d, %eax
	jmp	LBB0_26
LBB0_25:
	movq	%r15, %rbx
LBB0_26:
	subq	%r15, %rbx
	shrq	$2, %rbx
	movl	%ebx, %edx
	subl	%eax, %edx
	leal	-1(%rdx), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r14d
	andl	$7, %r14d
	xorl	%eax, %eax
	cmpl	$4, %edx
	cmovll	%r14d, %eax
	movl	%eax, (%r12)
LBB0_27:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kMaskToBitNumber,8,3           ## @kMaskToBitNumber
	.comm	_kMaskToAllowedStatus,8,3       ## @kMaskToAllowedStatus
.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_Convert
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_x86_Convert
	.p2align	2
_x86_Convert:                           ; @x86_Convert
	.cfi_startproc
; %bb.0:
	cmp	w1, #5
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_2:
	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
	mov	x19, x3
	mov	x20, x0
	ldr	w8, [x3]
	and	w12, w8, #0x7
	add	x8, x0, w1, uxtw #2
	sub	x23, x8, #16
	cmp	x23, x0
	b.ls	LBB0_22
; %bb.3:
	mov	x21, x4
	add	w24, w2, #5
	neg	x27, x20
Lloh0:
	adrp	x28, _kMaskToBitNumber@GOTPAGE
Lloh1:
	ldr	x28, [x28, _kMaskToBitNumber@GOTPAGEOFF]
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	mov	x9, x20
	mov	w25, #-1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	mov	x8, x25
	add	x10, x27, x9
	add	x26, x9, #16
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w9, [x26, #-16]
	and	w9, w9, #0xfe
	cmp	w9, #232
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x10, x10, #4
	add	x9, x26, #4
	sub	x11, x26, #12
	mov	x26, x9
	cmp	x11, x23
	b.lo	LBB0_5
	b	LBB0_23
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsr	x25, x10, #2
	sub	w8, w25, w8
	cmp	w8, #3
	b.le	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w22, #0
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w8, #1
	lsl	w8, w12, w8
	ands	w22, w8, #0x7
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh4:
	adrp	x8, _kMaskToAllowedStatus@GOTPAGE
Lloh5:
	ldr	x8, [x8, _kMaskToAllowedStatus@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	w8, [x8, w22, uxtw #2]
	cbz	w8, LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28]
	ldrsw	x8, [x8, x22, lsl #2]
	sub	x8, x26, x8, lsl #2
	ldr	w0, [x8]
	bl	_Test86MSByte
	cbnz	x0, LBB0_17
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26]
	bl	_Test86MSByte
	cbz	x0, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	stp	x22, x27, [sp, #8]              ; 16-byte Folded Spill
	ldp	w9, w8, [x26, #-4]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
	ldp	w10, w9, [x26, #-12]
	orr	w8, w8, w9, lsl #8
	orr	w8, w8, w10
	str	w24, [sp, #28]                  ; 4-byte Folded Spill
	add	w9, w24, w25
	cmp	w21, #0
	cneg	w27, w9, eq
	add	w28, w8, w27
	mov	w9, #24
	str	w21, [sp, #44]                  ; 4-byte Folded Spill
	str	x19, [sp, #32]                  ; 8-byte Folded Spill
	cbz	w22, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh7:
	adrp	x8, _kMaskToBitNumber@GOTPAGE
Lloh8:
	ldr	x8, [x8, _kMaskToBitNumber@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	w8, [x8, w22, uxtw #2]
	lsl	w24, w8, #3
	sub	w8, w9, w24
	asr	w0, w28, w8
	bl	_Test86MSByte
	cbz	x0, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, w22
	mov	w19, #-1
Lloh10:
	adrp	x22, _kMaskToBitNumber@GOTPAGE
Lloh11:
	ldr	x22, [x22, _kMaskToBitNumber@GOTPAGEOFF]
	mov	w9, #24
LBB0_16:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	neg	w8, w24
	lsl	w8, w19, w8
	eon	w8, w28, w8
	add	w28, w27, w8
	ldr	x8, [x22]
	ldr	w8, [x8, x21, lsl #2]
	lsl	w24, w8, #3
	sub	w8, w9, w24
	asr	w0, w28, w8
	bl	_Test86MSByte
	mov	w9, #24
	cbnz	x0, LBB0_16
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #1
	bfi	w9, w22, #1, #2
	mov	w8, #1
	mov	x12, x9
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh12:
	adrp	x22, _kMaskToBitNumber@GOTPAGE
Lloh13:
	ldr	x22, [x22, _kMaskToBitNumber@GOTPAGEOFF]
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	sbfx	w8, w28, #24, #1
	str	w8, [x26]
	dup.2s	v0, w28
	sshl.2s	v0, v0, v8
	stur	d0, [x26, #-8]
	stur	w28, [x26, #-12]
	mov	w8, #5
	ldr	w21, [sp, #44]                  ; 4-byte Folded Reload
	ldr	x19, [sp, #32]                  ; 8-byte Folded Reload
	ldr	w24, [sp, #28]                  ; 4-byte Folded Reload
	ldp	x12, x27, [sp, #8]              ; 16-byte Folded Reload
	mov	x28, x22
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w25, w8
	lsl	x8, x8, #32
	add	x9, x20, x8, asr #30
	cmp	x9, x23
	b.lo	LBB0_4
; %bb.21:
	mov	x8, x25
	b	LBB0_24
LBB0_22:
	mov	w8, #-1
	mov	x9, x20
	b	LBB0_24
LBB0_23:
	sub	x9, x9, #16
LBB0_24:
	sub	x9, x9, x20
	lsr	x0, x9, #2
	sub	w8, w0, w8
	sub	w9, w8, #1
	lsl	w9, w12, w9
	and	w9, w9, #0x7
	cmp	w8, #3
	csel	w8, wzr, w9, gt
	str	w8, [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
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_kMaskToBitNumber,8,3           ; @kMaskToBitNumber
	.comm	_kMaskToAllowedStatus,8,3       ; @kMaskToAllowedStatus
.subsections_via_symbols
