	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hexstr                         ## -- Begin function hexstr
	.p2align	4, 0x90
_hexstr:                                ## @hexstr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movl	(%rbx), %edi
	callq	_isxdigit
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	callq	_isdigit
	movl	(%rbx), %r15d
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	addl	$-48, %r15d
	jmp	LBB0_7
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_4:
	leal	-97(%r15), %eax
	cmpl	$5, %eax
	ja	LBB0_6
## %bb.5:
	addl	$-87, %r15d
	jmp	LBB0_7
LBB0_6:
	leal	-65(%r15), %eax
	addl	$-55, %r15d
	xorl	%ecx, %ecx
	cmpl	$6, %eax
	cmovbl	%r15d, %ecx
	movl	%ecx, %r15d
LBB0_7:
	leaq	4(%rbx), %r12
	movl	4(%rbx), %edi
	callq	_isxdigit
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movl	(%r12), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	shll	$4, %r15d
	movl	(%r12), %eax
	addl	%eax, %r15d
	addl	$-48, %r15d
	jmp	LBB0_15
LBB0_8:
	movq	%r12, %rbx
	jmp	LBB0_16
LBB0_11:
	movl	(%r12), %eax
	leal	-97(%rax), %ecx
	cmpl	$6, %ecx
	jae	LBB0_12
## %bb.14:
	shll	$4, %r15d
	addl	%eax, %r15d
	addl	$-87, %r15d
	jmp	LBB0_15
LBB0_12:
	leal	-65(%rax), %ecx
	cmpl	$5, %ecx
	ja	LBB0_15
## %bb.13:
	shll	$4, %r15d
	addl	%eax, %r15d
	addl	$-55, %r15d
LBB0_15:
	addq	$8, %rbx
LBB0_16:
	movq	%rbx, (%r14)
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hexstr                         ; -- Begin function hexstr
	.p2align	2
_hexstr:                                ; @hexstr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x21, [x0]
	mov	x22, x21
	ldr	w0, [x21]
	bl	_isxdigit
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x22]
	bl	_isdigit
	ldr	w8, [x22]
	sub	w9, w8, #97
	sub	w10, w8, #65
	sub	w11, w8, #55
	cmp	w10, #6
	csel	w10, w11, wzr, lo
	sub	w11, w8, #87
	cmp	w9, #5
	csel	w9, w10, w11, hi
	sub	w8, w8, #48
	cmp	x0, #0
	csel	w20, w9, w8, eq
	ldr	w0, [x22, #4]!
	bl	_isxdigit
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w0, [x22]
	bl	_isdigit
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w8, [x22]
	add	w8, w8, w20, lsl #4
	sub	w20, w8, #48
	b	LBB0_6
LBB0_4:
	mov	w20, #0
	b	LBB0_7
LBB0_5:
	ldr	w8, [x22]
	sub	w9, w8, #97
	add	w10, w8, w20, lsl #4
	sub	w11, w10, #87
	sub	w8, w8, #65
	sub	w10, w10, #55
	cmp	w8, #5
	csel	w8, w20, w10, hi
	cmp	w9, #6
	csel	w20, w11, w8, lo
LBB0_6:
	add	x22, x21, #8
LBB0_7:
	str	x22, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
