	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hex_to_int                     ## -- Begin function hex_to_int
	.p2align	4, 0x90
_hex_to_int:                            ## @hex_to_int
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$0, (%rsi)
	movsbl	(%rdi), %edx
	leal	-48(%rdx), %eax
	movl	$-48, %r10d
	movl	$-48, %ecx
	cmpb	$10, %al
	jb	LBB0_2
## %bb.1:
	leal	-97(%rdx), %r8d
	xorl	%eax, %eax
	movl	$-87, %ecx
	cmpb	$5, %r8b
	ja	LBB0_17
LBB0_2:
	addl	%edx, %ecx
	movl	%ecx, (%rsi)
	movsbl	1(%rdi), %r8d
	leal	-48(%r8), %eax
	cmpb	$10, %al
	jb	LBB0_4
## %bb.3:
	leal	-97(%r8), %edx
	xorl	%eax, %eax
	movl	$-87, %r10d
	cmpb	$5, %dl
	ja	LBB0_17
LBB0_4:
	shll	$4, %ecx
	addl	%r8d, %r10d
	addl	%ecx, %r10d
	movl	%r10d, (%rsi)
	movsbl	2(%rdi), %r9d
	leal	-48(%r9), %eax
	movl	$-48, %r8d
	movl	$-48, %ecx
	cmpb	$10, %al
	jb	LBB0_6
## %bb.5:
	leal	-97(%r9), %edx
	xorl	%eax, %eax
	movl	$-87, %ecx
	cmpb	$5, %dl
	ja	LBB0_17
LBB0_6:
	shll	$4, %r10d
	addl	%r9d, %ecx
	addl	%r10d, %ecx
	movl	%ecx, (%rsi)
	movsbl	3(%rdi), %edx
	leal	-48(%rdx), %eax
	cmpb	$10, %al
	jb	LBB0_8
## %bb.7:
	leal	-97(%rdx), %r9d
	xorl	%eax, %eax
	movl	$-87, %r8d
	cmpb	$5, %r9b
	ja	LBB0_17
LBB0_8:
	shll	$4, %ecx
	addl	%edx, %r8d
	addl	%ecx, %r8d
	movl	%r8d, (%rsi)
	movsbl	4(%rdi), %edx
	leal	-48(%rdx), %eax
	movl	$-48, %r9d
	movl	$-48, %ecx
	cmpb	$10, %al
	jb	LBB0_10
## %bb.9:
	leal	-97(%rdx), %r10d
	xorl	%eax, %eax
	movl	$-87, %ecx
	cmpb	$5, %r10b
	ja	LBB0_17
LBB0_10:
	shll	$4, %r8d
	addl	%edx, %ecx
	addl	%r8d, %ecx
	movl	%ecx, (%rsi)
	movsbl	5(%rdi), %edx
	leal	-48(%rdx), %eax
	cmpb	$10, %al
	jb	LBB0_12
## %bb.11:
	leal	-97(%rdx), %r8d
	xorl	%eax, %eax
	movl	$-87, %r9d
	cmpb	$5, %r8b
	ja	LBB0_17
LBB0_12:
	shll	$4, %ecx
	addl	%edx, %r9d
	addl	%ecx, %r9d
	movl	%r9d, (%rsi)
	movsbl	6(%rdi), %edx
	leal	-48(%rdx), %eax
	movl	$-48, %r8d
	movl	$-48, %ecx
	cmpb	$10, %al
	jb	LBB0_14
## %bb.13:
	leal	-97(%rdx), %r10d
	xorl	%eax, %eax
	movl	$-87, %ecx
	cmpb	$5, %r10b
	ja	LBB0_17
LBB0_14:
	shll	$4, %r9d
	addl	%edx, %ecx
	addl	%r9d, %ecx
	movl	%ecx, (%rsi)
	movsbl	7(%rdi), %edx
	leal	-48(%rdx), %eax
	cmpb	$10, %al
	jb	LBB0_16
## %bb.15:
	leal	-97(%rdx), %edi
	xorl	%eax, %eax
	movl	$-87, %r8d
	cmpb	$5, %dil
	ja	LBB0_17
LBB0_16:
	shll	$4, %ecx
	addl	%edx, %r8d
	addl	%ecx, %r8d
	movl	%r8d, (%rsi)
	movl	$1, %eax
LBB0_17:
	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	_hex_to_int                     ; -- Begin function hex_to_int
	.p2align	2
_hex_to_int:                            ; @hex_to_int
	.cfi_startproc
; %bb.0:
	str	wzr, [x1]
	ldrsb	w8, [x0]
	sub	w9, w8, #48
	cmp	w9, #10
	b.hs	LBB0_2
; %bb.1:
	mov	w9, #-48
	b	LBB0_4
LBB0_2:
	sub	w9, w8, #97
	cmp	w9, #5
	b.hi	LBB0_33
; %bb.3:
	mov	w9, #-87
LBB0_4:
	add	w8, w9, w8
	str	w8, [x1]
	ldrsb	w9, [x0, #1]
	sub	w10, w9, #48
	cmp	w10, #10
	b.hs	LBB0_6
; %bb.5:
	mov	w10, #-48
	b	LBB0_8
LBB0_6:
	sub	w10, w9, #97
	cmp	w10, #5
	b.hi	LBB0_33
; %bb.7:
	mov	w10, #-87
LBB0_8:
	add	w9, w10, w9
	add	w8, w9, w8, lsl #4
	str	w8, [x1]
	ldrsb	w9, [x0, #2]
	sub	w10, w9, #48
	cmp	w10, #10
	b.hs	LBB0_10
; %bb.9:
	mov	w10, #-48
	b	LBB0_12
LBB0_10:
	sub	w10, w9, #97
	cmp	w10, #5
	b.hi	LBB0_33
; %bb.11:
	mov	w10, #-87
LBB0_12:
	add	w9, w10, w9
	add	w8, w9, w8, lsl #4
	str	w8, [x1]
	ldrsb	w9, [x0, #3]
	sub	w10, w9, #48
	cmp	w10, #10
	b.hs	LBB0_14
; %bb.13:
	mov	w10, #-48
	b	LBB0_16
LBB0_14:
	sub	w10, w9, #97
	cmp	w10, #5
	b.hi	LBB0_33
; %bb.15:
	mov	w10, #-87
LBB0_16:
	add	w9, w10, w9
	add	w8, w9, w8, lsl #4
	str	w8, [x1]
	ldrsb	w9, [x0, #4]
	sub	w10, w9, #48
	cmp	w10, #10
	b.hs	LBB0_18
; %bb.17:
	mov	w10, #-48
	b	LBB0_20
LBB0_18:
	sub	w10, w9, #97
	cmp	w10, #5
	b.hi	LBB0_33
; %bb.19:
	mov	w10, #-87
LBB0_20:
	add	w9, w10, w9
	add	w8, w9, w8, lsl #4
	str	w8, [x1]
	ldrsb	w9, [x0, #5]
	sub	w10, w9, #48
	cmp	w10, #10
	b.hs	LBB0_22
; %bb.21:
	mov	w10, #-48
	b	LBB0_24
LBB0_22:
	sub	w10, w9, #97
	cmp	w10, #5
	b.hi	LBB0_33
; %bb.23:
	mov	w10, #-87
LBB0_24:
	add	w9, w10, w9
	add	w8, w9, w8, lsl #4
	str	w8, [x1]
	ldrsb	w9, [x0, #6]
	sub	w10, w9, #48
	cmp	w10, #10
	b.hs	LBB0_26
; %bb.25:
	mov	w10, #-48
	b	LBB0_28
LBB0_26:
	sub	w10, w9, #97
	cmp	w10, #5
	b.hi	LBB0_33
; %bb.27:
	mov	w10, #-87
LBB0_28:
	add	w9, w10, w9
	add	w8, w9, w8, lsl #4
	str	w8, [x1]
	ldrsb	w9, [x0, #7]
	sub	w10, w9, #48
	cmp	w10, #10
	b.hs	LBB0_30
; %bb.29:
	mov	w10, #-48
	b	LBB0_32
LBB0_30:
	sub	w10, w9, #97
	cmp	w10, #5
	b.hi	LBB0_33
; %bb.31:
	mov	w10, #-87
LBB0_32:
	add	w9, w10, w9
	add	w8, w9, w8, lsl #4
	str	w8, [x1]
	mov	w0, #1
	ret
LBB0_33:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
