	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_read_guid                  ## -- Begin function sys_read_guid
	.p2align	4, 0x90
_sys_read_guid:                         ## @sys_read_guid
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	-64(%rbp), %r15
	movq	%r15, %rdx
	movl	$32, %ecx
	callq	_sys_read_string
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r15, -72(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-72(%rbp), %rdi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_strtoul
	leaq	L_.str(%rip), %rsi
	leaq	-72(%rbp), %rdi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_strtoul
	leaq	L_.str(%rip), %rsi
	leaq	-72(%rbp), %rdi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_strtoul
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	leaq	-72(%rbp), %rdi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	shll	$16, %r15d
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_strtoul
	movzwl	%ax, %edi
	orl	%r15d, %edi
	callq	_htobe64
	movl	%eax, (%r14)
	jmp	LBB0_8
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_1:
	movl	%eax, %ebx
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	": \t\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_read_guid                  ; -- Begin function sys_read_guid
	.p2align	2
_sys_read_guid:                         ; @sys_read_guid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	add	x20, sp, #8
	add	x2, sp, #8
	mov	w3, #32
	bl	_sys_read_string
	tbnz	w0, #31, LBB0_7
; %bb.1:
	str	x20, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, sp
	bl	_strsep
	cbz	x0, LBB0_6
; %bb.2:
	mov	x1, #0
	mov	w2, #16
	bl	_strtoul
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, sp
	bl	_strsep
	cbz	x0, LBB0_6
; %bb.3:
	mov	x1, #0
	mov	w2, #16
	bl	_strtoul
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, sp
	bl	_strsep
	cbz	x0, LBB0_6
; %bb.4:
	mov	x1, #0
	mov	w2, #16
	bl	_strtoul
	mov	x20, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, sp
	bl	_strsep
	cbz	x0, LBB0_6
; %bb.5:
	mov	x1, #0
	mov	w2, #16
	bl	_strtoul
	bfi	w0, w20, #16, #16
	bl	_htobe64
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldur	x8, [x29, #-24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	": \t\n"

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