	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cvtcmap
_cvtcmap:                               ## @cvtcmap
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %r14
	movb	(%rdi), %cl
	movq	$-1, %r10
	shlq	%cl, %r10
	movq	16(%rdi), %r15
	movq	8(%rdi), %r12
	movq	%r10, %rsi
	notq	%rsi
	movq	%rsi, %rax
	sarq	$63, %rax
	andq	%rsi, %rax
	leaq	(%r10,%rax), %r11
	negq	%r11
	cmpq	$4, %r11
	jae	LBB0_1
LBB0_13:
	incq	%rsi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	sarl	$8, -4(%r14,%rsi,4)
	sarl	$8, -4(%r15,%rsi,4)
	sarl	$8, -4(%r12,%rsi,4)
	decq	%rsi
	testq	%rsi, %rsi
	jg	LBB0_14
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	(%r14,%rax,4), %r8
	leaq	(,%r10,4), %rdx
	movq	%r14, %rdi
	subq	%rdx, %rdi
	leaq	(%r15,%rax,4), %r9
	movq	%r15, %rcx
	subq	%rdx, %rcx
	leaq	(%r12,%rax,4), %rax
	movq	%r12, %rbx
	subq	%rdx, %rbx
	cmpq	%rcx, %r8
	setb	-41(%rbp)                       ## 1-byte Folded Spill
	cmpq	%rdi, %r9
	setb	%r13b
	cmpq	%rbx, %r8
	setb	%dl
	cmpq	%rdi, %rax
	setb	%dil
	cmpq	%rbx, %r9
	setb	%bl
	cmpq	%rcx, %rax
	setb	%cl
	testb	%r13b, -41(%rbp)                ## 1-byte Folded Reload
	jne	LBB0_13
## %bb.2:
	andb	%dil, %dl
	jne	LBB0_13
## %bb.3:
	andb	%cl, %bl
	jne	LBB0_13
## %bb.4:
	movq	%r11, %r8
	andq	$-4, %r8
	leaq	-4(%r8), %rax
	movq	%rax, %r9
	shrq	$2, %r9
	incq	%r9
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r9, %rbx
	andq	$-2, %rbx
	movq	$-4, %rdx
	subq	%r10, %rdx
	leaq	(%r12,%rdx,4), %rax
	leaq	(%r15,%rdx,4), %rcx
	leaq	(%r14,%rdx,4), %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx,%rdi,4), %xmm0
	psrad	$8, %xmm0
	movdqu	%xmm0, (%rdx,%rdi,4)
	movdqu	(%rcx,%rdi,4), %xmm0
	psrad	$8, %xmm0
	movdqu	%xmm0, (%rcx,%rdi,4)
	movdqu	(%rax,%rdi,4), %xmm0
	psrad	$8, %xmm0
	movdqu	%xmm0, (%rax,%rdi,4)
	movdqu	-16(%rdx,%rdi,4), %xmm0
	psrad	$8, %xmm0
	movdqu	%xmm0, -16(%rdx,%rdi,4)
	movdqu	-16(%rcx,%rdi,4), %xmm0
	psrad	$8, %xmm0
	movdqu	%xmm0, -16(%rcx,%rdi,4)
	movdqu	-16(%rax,%rdi,4), %xmm0
	psrad	$8, %xmm0
	movdqu	%xmm0, -16(%rax,%rdi,4)
	addq	$-8, %rdi
	addq	$-2, %rbx
	jne	LBB0_7
## %bb.8:
	negq	%rdi
	testb	$1, %r9b
	je	LBB0_11
LBB0_10:
	movq	%rsi, %rax
	subq	%rdi, %rax
	movdqu	-12(%r14,%rax,4), %xmm0
	psrad	$8, %xmm0
	movdqu	%xmm0, -12(%r14,%rax,4)
	movdqu	-12(%r15,%rax,4), %xmm0
	psrad	$8, %xmm0
	movdqu	%xmm0, -12(%r15,%rax,4)
	movdqu	-12(%r12,%rax,4), %xmm0
	psrad	$8, %xmm0
	movdqu	%xmm0, -12(%r12,%rax,4)
LBB0_11:
	cmpq	%r11, %r8
	je	LBB0_15
## %bb.12:
	subq	%r8, %rsi
	jmp	LBB0_13
LBB0_5:
	xorl	%edi, %edi
	testb	$1, %r9b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cvtcmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cvtcmap
_cvtcmap:                               ; @cvtcmap
	.cfi_startproc
; %bb.0:
	ldp	x9, x8, [x0, #16]
	ldp	x11, x10, [x0]
	mov	x12, #-1
	lsl	x14, x12, x11
	mvn	x11, x14
	cmp	x11, #0
	csinv	x12, xzr, x14, ge
	add	x12, x14, x12
	neg	x12, x12
	cmp	x12, #4
	b.lo	LBB0_7
; %bb.1:
	cmp	x11, #0
	csel	x13, x11, xzr, lt
	lsl	x13, x13, #2
	add	x16, x8, x13
	lsl	x15, x14, #2
	sub	x17, x10, x15
	cmp	x16, x17
	add	x0, x9, x13
	sub	x1, x8, x15
	sub	x2, x9, x15
	add	x13, x10, x13
	ccmp	x13, x1, #2, lo
	cset	w15, lo
	cmp	x0, x17
	ccmp	x13, x2, #2, lo
	cset	w13, lo
	cmp	x0, x1
	ccmp	x16, x2, #2, lo
	b.lo	LBB0_7
; %bb.2:
	tbnz	w15, #0, LBB0_7
; %bb.3:
	tbnz	w13, #0, LBB0_7
; %bb.4:
	and	x13, x12, #0xfffffffffffffffc
	sub	x11, x11, x13
	mov	x15, #-4
	sub	x14, x15, x14
	lsl	x16, x14, #2
	add	x14, x10, x16
	add	x15, x9, x16
	add	x16, x8, x16
	mov	x17, x13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	q0, [x16]
	sshr.4s	v0, v0, #8
	str	q0, [x16], #-16
	ldr	q0, [x15]
	sshr.4s	v0, v0, #8
	str	q0, [x15], #-16
	ldr	q0, [x14]
	sshr.4s	v0, v0, #8
	str	q0, [x14], #-16
	subs	x17, x17, #4
	b.ne	LBB0_5
; %bb.6:
	cmp	x13, x12
	b.eq	LBB0_8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x11, #2
	ldr	w13, [x8, x12]
	asr	w13, w13, #8
	str	w13, [x8, x12]
	ldr	w13, [x9, x12]
	asr	w13, w13, #8
	str	w13, [x9, x12]
	ldr	w13, [x10, x12]
	asr	w13, w13, #8
	str	w13, [x10, x12]
	sub	x12, x11, #1
	cmp	x11, #0
	mov	x11, x12
	b.gt	LBB0_7
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cvtcmap
.subsections_via_symbols
