	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hextoint                       ## -- Begin function hextoint
	.p2align	4, 0x90
_hextoint:                              ## @hextoint
	.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
	movb	(%rdi), %al
	testb	%al, %al
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r12
	incq	%r12
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edx
	shll	$4, %edx
	addl	%eax, %ecx
	movl	%ecx, %ebx
	addl	%edx, %ebx
	movzbl	(%r12), %eax
	incq	%r12
	testb	%al, %al
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	callq	_isxdigit
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$268435455, %ebx                ## imm = 0xFFFFFFF
	ja	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movsbl	-1(%r12), %eax
	leal	-48(%rax), %edx
	movl	$-48, %ecx
	cmpb	$10, %dl
	jb	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	-97(%rax), %edx
	movl	$-87, %ecx
	cmpb	$6, %dl
	jb	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	-65(%rax), %edx
	movl	$-55, %ecx
	cmpb	$5, %dl
	jbe	LBB0_8
	jmp	LBB0_10
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_9:
	movl	%ebx, (%r14)
	movl	$1, %r15d
LBB0_10:
	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	_hextoint                       ; -- Begin function hextoint
	.p2align	2
_hextoint:                              ; @hextoint
	.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
	ldrb	w8, [x0]
	cbz	w8, LBB0_11
; %bb.1:
	mov	x19, x1
	mov	w20, #0
	add	x21, x0, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #-48
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsl	w10, w20, #4
	add	w8, w9, w8
	add	w20, w8, w10
	ldrb	w8, [x21], #1
	cbz	w8, LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	bl	_isxdigit
	mov	x8, x0
	mov	w0, #0
	cbz	w8, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsr	w8, w20, #28
	cbnz	w8, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldursb	w8, [x21, #-1]
	sub	w9, w8, #48
	cmp	w9, #10
	b.lo	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w9, w8, #97
	cmp	w9, #6
	b.hs	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #-87
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w9, w8, #65
	cmp	w9, #5
	b.hi	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #-55
	b	LBB0_3
LBB0_11:
	mov	w0, #0
	b	LBB0_13
LBB0_12:
	str	w20, [x19]
	mov	w0, #1
LBB0_13:
	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
