	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_hex
_parse_hex:                             ## @parse_hex
	.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	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	leaq	1(%rdx), %r13
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movb	(%r14), %bl
	testb	%bl, %bl
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r9d, %r9d
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	xorl	%edi, %edi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	%ebx, %r8d
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=2
	xorl	%edx, %edx
	testl	%r9d, %r9d
	sete	%dl
	movl	%edx, %r9d
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=2
	movzbl	(%rcx), %ebx
	incq	%rcx
	testb	%bl, %bl
	je	LBB0_20
LBB0_6:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-48(%rbx), %edx
	movl	$-48, %esi
	cmpb	$10, %dl
	jb	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	leal	-65(%rbx), %edx
	movl	$-55, %esi
	cmpb	$6, %dl
	jb	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	leal	-97(%rbx), %edx
	movl	$-87, %esi
	cmpb	$6, %dl
	jae	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=2
	movzbl	%bl, %ebx
	addl	%esi, %ebx
	testl	%r9d, %r9d
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=2
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=2
	movl	%r8d, %edx
	shll	$4, %edx
	addl	%edx, %ebx
	movb	%bl, (%rax,%rdi)
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=2
	incq	%rdi
	jmp	LBB0_18
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	cmpb	$32, %bl
	je	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	cmpb	$58, %bl
	je	LBB0_19
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	testl	%r9d, %r9d
	jne	LBB0_21
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	testq	%rax, %rax
	je	LBB0_4
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edi, %edi
	testq	%rax, %rax
	jne	LBB0_22
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	callq	_xmalloc
	jmp	LBB0_1
LBB0_22:
	movq	%rdi, (%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_12
LBB0_21:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_12:
	movq	%r15, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_fprintf
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid hexadecimal character in '%s' (line %ld)\n"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"invalid hexadecimal value (partial byte) in '%s' (line %ld)\n"

	.no_dead_strip	_parse_hex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_hex
_parse_hex:                             ; @parse_hex
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, #0
	add	x23, x2, #1
	ldrb	w12, [x22]
	cbz	w12, LBB0_18
LBB0_1:
	mov	w9, #0
	mov	w10, #0
	mov	x8, #0
	mov	x11, x23
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x10, x12
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, #0
	cset	w9, eq
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w12, [x11], #1
	cbz	w12, LBB0_16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w13, w12, #48
	cmp	w13, #10
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w13, #-48
	add	w12, w13, w12
	cbnz	w9, LBB0_11
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	w13, w12, #65
	cmp	w13, #6
	b.hs	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w13, #-55
	add	w12, w13, w12
	cbnz	w9, LBB0_11
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	w13, w12, #97
	cmp	w13, #6
	b.hs	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w13, #-87
	add	w12, w13, w12
	cbz	w9, LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w12, w12, w10, lsl #4
	strb	w12, [x0, x8]
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #1
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w12, #32
	b.eq	LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w12, #58
	b.eq	LBB0_4
	b	LBB0_21
LBB0_16:
	cbnz	w9, LBB0_22
; %bb.17:
	cbz	x0, LBB0_19
	b	LBB0_20
LBB0_18:
	mov	x8, #0
	cbnz	x0, LBB0_20
LBB0_19:
	mov	x0, x8
	bl	_xmalloc
	ldrb	w12, [x22]
	cbnz	w12, LBB0_1
	b	LBB0_18
LBB0_20:
	str	x8, [x21]
	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
LBB0_21:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_23
LBB0_22:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_23:
	mov	x2, x20
	mov	x3, x19
	bl	_fprintf
Lloh10:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid hexadecimal character in '%s' (line %ld)\n"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"invalid hexadecimal value (partial byte) in '%s' (line %ld)\n"

	.no_dead_strip	_parse_hex
.subsections_via_symbols
