	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_metatags
_read_metatags:                         ## @read_metatags
	.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	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-1072(%rbp), %r14
	movq	%r14, %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_read
	cmpl	$1024, %eax                     ## imm = 0x400
	je	LBB0_3
## %bb.1:
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_20
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_20
LBB0_4:
	cltq
	movb	$0, -1072(%rbp,%rax)
	leaq	L_.str(%rip), %rbx
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_inst_kernel@GOTPCREL(%rip), %rdi
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rsi
	callq	_setpath
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	movq	%r12, %r14
	testl	%eax, %eax
	jne	LBB0_20
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%r14)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movl	$61, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r13
	incq	%r13
	movb	$0, (%rax)
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r12
	movb	$0, (%rax)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_inst_loader_rc@GOTPCREL(%rip), %rdi
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_inst_modules@GOTPCREL(%rip), %rdi
	movq	%r13, %rsi
	callq	_setmultipath
	jmp	LBB0_19
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_inst_rootfs@GOTPCREL(%rip), %rdi
	jmp	LBB0_18
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_20
LBB0_6:
	xorl	%eax, %eax
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_22
## %bb.21:
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"KERNEL"

	.comm	_inst_kernel,4,2                ## @inst_kernel
L_.str.1:                               ## @.str.1
	.asciz	"MODULES"

	.comm	_inst_modules,4,2               ## @inst_modules
L_.str.2:                               ## @.str.2
	.asciz	"ROOTFS"

	.comm	_inst_rootfs,4,2                ## @inst_rootfs
L_.str.3:                               ## @.str.3
	.asciz	"LOADER_RC"

	.comm	_inst_loader_rc,4,2             ## @inst_loader_rc
	.no_dead_strip	_read_metatags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_metatags
_read_metatags:                         ; @read_metatags
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #1040
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	mov	x1, sp
	mov	w2, #1024
	bl	_read
	cmp	w0, #1024
	b.eq	LBB0_3
; %bb.1:
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_21
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_21
LBB0_4:
	mov	x28, sp
	strb	wzr, [x28, w0, sxtw]
Lloh9:
	adrp	x19, l_.str@PAGE
Lloh10:
	add	x19, x19, l_.str@PAGEOFF
Lloh11:
	adrp	x20, _inst_kernel@GOTPAGE
Lloh12:
	ldr	x20, [x20, _inst_kernel@GOTPAGEOFF]
Lloh13:
	adrp	x21, l_.str.1@PAGE
Lloh14:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh15:
	adrp	x22, _inst_modules@GOTPAGE
Lloh16:
	ldr	x22, [x22, _inst_modules@GOTPAGEOFF]
Lloh17:
	adrp	x23, l_.str.2@PAGE
Lloh18:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh19:
	adrp	x24, _inst_rootfs@GOTPAGE
Lloh20:
	ldr	x24, [x24, _inst_rootfs@GOTPAGEOFF]
Lloh21:
	adrp	x26, l_.str.3@PAGE
Lloh22:
	add	x26, x26, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x1, x25
	bl	_setpath
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x28, x27
	cbnz	w0, LBB0_21
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x28]
	cbz	w8, LBB0_20
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x28
	mov	w1, #61
	bl	_strchr
	cbz	x0, LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x25, x0
	strb	wzr, [x25], #1
	mov	x0, x25
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x27, x0
	strb	wzr, [x27], #1
	mov	x0, x28
	mov	x1, x19
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x28
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x28
	mov	x1, x23
	bl	_strcmp
	cbz	x0, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x28
	mov	x1, x26
	bl	_strcmp
	cbz	x0, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #0
	b	LBB0_7
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	mov	x1, x25
	bl	_setmultipath
	b	LBB0_7
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x24
	b	LBB0_6
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh23:
	adrp	x0, _inst_loader_rc@GOTPAGE
Lloh24:
	ldr	x0, [x0, _inst_loader_rc@GOTPAGEOFF]
	b	LBB0_6
LBB0_19:
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	b	LBB0_21
LBB0_20:
	mov	w0, #0
LBB0_21:
	ldur	x8, [x29, #-96]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"KERNEL"

	.comm	_inst_kernel,4,2                ; @inst_kernel
l_.str.1:                               ; @.str.1
	.asciz	"MODULES"

	.comm	_inst_modules,4,2               ; @inst_modules
l_.str.2:                               ; @.str.2
	.asciz	"ROOTFS"

	.comm	_inst_rootfs,4,2                ; @inst_rootfs
l_.str.3:                               ; @.str.3
	.asciz	"LOADER_RC"

	.comm	_inst_loader_rc,4,2             ; @inst_loader_rc
	.no_dead_strip	_read_metatags
.subsections_via_symbols
