	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fromhex
_fromhex:                               ## @fromhex
	.cfi_startproc
## %bb.0:
	movl	%edi, %esi
	leal	-48(%rsi), %eax
	cmpl	$10, %eax
	jb	LBB0_6
## %bb.1:
	leal	-97(%rsi), %eax
	cmpl	$5, %eax
	ja	LBB0_3
## %bb.2:
	addl	$-87, %esi
	movl	%esi, %eax
	retq
LBB0_3:
	leal	-65(%rsi), %eax
	cmpl	$5, %eax
	ja	LBB0_5
## %bb.4:
	addl	$-55, %esi
	movl	%esi, %eax
	retq
LBB0_5:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_error
                                        ## implicit-def: $eax
	popq	%rbp
LBB0_6:
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid hex digit %d"

	.no_dead_strip	_fromhex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fromhex
_fromhex:                               ; @fromhex
	.cfi_startproc
; %bb.0:
	mov	x1, x0
	sub	w0, w0, #48
	cmp	w0, #10
	b.lo	LBB0_6
; %bb.1:
	sub	w8, w1, #97
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.2:
	sub	w0, w1, #87
	ret
LBB0_3:
	sub	w8, w1, #65
	cmp	w8, #5
	b.hi	LBB0_5
; %bb.4:
	sub	w0, w1, #55
	ret
LBB0_5:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
                                        ; implicit-def: $w0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
LBB0_6:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid hex digit %d"

	.no_dead_strip	_fromhex
.subsections_via_symbols
