	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function qword_addhex
LCPI0_0:
	.space	16,15
LCPI0_1:
	.byte	48                              ## 0x30
	.byte	48                              ## 0x30
	.byte	48                              ## 0x30
	.byte	48                              ## 0x30
	.byte	48                              ## 0x30
	.byte	48                              ## 0x30
	.byte	48                              ## 0x30
	.byte	48                              ## 0x30
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_2:
	.byte	159                             ## 0x9f
	.byte	159                             ## 0x9f
	.byte	159                             ## 0x9f
	.byte	159                             ## 0x9f
	.byte	159                             ## 0x9f
	.byte	159                             ## 0x9f
	.byte	159                             ## 0x9f
	.byte	159                             ## 0x9f
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_3:
	.byte	39                              ## 0x27
	.byte	39                              ## 0x27
	.byte	39                              ## 0x27
	.byte	39                              ## 0x27
	.byte	39                              ## 0x27
	.byte	39                              ## 0x27
	.byte	39                              ## 0x27
	.byte	39                              ## 0x27
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_4:
	.byte	15                              ## 0xf
	.byte	15                              ## 0xf
	.byte	15                              ## 0xf
	.byte	15                              ## 0xf
	.byte	15                              ## 0xf
	.byte	15                              ## 0xf
	.byte	15                              ## 0xf
	.byte	15                              ## 0xf
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_5:
	.byte	9                               ## 0x9
	.byte	9                               ## 0x9
	.byte	9                               ## 0x9
	.byte	9                               ## 0x9
	.byte	9                               ## 0x9
	.byte	9                               ## 0x9
	.byte	9                               ## 0x9
	.byte	9                               ## 0x9
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_qword_addhex
	.p2align	4, 0x90
_qword_addhex:                          ## @qword_addhex
	.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
                                        ## kill: def $ecx killed $ecx def $rcx
	movl	(%rsi), %r15d
	testl	%r15d, %r15d
	js	LBB0_22
## %bb.1:
	movq	(%rdi), %r12
	cmpl	$3, %r15d
	jb	LBB0_12
## %bb.2:
	movw	$30812, (%r12)                  ## imm = 0x785C
	leal	-2(%r15), %r8d
	leaq	2(%r12), %r11
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.3:
	cmpl	$3, %r15d
	je	LBB0_14
## %bb.4:
	leal	-1(%rcx), %r9d
	addl	$-4, %r15d
	shrl	%r15d
	cmpl	%r9d, %r15d
	movl	%r9d, %r10d
	cmovbl	%r15d, %r10d
	incl	%r10d
	testl	%r9d, %r9d
	movl	$1, %r14d
	cmovnel	%r10d, %r14d
	cmpl	$8, %r14d
	jb	LBB0_7
## %bb.5:
	cmpl	%r9d, %r15d
	cmovael	%r9d, %r15d
	testl	%r9d, %r9d
	cmovel	%r9d, %r15d
	leaq	(%r15,%rdx), %rbx
	incq	%rbx
	cmpq	%rbx, %r11
	jae	LBB0_15
## %bb.6:
	leaq	(%r12,%r15,2), %rbx
	addq	$4, %rbx
	cmpq	%rdx, %rbx
	jbe	LBB0_15
LBB0_7:
	movq	%r11, %r9
	movq	%rdx, %r10
LBB0_8:
	movl	%ecx, %r11d
	decq	%r11
	xorl	%r13d, %r13d
	movl	$39, %r14d
	movl	%r8d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r10,%r13), %eax
	movl	%eax, %edx
	shrb	$4, %dl
	cmpb	$-96, %al
	movl	$0, %ebx
	cmovael	%r14d, %ebx
	movq	%r12, %r8
	movq	%r9, %r12
	addb	%dl, %bl
	addb	$48, %bl
	andb	$15, %al
	cmpb	$10, %al
	movl	$0, %edx
	cmovael	%r14d, %edx
	movb	%bl, (%r9)
	addb	%al, %dl
	addb	$48, %dl
	movb	%dl, 3(%r8)
	leal	-2(%r15), %r8d
	addq	$2, %r9
	movl	%r13d, %eax
	incq	%r13
	cmpl	%eax, %r11d
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$3, %r15d
	movl	%r8d, %r15d
	ja	LBB0_9
LBB0_11:
	subl	%r13d, %ecx
	jmp	LBB0_18
LBB0_12:
	movq	%r12, %r9
	movl	%r15d, %r8d
	jmp	LBB0_18
LBB0_14:
	movq	%r11, %r9
LBB0_18:
	movl	$-1, %eax
	testl	%ecx, %ecx
	jne	LBB0_21
## %bb.19:
	testl	%r8d, %r8d
	je	LBB0_21
## %bb.20:
	movb	$32, (%r9)
	incq	%r9
	decl	%r8d
	movl	%r8d, %eax
LBB0_21:
	movq	%r9, (%rdi)
	movl	%eax, (%rsi)
LBB0_22:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	%r14d, %r15d
	andl	$-8, %r15d
	leaq	(%r11,%r15,2), %r9
	subl	%r15d, %r8d
	subl	%r15d, %r8d
	leaq	(%rdx,%r15), %r10
	leaq	(%r12,%r15,2), %r12
	subl	%r15d, %ecx
	xorl	%ebx, %ebx
	movdqa	LCPI0_0(%rip), %xmm8            ## xmm8 = [15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15]
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = <48,48,48,48,48,48,48,48,u,u,u,u,u,u,u,u>
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = <159,159,159,159,159,159,159,159,u,u,u,u,u,u,u,u>
	movdqa	LCPI0_3(%rip), %xmm3            ## xmm3 = <39,39,39,39,39,39,39,39,u,u,u,u,u,u,u,u>
	movdqa	LCPI0_4(%rip), %xmm4            ## xmm4 = <15,15,15,15,15,15,15,15,u,u,u,u,u,u,u,u>
	movdqa	LCPI0_5(%rip), %xmm5            ## xmm5 = <9,9,9,9,9,9,9,9,u,u,u,u,u,u,u,u>
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rbx), %xmm7              ## xmm7 = mem[0],zero
	movdqa	%xmm7, %xmm0
	psrlw	$4, %xmm0
	pand	%xmm8, %xmm0
	movdqa	%xmm7, %xmm6
	pminub	%xmm2, %xmm6
	pcmpeqb	%xmm7, %xmm6
	pandn	%xmm3, %xmm6
	paddb	%xmm1, %xmm6
	paddb	%xmm0, %xmm6
	pand	%xmm4, %xmm7
	movdqa	%xmm7, %xmm0
	pminub	%xmm5, %xmm0
	pcmpeqb	%xmm7, %xmm0
	pandn	%xmm3, %xmm0
	paddb	%xmm1, %xmm7
	paddb	%xmm0, %xmm7
	punpcklbw	%xmm7, %xmm6            ## xmm6 = xmm6[0],xmm7[0],xmm6[1],xmm7[1],xmm6[2],xmm7[2],xmm6[3],xmm7[3],xmm6[4],xmm7[4],xmm6[5],xmm7[5],xmm6[6],xmm7[6],xmm6[7],xmm7[7]
	movdqu	%xmm6, (%r11,%rbx,2)
	addq	$8, %rbx
	cmpq	%rbx, %r15
	jne	LBB0_16
## %bb.17:
	cmpq	%r14, %r15
	jne	LBB0_8
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qword_addhex                   ; -- Begin function qword_addhex
	.p2align	2
_qword_addhex:                          ; @qword_addhex
	.cfi_startproc
; %bb.0:
	ldr	w10, [x1]
	tbnz	w10, #31, LBB0_14
; %bb.1:
	ldr	x14, [x0]
	cmp	w10, #3
	b.lo	LBB0_9
; %bb.2:
	mov	w9, #30812
	mov	x8, x14
	strh	w9, [x8], #2
	sub	w9, w10, #2
	cbz	w3, LBB0_10
; %bb.3:
	cmp	w10, #3
	b.eq	LBB0_10
; %bb.4:
	sub	w11, w3, #1
	sub	w10, w10, #4
	lsr	w10, w10, #1
	cmp	w10, w11
	csel	w12, w10, w11, lo
	cmp	w11, #0
	mov	w13, #1
	csinc	w12, w13, w12, eq
	cmp	w12, #64
	b.lo	LBB0_15
; %bb.5:
	cmp	w10, w11
	csel	w10, w10, w11, lo
	cmp	w11, #0
	csel	w10, wzr, w10, eq
	add	x11, x14, w10, uxtw #1
	add	x11, x11, #4
	add	x10, x10, x2
	add	x10, x10, #1
	cmp	x8, x10
	ccmp	x11, x2, #0, lo
	b.hi	LBB0_15
; %bb.6:
	and	x13, x12, #0xffffffc0
	lsl	x11, x13, #1
	add	x8, x8, x11
	sub	w9, w9, w13, lsl #1
	add	x10, x2, x13
	add	x11, x14, x11
	sub	w3, w3, w13
	add	x15, x14, #66
	add	x14, x2, #32
	movi.16b	v0, #48
	movi.16b	v1, #159
	movi.16b	v2, #39
	movi.16b	v3, #15
	movi.16b	v4, #9
	mov	x16, x13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x14, #-32]
	cmhi.16b	v7, v5, v1
	cmhi.16b	v16, v6, v1
	ldp	q17, q18, [x14], #64
	cmhi.16b	v19, v17, v1
	cmhi.16b	v20, v18, v1
	and.16b	v7, v7, v2
	and.16b	v16, v16, v2
	and.16b	v19, v19, v2
	and.16b	v20, v20, v2
	usra.16b	v7, v5, #4
	add.16b	v21, v7, v0
	and.16b	v5, v5, v3
	cmhi.16b	v7, v5, v4
	and.16b	v7, v7, v2
	add.16b	v5, v7, v5
	add.16b	v22, v5, v0
	usra.16b	v16, v6, #4
	add.16b	v23, v16, v0
	and.16b	v5, v6, v3
	cmhi.16b	v6, v5, v4
	and.16b	v6, v6, v2
	add.16b	v5, v6, v5
	add.16b	v24, v5, v0
	usra.16b	v19, v17, #4
	add.16b	v5, v19, v0
	and.16b	v7, v17, v3
	cmhi.16b	v16, v7, v4
	and.16b	v16, v16, v2
	add.16b	v7, v16, v7
	add.16b	v6, v7, v0
	usra.16b	v20, v18, #4
	add.16b	v16, v20, v0
	and.16b	v7, v18, v3
	cmhi.16b	v18, v7, v4
	sub	x17, x15, #64
	st2.16b	{ v21, v22 }, [x17]
	and.16b	v18, v18, v2
	sub	x17, x15, #32
	st2.16b	{ v23, v24 }, [x17]
	add	x17, x15, #128
	st2.16b	{ v5, v6 }, [x15], #32
	add.16b	v5, v18, v7
	add.16b	v17, v5, v0
	st2.16b	{ v16, v17 }, [x15]
	mov	x15, x17
	subs	x16, x16, #64
	b.ne	LBB0_7
; %bb.8:
	cmp	x13, x12
	b.eq	LBB0_10
	b	LBB0_16
LBB0_9:
	mov	x8, x14
	mov	x9, x10
LBB0_10:
	mov	w10, #-1
	cbnz	w3, LBB0_13
; %bb.11:
	cbz	w9, LBB0_13
; %bb.12:
	mov	w10, #32
	strb	w10, [x8], #1
	sub	w10, w9, #1
LBB0_13:
	str	x8, [x0]
	str	w10, [x1]
LBB0_14:
	ret
LBB0_15:
	mov	x10, x2
	mov	x11, x14
LBB0_16:
	mov	w12, #39
	mov	x13, x9
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x9, x11
	mov	x11, x8
	ldrb	w14, [x10], #1
	cmp	w14, #159
	csel	w15, w12, wzr, hi
	add	w15, w15, w14, lsr #4
	add	w15, w15, #48
	strb	w15, [x8], #2
	and	w14, w14, #0xf
	cmp	w14, #9
	csel	w15, w12, wzr, hi
	add	w14, w15, w14
	add	w14, w14, #48
	strb	w14, [x9, #3]
	sub	w9, w13, #2
	subs	w3, w3, #1
	b.eq	LBB0_10
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	w13, #3
	mov	x13, x9
	b.hi	LBB0_17
	b	LBB0_10
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
