	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-51(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$3, %edx
	callq	_memset
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%r14, %rdi
	callq	_strpbrk
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rcx
	subq	%r14, %rcx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %rcx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %r9d
	movl	$2, %esi
	movq	%rcx, %rdi
	leaq	L_.str.1(%rip), %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_EQ_MSG
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$2, %edx
	callq	_memcpy
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %rdx
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_sscanf
	movslq	%eax, %rdi
	movl	(%rbx), %r8d
	movl	$1, %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_EQ_MSG
	incq	%r13
	xorl	%edi, %edi
	cmpq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	setbe	%dil
	movl	(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	callq	_ATF_REQUIRE_MSG
	testq	%r15, %r15
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	incq	%r14
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r14), %eax
	cmpb	$32, %al
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpb	$58, %al
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	%al, %al
	je	LBB0_10
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_10:
	movl	(%rbx), %ecx
	leaq	L_.str.5(%rip), %rdx
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_EQ_MSG
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" :"

L_.str.1:                               ## @.str.1
	.asciz	"invalid hex byte '%.*s' in vector %s"

L_.str.2:                               ## @.str.2
	.asciz	"%hhx"

L_.str.3:                               ## @.str.3
	.asciz	"invalid hex byte '%s' in vector %s"

L_.str.4:                               ## @.str.4
	.asciz	"got longer than expected value at %s"

L_.str.5:                               ## @.str.5
	.asciz	"got short value at %s"

	.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:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x28, x1
	mov	x21, x0
	add	x0, sp, #29
	mov	w1, #0
	mov	w2, #3
	bl	_memset
	mov	x22, #0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x25, l_.str.2@PAGE
Lloh3:
	add	x25, x25, l_.str.2@PAGEOFF
Lloh4:
	adrp	x26, l_.str.3@PAGE
Lloh5:
	add	x26, x26, l_.str.3@PAGEOFF
Lloh6:
	adrp	x27, l_.str.4@PAGE
Lloh7:
	add	x27, x27, l_.str.4@PAGEOFF
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x0, x28
	mov	x24, x1
	bl	_strpbrk
	mov	x23, x0
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x0, x23, x28
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x28
	bl	_strlen
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x21]
	stp	x28, x8, [sp, #8]
	str	x0, [sp]
	mov	w1, #2
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_ATF_REQUIRE_EQ_MSG
	add	x0, sp, #29
	mov	x1, x28
	mov	w2, #2
	bl	_memcpy
	add	x2, x20, x22
	add	x0, sp, #29
	mov	x1, x25
	bl	_sscanf
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	ldr	w9, [x21]
	add	x8, sp, #29
	stp	x8, x9, [sp]
	mov	w1, #1
	mov	x2, x26
	bl	_ATF_REQUIRE_EQ_MSG
	add	x22, x22, #1
	cmp	x22, x19
	cset	w0, ls
	ldr	w2, [x21]
	mov	x1, x27
	bl	_ATF_REQUIRE_MSG
	cbz	x23, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x28, x23
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x28, x28, #1
LBB0_7:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x28]
	cmp	w8, #32
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	w8, #58
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x1, x24
	b	LBB0_1
LBB0_11:
	ldr	w8, [x21]
	str	x8, [sp]
Lloh10:
	adrp	x2, l_.str.5@PAGE
Lloh11:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x22
	mov	x1, x19
	bl	_ATF_REQUIRE_EQ_MSG
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" :"

l_.str.1:                               ; @.str.1
	.asciz	"invalid hex byte '%.*s' in vector %s"

l_.str.2:                               ; @.str.2
	.asciz	"%hhx"

l_.str.3:                               ; @.str.3
	.asciz	"invalid hex byte '%s' in vector %s"

l_.str.4:                               ; @.str.4
	.asciz	"got longer than expected value at %s"

l_.str.5:                               ; @.str.5
	.asciz	"got short value at %s"

	.no_dead_strip	_parse_hex
.subsections_via_symbols
