	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nd_uuid_parse
_nd_uuid_parse:                         ## @nd_uuid_parse
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%r13d, %r13d
	movq	%rdx, %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	$3, %r15
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%r13
	cmpq	$16, %r13
	je	LBB0_8
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r15), %edi
	callq	_isxdigit
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movsbl	1(%r15), %edi
	callq	_isxdigit
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movsbl	(%r15), %edi
	callq	_hex_to_bin
	movl	%eax, %ebx
	shll	$4, %ebx
	movsbl	1(%r15), %edi
	callq	_hex_to_bin
	orl	%ebx, %eax
	movl	%eax, -112(%rbp,%r13,4)
	movsbl	2(%r15), %edi
	callq	_is_uuid_sep
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	$2, %r15
	jmp	LBB0_7
LBB0_3:
	movl	%r15d, %ecx
	subl	%r12d, %ecx
	movsbl	(%r15), %r8d
	leaq	1(%r15), %r9
	subl	%r12d, %r9d
	movsbl	1(%r15), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_8:
	leaq	-112(%rbp), %rsi
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	$64, %edx
	callq	_memcpy
	xorl	%eax, %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pos: %d buf[%zd]: %c buf[%zd]: %c\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_nd_uuid_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nd_uuid_parse
_nd_uuid_parse:                         ; @nd_uuid_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	mov	x19, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	add	x25, sp, #8
	mov	x24, x2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x24]
	bl	_isxdigit
	cbz	w0, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrsb	w0, [x24, #1]
	bl	_isxdigit
	cbz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrsb	w0, [x24]
	bl	_hex_to_bin
	mov	x23, x0
	ldrsb	w0, [x24, #1]
	bl	_hex_to_bin
	orr	w8, w0, w23, lsl #4
	str	w8, [x25, x19, lsl #2]
	ldrsb	w0, [x24, #2]!
	bl	_is_uuid_sep
	cmp	x0, #0
	cinc	x24, x24, ne
	add	x19, x19, #1
	cmp	x19, #16
	b.ne	LBB0_1
; %bb.4:
	add	x1, sp, #8
	mov	x0, x22
	mov	w2, #64
	bl	_memcpy
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	sub	w3, w24, w21
	ldrsb	w4, [x24]
	ldrsb	w6, [x24, #1]!
	sub	w5, w24, w21
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_dev_dbg
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldr	x8, [sp, #72]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pos: %d buf[%zd]: %c buf[%zd]: %c\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_nd_uuid_parse
.subsections_via_symbols
