	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_manifest
_read_manifest:                         ## @read_manifest
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	leaq	-48(%rbp), %rsi
	callq	_open_file
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movl	-48(%rbp), %edi
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rsi
	callq	_VOP_GETATTR
	testl	%eax, %eax
	je	LBB0_2
LBB0_10:
	xorl	%r12d, %r12d
LBB0_11:
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdi
	incq	%rdi
	movq	_M_VERIEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_malloc
	movq	%rax, %r12
	movq	-56(%rbp), %rcx
	xorl	%r8d, %r8d
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.3:
	movq	_IO_NODELOCKED@GOTPCREL(%rip), %r14
	movq	_NOCRED@GOTPCREL(%rip), %r15
	leaq	-72(%rbp), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_UIO_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %esi
	subq	%r8, %rcx
	movq	_UIO_SYSSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	(%r14), %r10d
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	(%rbx), %r11d
	movl	(%r15), %eax
	subq	$8, %rsp
	movq	%r12, %rdx
	pushq	%rbx
	pushq	%r13
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_vn_rdwr
	addq	$48, %rsp
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rcx
	movq	%rcx, %r8
	subq	-72(%rbp), %r8
	cmpq	%r8, %rcx
	ja	LBB0_4
LBB0_6:
	movb	$0, (%r12,%r8)
	movl	-48(%rbp), %edi
	xorl	%esi, %esi
	callq	_VOP_UNLOCK
	movl	-48(%rbp), %edi
	movq	_FREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	(%rcx), %edx
	callq	_vn_close
	movq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_verify_digest
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	leaq	L_.str(%rip), %rdi
	callq	_panic
	jmp	LBB0_11
LBB0_8:
	testq	%r12, %r12
	je	LBB0_10
## %bb.9:
	movq	_M_VERIEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_curthread,8,3                  ## @curthread
	.comm	_M_VERIEXEC,4,2                 ## @M_VERIEXEC
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_UIO_READ,4,2                   ## @UIO_READ
	.comm	_UIO_SYSSPACE,4,2               ## @UIO_SYSSPACE
	.comm	_IO_NODELOCKED,4,2              ## @IO_NODELOCKED
	.comm	_NOCRED,4,2                     ## @NOCRED
	.comm	_FREAD,4,2                      ## @FREAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Manifest hash doesn't match expected value!"

	.no_dead_strip	_read_manifest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_manifest
_read_manifest:                         ; @read_manifest
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x1
	add	x1, sp, #40
	bl	_open_file
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [sp, #40]
Lloh0:
	adrp	x21, _curthread@GOTPAGE
Lloh1:
	ldr	x21, [x21, _curthread@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w2, [x8]
	add	x1, sp, #32
	bl	_VOP_GETATTR
	cbz	w0, LBB0_4
LBB0_2:
	mov	x20, #0
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_4:
	ldr	x8, [sp, #32]
	add	x0, x8, #1
Lloh2:
	adrp	x22, _M_VERIEXEC@GOTPAGE
Lloh3:
	ldr	x22, [x22, _M_VERIEXEC@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh4:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	bl	_malloc
	mov	x20, x0
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_8
; %bb.5:
	mov	x4, #0
Lloh7:
	adrp	x23, _UIO_READ@GOTPAGE
Lloh8:
	ldr	x23, [x23, _UIO_READ@GOTPAGEOFF]
Lloh9:
	adrp	x24, _UIO_SYSSPACE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _UIO_SYSSPACE@GOTPAGEOFF]
Lloh11:
	adrp	x25, _IO_NODELOCKED@GOTPAGE
Lloh12:
	ldr	x25, [x25, _IO_NODELOCKED@GOTPAGEOFF]
	add	x26, sp, #24
Lloh13:
	adrp	x27, _NOCRED@GOTPAGE
Lloh14:
	ldr	x27, [x27, _NOCRED@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	ldr	w1, [sp, #40]
	sub	x3, x8, x4
	ldr	w5, [x24]
	ldr	w6, [x25]
	ldr	x8, [x21]
	ldr	w7, [x8]
	ldr	w9, [x27]
	stp	x26, x8, [sp, #8]
	str	w9, [sp]
	mov	x2, x20
	bl	_vn_rdwr
	cbnz	w0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	x9, x8, [sp, #24]
	sub	x4, x8, x9
	cmp	x8, x4
	b.hi	LBB0_6
	b	LBB0_9
LBB0_8:
	mov	x4, #0
LBB0_9:
	strb	wzr, [x20, x4]
	ldr	w0, [sp, #40]
	mov	w1, #0
	bl	_VOP_UNLOCK
	ldr	w0, [sp, #40]
Lloh15:
	adrp	x8, _FREAD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FREAD@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	x3, [x21]
	ldr	w2, [x3]
	bl	_vn_close
	ldr	x1, [sp, #32]
	mov	x0, x20
	mov	x2, x19
	bl	_verify_digest
	cbz	x0, LBB0_3
; %bb.10:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
	b	LBB0_3
LBB0_11:
	cbz	x20, LBB0_3
; %bb.12:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_free
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.comm	_M_VERIEXEC,4,2                 ; @M_VERIEXEC
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_UIO_READ,4,2                   ; @UIO_READ
	.comm	_UIO_SYSSPACE,4,2               ; @UIO_SYSSPACE
	.comm	_IO_NODELOCKED,4,2              ; @IO_NODELOCKED
	.comm	_NOCRED,4,2                     ; @NOCRED
	.comm	_FREAD,4,2                      ; @FREAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Manifest hash doesn't match expected value!"

	.no_dead_strip	_read_manifest
.subsections_via_symbols
