	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ima_collect_measurement        ## -- Begin function ima_collect_measurement
	.p2align	4, 0x90
_ima_collect_measurement:               ## @ima_collect_measurement
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_IMA_MEASURED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rsi), %rax
	movq	(%rax), %rax
	movl	(%rax), %r15d
	movl	8(%rdi), %edi
	movq	_IMA_DIGEST_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_ima_calc_hash
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	%r15d, 4(%rbx)
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_IMA_MEASURED,4,2               ## @IMA_MEASURED
	.comm	_IMA_DIGEST_SIZE,4,2            ## @IMA_DIGEST_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ima_collect_measurement        ; -- Begin function ima_collect_measurement
	.p2align	2
_ima_collect_measurement:               ; @ima_collect_measurement
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IMA_MEASURED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IMA_MEASURED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EEXIST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1]
	ldr	x8, [x8]
	ldr	w21, [x8]
	ldr	w0, [x0, #8]
Lloh6:
	adrp	x8, _IMA_DIGEST_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IMA_DIGEST_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_ima_calc_hash
	cbnz	w0, LBB0_4
; %bb.3:
	str	w21, [x19, #4]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_IMA_MEASURED,4,2               ; @IMA_MEASURED
	.comm	_IMA_DIGEST_SIZE,4,2            ; @IMA_DIGEST_SIZE
.subsections_via_symbols
