	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function from_hex
_from_hex:                              ## @from_hex
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	cmpq	$1, %rsi
	jne	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
                                        ## implicit-def: $eax
	testb	$1, %sil
	jne	LBB0_12
	jmp	LBB0_13
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_4:
	movq	%rsi, %r9
	andq	$-2, %r9
	xorl	%eax, %eax
	movl	$-87, %r8d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$6, %r10b
	cmovbl	%r8d, %edx
	addl	%eax, %edx
	movl	%edx, %eax
	addl	%ecx, %eax
	addq	$2, %rdi
	addq	$-2, %r9
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	shll	$4, %eax
	movsbl	(%rdi), %r10d
	leal	-97(%r10), %r11d
	leal	-65(%r10), %ebx
	movl	$-55, %edx
	movl	$-55, %ecx
	cmpb	$6, %bl
	jb	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$-48, %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$6, %r11b
	cmovbl	%r8d, %ecx
	addl	%r10d, %ecx
	addl	%eax, %ecx
	shll	$4, %ecx
	movsbl	1(%rdi), %eax
	leal	-97(%rax), %r10d
	leal	-65(%rax), %ebx
	cmpb	$6, %bl
	jb	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$-48, %edx
	jmp	LBB0_9
LBB0_10:
	movl	%eax, %ecx
	shll	$4, %ecx
	testb	$1, %sil
	je	LBB0_13
LBB0_12:
	movsbl	(%rdi), %edx
	leal	-97(%rdx), %eax
	leal	-65(%rdx), %esi
	cmpb	$6, %sil
	movl	$-55, %esi
	movl	$-48, %edi
	cmovbl	%esi, %edi
	cmpb	$6, %al
	movl	$-87, %eax
	cmovael	%edi, %eax
	addl	%edx, %eax
	addl	%ecx, %eax
LBB0_13:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_from_hex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function from_hex
_from_hex:                              ; @from_hex
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_4
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	mov	w9, #-48
	mov	w10, #-55
	mov	w11, #-87
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w12, [x8], #1
	sub	w13, w12, #97
	sub	w14, w12, #65
	cmp	w14, #6
	csel	w14, w10, w9, lo
	cmp	w13, #6
	csel	w13, w11, w14, lo
	add	w12, w13, w12
	add	w0, w12, w0, lsl #4
	subs	x1, x1, #1
	b.ne	LBB0_2
; %bb.3:
	ret
LBB0_4:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_from_hex
.subsections_via_symbols
