	.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
	cmpq	$5, %rsi
	jae	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_26
LBB0_2:
	movq	%rcx, %r14
	movq	%rdi, %r13
	movl	(%rcx), %r15d
	andl	$7, %r15d
	leaq	(%rdi,%rsi,4), %rsi
	addq	$-16, %rsi
	movq	$-1, %r12
	cmpq	%rdi, %rsi
	jbe	LBB0_23
## %bb.3:
	movl	%r8d, -68(%rbp)                 ## 4-byte Spill
	addl	$5, %edx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %r8
	negq	%r8
	movq	$-1, %r12
	movl	$254, %edi
	movq	%r13, %rbx
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	movq	%r12, %rax
	leaq	(%r8,%rbx), %r12
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %ecx
	andl	%edi, %ecx
	cmpl	$232, %ecx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	addq	$4, %rbx
	addq	$4, %r12
	cmpq	%rsi, %rbx
	jb	LBB0_5
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	sarq	$2, %r12
	movq	%r12, %rcx
	subq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	$3, %rcx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	ja	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	decb	%cl
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %r15d
	andl	$7, %r15d
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %eax
	movq	_kMaskToAllowedStatus@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rcx,%rax,4)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 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	_Test86MSuint8_t
	movl	$254, %edi
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	andl	$3, %r15d
	leal	(%r15,%r15), %edx
	incl	%edx
	movl	$1, %eax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_22
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %eax
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %edi
	callq	_Test86MSuint8_t
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, -88(%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	-96(%rbp), %rax                 ## 8-byte Reload
	addl	%r12d, %eax
	movl	%eax, %ecx
	negl	%ecx
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	cmovnel	%eax, %ecx
	addl	%ecx, %r14d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movl	%eax, %r13d
	movq	_kMaskToBitNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %r15d
	shll	$3, %r15d
	movb	$24, %cl
	subb	%r15b, %cl
	movl	%r14d, %edi
	sarl	%cl, %edi
	callq	_Test86MSuint8_t
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_kMaskToBitNumber@GOTPCREL(%rip), %rdx
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	negb	%r15b
	movl	$-1, %r13d
	movl	%r15d, %ecx
	shll	%cl, %r13d
	xorl	%r14d, %r13d
	notl	%r13d
	addl	-72(%rbp), %r13d                ## 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	%r13d, %edi
	sarl	%cl, %edi
	movq	%rdx, %r14
	callq	_Test86MSuint8_t
	movq	%r14, %rdx
	movl	%r13d, %r14d
	testq	%rax, %rax
	jne	LBB0_17
	jmp	LBB0_21
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	andl	$3, %edx
	addl	%edx, %edx
	incl	%edx
	movl	$1, %eax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	$254, %edi
	jmp	LBB0_22
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, %r13d
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, %eax
	shll	$7, %eax
	sarl	$31, %eax
	movl	%eax, 16(%rbx)
	movl	%r13d, %eax
	sarl	$16, %eax
	movl	%eax, 12(%rbx)
	movl	%r13d, %eax
	sarl	$8, %eax
	movl	%eax, 8(%rbx)
	movl	%r13d, 4(%rbx)
	movl	$5, %eax
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	$254, %edi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	%r12, %rax
	leaq	(,%rax,4), %rbx
	addq	%r13, %rbx
	movl	%edx, %r15d
	cmpq	%rsi, %rbx
	jb	LBB0_4
	jmp	LBB0_25
LBB0_23:
	movl	%r15d, %edx
	movq	%r13, %rbx
	jmp	LBB0_25
LBB0_24:
	movl	%r15d, %edx
	movq	%rax, %r12
LBB0_25:
	subq	%r13, %rbx
	sarq	$2, %rbx
	movq	%rbx, %rax
	subq	%r12, %rax
	leal	-1(%rax), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	andl	$7, %edx
	xorl	%ecx, %ecx
	cmpq	$4, %rax
	cmovbl	%edx, %ecx
	movl	%ecx, (%r14)
LBB0_26:
	movq	%rbx, %rax
	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	x1, #5
	b.hs	LBB0_2
; %bb.1:
	mov	x0, #0
	ret
LBB0_2:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	w22, w8, #0x7
	add	x8, x0, x1, lsl #2
	sub	x23, x8, #16
	cmp	x23, x0
	b.ls	LBB0_22
; %bb.3:
	mov	x21, x4
	add	w26, w2, #5
	neg	x27, x20
	mov	x8, #-1
Lloh0:
	adrp	x11, _kMaskToBitNumber@GOTPAGE
Lloh1:
	ldr	x11, [x11, _kMaskToBitNumber@GOTPAGEOFF]
Lloh2:
	adrp	x9, lCPI0_0@PAGE
Lloh3:
	ldr	d8, [x9, lCPI0_0@PAGEOFF]
	mov	x9, x20
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
	add	x28, x27, x9
	add	x25, x9, #16
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w9, [x25, #-16]
	and	w9, w9, #0xfe
	cmp	w9, #232
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x28, x28, #4
	add	x9, x25, #4
	sub	x10, x25, #12
	mov	x25, x9
	cmp	x10, x23
	b.lo	LBB0_5
	b	LBB0_23
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	asr	x24, x28, #2
	sub	x8, x24, x8
	cmp	x8, #3
	b.ls	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w22, #0
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w8, #1
	lsl	w8, w22, w8
	ands	w22, w8, #0x7
	b.eq	LBB0_13
; %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_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x11]
	ldrsw	x8, [x8, x22, lsl #2]
	sub	x8, x25, x8, lsl #2
	ldr	w0, [x8]
	bl	_Test86MSuint8_t
Lloh7:
	adrp	x11, _kMaskToBitNumber@GOTPAGE
Lloh8:
	ldr	x11, [x11, _kMaskToBitNumber@GOTPAGEOFF]
	cbz	x0, LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #1
	bfi	w9, w22, #1, #2
	mov	w8, #1
	mov	x22, x9
	b	LBB0_21
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25]
	bl	_Test86MSuint8_t
	cbz	x0, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	str	x27, [sp]                       ; 8-byte Folded Spill
	lsr	x8, x28, #2
	ldp	w10, w9, [x25, #-4]
	lsl	w10, w10, #16
	orr	w9, w10, w9, lsl #24
	ldp	w11, w10, [x25, #-12]
	orr	w9, w9, w10, lsl #8
	orr	w9, w9, w11
	add	w8, w26, w8
	cmp	w21, #0
	cneg	w27, w8, eq
	add	w28, w9, w27
	mov	w9, #24
	stp	w26, w21, [sp, #8]              ; 8-byte Folded Spill
	cbz	w22, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh9:
	adrp	x8, _kMaskToBitNumber@GOTPAGE
Lloh10:
	ldr	x8, [x8, _kMaskToBitNumber@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	w8, [x8, w22, uxtw #2]
	lsl	w26, w8, #3
	sub	w8, w9, w26
	asr	w0, w28, w8
	bl	_Test86MSuint8_t
	cbz	x0, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, w22
Lloh12:
	adrp	x11, _kMaskToBitNumber@GOTPAGE
Lloh13:
	ldr	x11, [x11, _kMaskToBitNumber@GOTPAGEOFF]
	mov	w9, #24
	mov	w10, #-1
LBB0_17:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	neg	w8, w26
	lsl	w8, w10, w8
	eon	w8, w28, w8
	add	w28, w27, w8
	ldr	x8, [x11]
	ldr	w8, [x8, x21, lsl #2]
	lsl	w26, w8, #3
	sub	w8, w9, w26
	asr	w0, w28, w8
	bl	_Test86MSuint8_t
	mov	w10, #-1
	mov	w9, #24
Lloh14:
	adrp	x11, _kMaskToBitNumber@GOTPAGE
Lloh15:
	ldr	x11, [x11, _kMaskToBitNumber@GOTPAGEOFF]
	cbnz	x0, LBB0_17
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #1
	bfi	w9, w22, #1, #2
	mov	w8, #1
	mov	x22, x9
Lloh16:
	adrp	x11, _kMaskToBitNumber@GOTPAGE
Lloh17:
	ldr	x11, [x11, _kMaskToBitNumber@GOTPAGEOFF]
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh18:
	adrp	x11, _kMaskToBitNumber@GOTPAGE
Lloh19:
	ldr	x11, [x11, _kMaskToBitNumber@GOTPAGEOFF]
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	sbfx	w8, w28, #24, #1
	str	w8, [x25]
	dup.2s	v0, w28
	sshl.2s	v0, v0, v8
	stur	d0, [x25, #-8]
	stur	w28, [x25, #-12]
	mov	w8, #5
	ldp	w26, w21, [sp, #8]              ; 8-byte Folded Reload
	ldr	x27, [sp]                       ; 8-byte Folded Reload
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x24, x8
	add	x9, x20, x8, lsl #2
	mov	x8, x24
	cmp	x9, x23
	b.lo	LBB0_4
	b	LBB0_24
LBB0_22:
	mov	x24, #-1
	mov	x9, x20
	b	LBB0_24
LBB0_23:
	sub	x9, x9, #16
	mov	x24, x8
LBB0_24:
	sub	x8, x9, x20
	asr	x0, x8, #2
	sub	x8, x0, x24
	sub	w9, w8, #1
	lsl	w9, w22, w9
	and	w9, w9, #0x7
	cmp	x8, #3
	csel	w8, wzr, w9, hi
	str	w8, [x19]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_kMaskToBitNumber,8,3           ; @kMaskToBitNumber
	.comm	_kMaskToAllowedStatus,8,3       ; @kMaskToAllowedStatus
.subsections_via_symbols
