	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ima_store_measurement          ## -- Begin function ima_store_measurement
	.p2align	4, 0x90
_ima_store_measurement:                 ## @ima_store_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	%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, %r15
	movq	%rdi, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	(%rsi), %rax
	movq	(%rax), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	4(%rbx), %edi
	movl	4(%r14), %esi
	movq	_IMA_DIGEST_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	(%rbx), %edi
	movq	_IMA_EVENT_NAME_LEN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_strncpy
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_ima_store_template
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_1:
	negl	%r13d
	movq	_AUDIT_INTEGRITY_PCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$0, (%rsp)
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.1(%rip), %r8
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	%r13d, %r9d
	callq	_integrity_audit_msg
	jmp	LBB0_4
LBB0_3:
	movq	_IMA_MEASURED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"add_template_measure"

L_.str.1:                               ## @.str.1
	.asciz	"ENOMEM"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_AUDIT_INTEGRITY_PCR,4,2        ## @AUDIT_INTEGRITY_PCR
	.comm	_IMA_DIGEST_SIZE,4,2            ## @IMA_DIGEST_SIZE
	.comm	_IMA_EVENT_NAME_LEN_MAX,4,2     ## @IMA_EVENT_NAME_LEN_MAX
	.comm	_IMA_MEASURED,4,2               ## @IMA_MEASURED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ima_store_measurement          ; -- Begin function ima_store_measurement
	.p2align	2
_ima_store_measurement:                 ; @ima_store_measurement
	.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	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	x8, [x1]
	ldr	x20, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kmalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w0, [x22, #4]
	ldr	w1, [x19, #4]
Lloh6:
	adrp	x8, _IMA_DIGEST_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IMA_DIGEST_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	w0, [x22]
Lloh9:
	adrp	x8, _IMA_EVENT_NAME_LEN_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IMA_EVENT_NAME_LEN_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_strncpy
	mov	x0, x22
	mov	w1, #0
	mov	x2, x20
	bl	_ima_store_template
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x22
	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
	b	_kfree
LBB0_3:
	neg	w5, w23
Lloh12:
	adrp	x8, _AUDIT_INTEGRITY_PCR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AUDIT_INTEGRITY_PCR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x3, l_.str@PAGE
Lloh16:
	add	x3, x3, l_.str@PAGEOFF
Lloh17:
	adrp	x4, l_.str.1@PAGE
Lloh18:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	mov	w6, #0
	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
	b	_integrity_audit_msg
LBB0_4:
Lloh19:
	adrp	x8, _IMA_MEASURED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IMA_MEASURED@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"add_template_measure"

l_.str.1:                               ; @.str.1
	.asciz	"ENOMEM"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_AUDIT_INTEGRITY_PCR,4,2        ; @AUDIT_INTEGRITY_PCR
	.comm	_IMA_DIGEST_SIZE,4,2            ; @IMA_DIGEST_SIZE
	.comm	_IMA_EVENT_NAME_LEN_MAX,4,2     ; @IMA_EVENT_NAME_LEN_MAX
	.comm	_IMA_MEASURED,4,2               ; @IMA_MEASURED
.subsections_via_symbols
