	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_num
_read_num:                              ## @read_num
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	$0, (%rdx)
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.1:
	movq	%r8, %rbx
	movq	%rcx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	decq	%r14
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r12), %rax
	movsbl	(%r13,%rax), %edi
	callq	_ishexdigit
	movl	$-1, %r15d
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r12), %rax
	movsbl	1(%rax,%r13), %edi
	callq	_ishexdigit
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r12), %rax
	movsbl	(%r13,%rax), %edi
	callq	_hex_value
	movq	%rbx, %r15
	movl	%eax, %ebx
	shll	$4, %ebx
	movslq	(%r12), %rax
	movsbl	1(%rax,%r13), %edi
	callq	_hex_value
	orl	%ebx, %eax
	movq	%r15, %rbx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %ecx
	shll	$8, %ecx
	orl	%eax, %ecx
	movl	%ecx, (%rdx)
	addl	$2, (%r12)
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	(%rbx), %eax
	movzbl	%al, %eax
	movl	%eax, (%rbx)
	jmp	LBB0_6
LBB0_7:
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_read_num
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_num
_read_num:                              ; @read_num
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	str	wzr, [x2]
	cbz	x3, LBB0_7
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	subs	x20, x20, #1
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x22]
	ldrsb	w0, [x23, x8]
	bl	_ishexdigit
	cbz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x22]
	add	x8, x8, x23
	ldrsb	w0, [x8, #1]
	bl	_ishexdigit
	cbz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x22]
	ldrsb	w0, [x23, x8]
	bl	_hex_value
	mov	x24, x0
	ldrsw	x8, [x22]
	add	x8, x8, x23
	ldrsb	w0, [x8, #1]
	bl	_hex_value
	orr	w8, w0, w24, lsl #4
	ldr	w9, [x21]
	orr	w9, w8, w9, lsl #8
	str	w9, [x21]
	ldr	w9, [x22]
	add	w9, w9, #2
	str	w9, [x22]
	cbz	x19, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x19]
	add	w8, w9, w8
	and	w8, w8, #0xff
	str	w8, [x19]
	b	LBB0_2
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_read_num
.subsections_via_symbols
