	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x86_Convert
_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$5, %rdx
	jae	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_2:
	movq	%rdi, %r12
	movq	(%rdi), %r13
	movl	8(%rdi), %ecx
	leaq	(%rsi,%rdx,4), %r14
	addq	$-16, %r14
	cmpq	%rsi, %r14
	jbe	LBB0_3
## %bb.4:
	movl	12(%r12), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdx
	negq	%rdx
	movl	$254, %edi
	movq	%rsi, %rbx
	movl	%ecx, %r15d
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
	movq	%r13, %rax
	leaq	(%rdx,%rbx), %r13
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %ecx
	andl	%edi, %ecx
	cmpl	$232, %ecx
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	addq	$4, %rbx
	addq	$4, %r13
	cmpq	%r14, %rbx
	jb	LBB0_6
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	sarq	$2, %r13
	movq	%r13, %rcx
	subq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	$3, %rcx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	ja	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	decb	%cl
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %r15d
	andl	$7, %r15d
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$232, %eax
	btl	%r15d, %eax
	jb	LBB0_24
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %eax
	leaq	_x86_Convert.kMaskToBitNumber(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	shlq	$2, %rax
	movq	%rbx, %rcx
	subq	%rax, %rcx
	movzbl	16(%rcx), %edi
	callq	_Test86MSByte
	movl	$254, %edi
	testq	%rax, %rax
	je	LBB0_13
LBB0_24:                                ##   in Loop: Header=BB0_5 Depth=1
	andl	$3, %r15d
	leal	(%r15,%r15), %ecx
	incl	%ecx
	movl	$1, %eax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %eax
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %edi
	callq	_Test86MSByte
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	16(%rbx), %eax
	shll	$24, %eax
	movl	8(%rbx), %r15d
	movl	12(%rbx), %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	shll	$8, %r15d
	orl	%ecx, %r15d
	orl	4(%rbx), %r15d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r13), %ecx
	subl	%ecx, %r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movl	%eax, %eax
	leaq	_x86_Convert.kMaskToBitNumber(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
	shll	$3, %ecx
	movl	$24, %r12d
	subl	%ecx, %r12d
	negb	%cl
	movl	$-1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	movl	%r12d, %ecx
	sarl	%cl, %edi
	callq	_Test86MSByte
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r12d, -72(%rbp)                ## 4-byte Spill
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%r12d, %r15d
	notl	%r15d
	subl	-76(%rbp), %r15d                ## 4-byte Folded Reload
	movl	%r15d, %edi
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edi
	callq	_Test86MSByte
	testq	%rax, %rax
	jne	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %eax
	shll	$7, %eax
	sarl	$31, %eax
	movl	%eax, 16(%rbx)
	movl	%r15d, %eax
	sarl	$16, %eax
	movl	%eax, 12(%rbx)
	movl	%r15d, %eax
	sarl	$8, %eax
	movl	%eax, 8(%rbx)
	movl	%r15d, 4(%rbx)
	movl	$5, %eax
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	$254, %edi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	andl	$3, %ecx
	addl	%ecx, %ecx
	incl	%ecx
	movl	$1, %eax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	$254, %edi
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	%r13, %rax
	leaq	(%rsi,%rax,4), %rbx
	movl	%ecx, %r15d
	cmpq	%r14, %rbx
	jb	LBB0_5
	jmp	LBB0_22
LBB0_3:
	movq	%rsi, %rbx
	jmp	LBB0_22
LBB0_8:
	movl	%r15d, %ecx
	movq	%rax, %r13
LBB0_22:
	subq	%rsi, %rbx
	sarq	$2, %rbx
	movq	%r13, (%r12)
	movl	%ecx, 8(%r12)
	addl	%ebx, 12(%r12)
LBB0_23:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @x86_Convert.kMaskToBitNumber
_x86_Convert.kMaskToBitNumber:
	.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_Convert
.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
	.p2align	2
_x86_Convert:                           ; @x86_Convert
	.cfi_startproc
; %bb.0:
	cmp	x2, #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	x20, x1
	mov	x19, x0
	ldr	x26, [x0]
	ldr	w21, [x0, #8]
	add	x8, x1, x2, lsl #2
	sub	x22, x8, #16
	cmp	x22, x1
	b.ls	LBB0_20
; %bb.3:
	ldr	w23, [x19, #12]
	neg	x24, x20
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	mov	w27, #232
	mov	x9, x20
	mov	x8, x26
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	add	x28, x24, 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, x22
	b.lo	LBB0_5
	b	LBB0_21
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	asr	x26, x28, #2
	sub	x8, x26, x8
	cmp	x8, #3
	b.ls	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, #0
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w8, #1
	lsl	w8, w21, w8
	ands	w21, w8, #0x7
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	lsr	x8, x27, x21
	tbnz	w8, #0, LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh2:
	adrp	x8, _x86_Convert.kMaskToBitNumber@PAGE
Lloh3:
	add	x8, x8, _x86_Convert.kMaskToBitNumber@PAGEOFF
	ldrsw	x8, [x8, x21, lsl #2]
	sub	x8, x25, x8, lsl #2
	ldrb	w0, [x8]
	bl	_Test86MSByte
	cbnz	x0, LBB0_18
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25]
	bl	_Test86MSByte
	cbz	x0, LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	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	w27, w23, w8
	sub	w28, w9, w27
	str	w23, [sp, #12]                  ; 4-byte Folded Spill
	str	x24, [sp]                       ; 8-byte Folded Spill
	cbz	w21, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh4:
	adrp	x8, _x86_Convert.kMaskToBitNumber@PAGE
Lloh5:
	add	x8, x8, _x86_Convert.kMaskToBitNumber@PAGEOFF
	ldr	w8, [x8, w21, uxtw #2]
	lsl	w24, w8, #3
	mov	w8, #24
	sub	w23, w8, w24
	asr	w0, w28, w23
	bl	_Test86MSByte
	cbz	x0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	neg	w8, w24
	mov	w9, #-1
	lsl	w24, w9, w8
LBB0_16:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	eon	w8, w28, w24
	sub	w28, w8, w27
	asr	w0, w28, w23
	bl	_Test86MSByte
	cbnz	x0, LBB0_16
LBB0_17:                                ;   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
	ldr	w23, [sp, #12]                  ; 4-byte Folded Reload
	ldr	x24, [sp]                       ; 8-byte Folded Reload
	mov	w27, #232
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #1
	bfi	w9, w21, #1, #2
	mov	w8, #1
	mov	x21, x9
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x26, x8
	add	x9, x20, x8, lsl #2
	mov	x8, x26
	cmp	x9, x22
	b.lo	LBB0_4
	b	LBB0_22
LBB0_20:
	mov	x9, x20
	b	LBB0_22
LBB0_21:
	sub	x9, x9, #16
	mov	x26, x8
LBB0_22:
	sub	x8, x9, x20
	asr	x0, x8, #2
	str	x26, [x19]
	ldr	w8, [x19, #12]
	add	w8, w8, w0
	stp	w21, w8, [x19, #8]
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @x86_Convert.kMaskToBitNumber
_x86_Convert.kMaskToBitNumber:
	.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_Convert
.subsections_via_symbols
