	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_manifest
_parse_manifest:                        ## @parse_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_read_manifest
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %r12
	xorl	%r15d, %r15d
	movq	%rax, %rbx
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%rbx, %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%rbx, %r13
	testq	%rbx, %rbx
	je	LBB0_13
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rax, %rbx
	movb	$0, (%rax)
	incq	%rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=2
	xorl	%ebx, %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=2
	movzbl	(%r13), %eax
	cmpb	$10, %al
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	testb	%al, %al
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_parse_entry
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	%r13, %rdx
	callq	_printf
	testq	%rbx, %rbx
	jne	LBB0_2
	jmp	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	testq	%rbx, %rbx
	jne	LBB0_2
LBB0_13:
	movq	_M_VERIEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_free
	xorl	%eax, %eax
	testl	%r15d, %r15d
	jne	LBB0_15
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac_veriexec_parser: Warning: Failed to parse entry with rc:%d, entry:\"%s\"\n"

	.comm	_M_VERIEXEC,4,2                 ## @M_VERIEXEC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_parse_manifest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_manifest
_parse_manifest:                        ; @parse_manifest
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	bl	_read_manifest
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x0
	mov	w24, #0
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	mov	x22, x0
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	x23, x22
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	mov	w1, #10
	bl	_strchr
	mov	x22, x0
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	strb	wzr, [x22], #1
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=2
	ldrb	w8, [x23]
	cmp	w8, #10
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	x23, x22
	cbnz	x22, LBB0_3
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	mov	x1, x20
	bl	_parse_entry
	cbz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, x0
	mov	x0, x21
	mov	x2, x23
	bl	_printf
	cbnz	x22, LBB0_2
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w24, w24, #1
	cbnz	x22, LBB0_2
LBB0_10:
Lloh2:
	adrp	x8, _M_VERIEXEC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_VERIEXEC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_free
	cbz	w24, LBB0_12
; %bb.11:
	mov	w0, #0
	b	LBB0_13
LBB0_12:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac_veriexec_parser: Warning: Failed to parse entry with rc:%d, entry:\"%s\"\n"

	.comm	_M_VERIEXEC,4,2                 ; @M_VERIEXEC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_parse_manifest
.subsections_via_symbols
