	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_manifest
_find_manifest:                         ## @find_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	%rdi, %r15
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %r12
	movl	(%r12), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	(%r12), %edx
	decl	%edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_strncpy
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movb	$0, (%rax)
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, %r12
	movq	_VE_FINGERPRINT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_manifest_names@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	(%r13), %r8
	testq	%r8, %r8
	je	LBB0_9
## %bb.3:
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	addq	$8, %r13
	leaq	-64(%rbp), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %r8
	addq	$8, %r13
	testq	%r8, %r8
	je	LBB0_6
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rcx
	callq	_snprintf
	movl	$5, %edi
	movq	%rbx, %rsi
	callq	_DEBUG_PRINTF
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -64(%rbp)
	jle	LBB0_5
## %bb.8:
	leaq	-64(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_load_manifest
	movl	%eax, %r15d
	jmp	LBB0_9
LBB0_1:
	movl	$-1, %r15d
	jmp	LBB0_10
LBB0_6:
	movl	-52(%rbp), %r15d                ## 4-byte Reload
LBB0_9:
	movq	%r12, %rdi
	callq	_free
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_10:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_VE_FINGERPRINT_NONE,4,2        ## @VE_FINGERPRINT_NONE
	.comm	_manifest_names,8,3             ## @manifest_names
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

	.comm	_MANIFEST_SKIP,8,3              ## @MANIFEST_SKIP
	.comm	_MANIFEST_SKIP_ALWAYS,8,3       ## @MANIFEST_SKIP_ALWAYS
	.no_dead_strip	_find_manifest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_manifest
_find_manifest:                         ; @find_manifest
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x1, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
	ldr	w19, [x8]
	mov	x9, x19
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x19, #15
	and	x10, x10, #0x1fffffff0
	sub	x20, x9, x10
	mov	sp, x20
	ldr	w8, [x8]
	sub	w2, w8, #1
	mov	x0, x20
	bl	_strncpy
	mov	x0, x20
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_8
; %bb.1:
	strb	wzr, [x0]
	mov	x0, x20
	bl	_strdup
	mov	x22, x0
Lloh7:
	adrp	x8, _VE_FINGERPRINT_NONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VE_FINGERPRINT_NONE@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
Lloh10:
	adrp	x8, _manifest_names@GOTPAGE
Lloh11:
	ldr	x8, [x8, _manifest_names@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x4, [x8]
	cbz	x4, LBB0_7
; %bb.2:
	add	x25, x8, #8
Lloh13:
	adrp	x23, l_.str@PAGE
Lloh14:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x4, [x25], #8
	cbz	x4, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	bl	_snprintf
	mov	w0, #5
	mov	x1, x20
	bl	_DEBUG_PRINTF
	sub	x1, x29, #80
	mov	x0, x20
	bl	_stat
	cbnz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x8, [x29, #-80]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.6:
	sub	x3, x29, #80
	mov	x0, x20
	mov	x1, #0
	mov	x2, #0
	bl	_load_manifest
	mov	x21, x0
LBB0_7:
	mov	x0, x22
	bl	_free
	b	LBB0_9
LBB0_8:
	mov	w21, #-1
LBB0_9:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x21
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_VE_FINGERPRINT_NONE,4,2        ; @VE_FINGERPRINT_NONE
	.comm	_manifest_names,8,3             ; @manifest_names
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

	.comm	_MANIFEST_SKIP,8,3              ; @MANIFEST_SKIP
	.comm	_MANIFEST_SKIP_ALWAYS,8,3       ; @MANIFEST_SKIP_ALWAYS
	.no_dead_strip	_find_manifest
.subsections_via_symbols
