	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Com_HexStrToInt                ## -- Begin function Com_HexStrToInt
	.p2align	4, 0x90
_Com_HexStrToInt:                       ## @Com_HexStrToInt
	.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
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rdi, %r14
	cmpb	$48, (%rdi)
	jne	LBB0_14
## %bb.2:
	cmpb	$120, 1(%r14)
	jne	LBB0_14
## %bb.3:
	cmpb	$0, 2(%r14)
	je	LBB0_14
## %bb.4:
	movq	%r14, %rdi
	callq	_strlen
	xorl	%ebx, %ebx
	cmpl	$3, %eax
	jl	LBB0_15
## %bb.5:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	movl	$2, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	shll	$4, %ebx
	movzbl	%cl, %eax
	addl	%eax, %ebx
	incq	%r12
	cmpq	%r12, %r15
	je	LBB0_15
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r14,%r12), %edi
	callq	_tolower
                                        ## kill: def $al killed $al def $rax
	leal	-48(%rax), %ecx
	cmpb	$10, %cl
	jb	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leal	-97(%rax), %ecx
	cmpb	$5, %cl
	ja	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	addb	$-87, %al
	movl	%eax, %ecx
	jmp	LBB0_6
LBB0_14:
	movl	$-1, %ebx
LBB0_15:
	movl	%ebx, %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	_Com_HexStrToInt                ; -- Begin function Com_HexStrToInt
	.p2align	2
_Com_HexStrToInt:                       ; @Com_HexStrToInt
	.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
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	ldrb	w8, [x0]
	cmp	w8, #48
	b.ne	LBB0_10
; %bb.2:
	ldrb	w8, [x20, #1]
	cmp	w8, #120
	b.ne	LBB0_10
; %bb.3:
	ldrb	w8, [x20, #2]
	cbz	w8, LBB0_10
; %bb.4:
	mov	x0, x20
	bl	_strlen
	cmp	w0, #3
	b.lt	LBB0_12
; %bb.5:
	mov	w19, #0
	mov	w8, w0
	add	x20, x20, #2
	sub	x21, x8, #2
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	lsl	w9, w19, #4
	add	w19, w9, w8, uxtb
	add	x20, x20, #1
	subs	x21, x21, #1
	b.eq	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x20]
	bl	_tolower
	sub	w8, w0, #48
	cmp	w8, #10
	b.lo	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w8, w0, #97
	cmp	w8, #5
	b.hi	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w8, w0, #87
	b	LBB0_6
LBB0_10:
	mov	w19, #-1
LBB0_11:
	mov	x0, x19
	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
LBB0_12:
	mov	w19, #0
	b	LBB0_11
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
