	.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:
                                        ## kill: def $edi killed $edi def $rdi
	leal	-48(%rdi), %eax
	cmpl	$10, %eax
	jb	LBB0_4
## %bb.1:
	leal	-97(%rdi), %eax
	cmpl	$5, %eax
	ja	LBB0_3
## %bb.2:
	addl	$-87, %edi
	movl	%edi, %eax
	retq
LBB0_3:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rdi
	callq	_error
	xorl	%eax, %eax
	popq	%rbp
LBB0_4:
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reply contains invalid hex digit"

	.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:
	sub	w8, w0, #48
	cmp	w8, #10
	b.lo	LBB0_4
; %bb.1:
	sub	w8, w0, #97
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.2:
	sub	w0, w0, #87
	ret
LBB0_3:
	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
	mov	w8, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	mov	x0, x8
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reply contains invalid hex digit"

	.no_dead_strip	_fromhex
.subsections_via_symbols
