	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hexa2int4
_hexa2int4:                             ## @hexa2int4
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movsbl	(%rdi), %ecx
	leal	-48(%rcx), %edx
	movl	$-48, %eax
	cmpb	$10, %dl
	jb	LBB0_3
## %bb.1:
	leal	-65(%rcx), %edx
	movl	$-55, %eax
	cmpb	$6, %dl
	jb	LBB0_3
## %bb.2:
	leal	-97(%rcx), %edx
	movl	$-87, %eax
	cmpb	$6, %dl
	jae	LBB0_4
LBB0_3:
	addl	%ecx, %eax
	popq	%rbp
	retq
LBB0_4:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ecx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_syslog
	movl	$255, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid hex character: '%c' (%#x)"

	.no_dead_strip	_hexa2int4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hexa2int4
_hexa2int4:                             ; @hexa2int4
	.cfi_startproc
; %bb.0:
	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
	ldrsb	w2, [x0]
	sub	w8, w2, #48
	cmp	w8, #10
	b.hs	LBB0_2
; %bb.1:
	mov	w8, #-48
	b	LBB0_6
LBB0_2:
	sub	w8, w2, #65
	cmp	w8, #6
	b.hs	LBB0_4
; %bb.3:
	mov	w8, #-55
	b	LBB0_6
LBB0_4:
	sub	w8, w2, #97
	cmp	w8, #6
	b.hs	LBB0_7
; %bb.5:
	mov	w8, #-87
LBB0_6:
	add	w0, w8, w2
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh0:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x2
	bl	_syslog
	mov	w0, #255
	bl	_exit
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid hex character: '%c' (%#x)"

	.no_dead_strip	_hexa2int4
.subsections_via_symbols
