	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ima_parse_add_rule             ## -- Begin function ima_parse_add_rule
	.p2align	4, 0x90
_ima_parse_add_rule:                    ## @ima_parse_add_rule
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -32(%rbp)
	movq	_ima_measure@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	_measure_default_rules@GOTPCREL(%rip), %rax
	je	LBB0_3
## %bb.1:
	movq	_AUDIT_INTEGRITY_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EACCES@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	xorl	%r9d, %r9d
	subl	(%r14), %r9d
	movl	$0, (%rsp)
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.1(%rip), %r8
LBB0_2:
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_integrity_audit_msg
	subl	(%r14), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_INIT_LIST_HEAD
	leaq	L_.str.3(%rip), %rsi
	leaq	-32(%rbp), %rdi
	callq	_strsep
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_strlen
	movl	%eax, %ebx
	incl	%ebx
	cmpb	$35, (%r15)
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_10
LBB0_4:
	movq	_AUDIT_INTEGRITY_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ENOMEM@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	xorl	%r9d, %r9d
	subl	(%r14), %r9d
	movl	$0, (%rsp)
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.2(%rip), %r8
	jmp	LBB0_2
LBB0_7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ima_parse_rule
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_kfree
	movq	_AUDIT_INTEGRITY_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$0, (%rsp)
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.4(%rip), %r8
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%r15d, %r9d
	callq	_integrity_audit_msg
	movl	%r15d, %ebx
	jmp	LBB0_10
LBB0_9:
	movq	_ima_measure_mutex@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_measure_policy_rules@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_list_add_tail
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"update_policy"

	.comm	_ima_measure,8,3                ## @ima_measure
	.comm	_measure_default_rules,4,2      ## @measure_default_rules
	.comm	_AUDIT_INTEGRITY_STATUS,4,2     ## @AUDIT_INTEGRITY_STATUS
L_.str.1:                               ## @.str.1
	.asciz	"already exists"

	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.2:                               ## @.str.2
	.asciz	"-ENOMEM"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"\n"

L_.str.4:                               ## @.str.4
	.asciz	"invalid policy"

	.comm	_ima_measure_mutex,4,2          ## @ima_measure_mutex
	.comm	_measure_policy_rules,4,2       ## @measure_policy_rules
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ima_parse_add_rule             ; -- Begin function ima_parse_add_rule
	.p2align	2
_ima_parse_add_rule:                    ; @ima_parse_add_rule
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	str	x0, [sp, #8]
Lloh0:
	adrp	x8, _ima_measure@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ima_measure@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _measure_default_rules@GOTPAGE
Lloh4:
	ldr	x9, [x9, _measure_default_rules@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _AUDIT_INTEGRITY_STATUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AUDIT_INTEGRITY_STATUS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x19, _EACCES@GOTPAGE
Lloh9:
	ldr	x19, [x19, _EACCES@GOTPAGEOFF]
	ldr	w8, [x19]
	neg	w5, w8
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
Lloh12:
	adrp	x4, l_.str.1@PAGE
Lloh13:
	add	x4, x4, l_.str.1@PAGEOFF
LBB0_2:
	mov	x1, #0
	mov	x2, #0
	mov	w6, #0
	bl	_integrity_audit_msg
	ldr	w8, [x19]
	neg	w19, w8
LBB0_3:
	mov	x0, 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
	add	sp, sp, #64
	ret
LBB0_4:
Lloh14:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.5:
	mov	x20, x0
	bl	_INIT_LIST_HEAD
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	bl	_strsep
	mov	x21, x0
	bl	_strlen
	add	w19, w0, #1
	ldrb	w8, [x21]
	cmp	w8, #35
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x20
	bl	_kfree
	b	LBB0_3
LBB0_7:
Lloh19:
	adrp	x8, _AUDIT_INTEGRITY_STATUS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AUDIT_INTEGRITY_STATUS@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x19, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x19, [x19, _ENOMEM@GOTPAGEOFF]
	ldr	w8, [x19]
	neg	w5, w8
Lloh24:
	adrp	x3, l_.str@PAGE
Lloh25:
	add	x3, x3, l_.str@PAGEOFF
Lloh26:
	adrp	x4, l_.str.2@PAGE
Lloh27:
	add	x4, x4, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_8:
	mov	x0, x21
	mov	x1, x20
	bl	_ima_parse_rule
	cbz	w0, LBB0_10
; %bb.9:
	mov	x21, x0
	mov	x0, x20
	bl	_kfree
Lloh28:
	adrp	x8, _AUDIT_INTEGRITY_STATUS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AUDIT_INTEGRITY_STATUS@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x3, l_.str@PAGE
Lloh32:
	add	x3, x3, l_.str@PAGEOFF
Lloh33:
	adrp	x4, l_.str.4@PAGE
Lloh34:
	add	x4, x4, l_.str.4@PAGEOFF
	mov	x1, #0
	mov	x2, #0
	mov	x5, x21
	mov	w6, #0
	bl	_integrity_audit_msg
	mov	x19, x21
	b	LBB0_3
LBB0_10:
Lloh35:
	adrp	x21, _ima_measure_mutex@GOTPAGE
Lloh36:
	ldr	x21, [x21, _ima_measure_mutex@GOTPAGEOFF]
	mov	x0, x21
	bl	_mutex_lock
Lloh37:
	adrp	x1, _measure_policy_rules@GOTPAGE
Lloh38:
	ldr	x1, [x1, _measure_policy_rules@GOTPAGEOFF]
	mov	x0, x20
	bl	_list_add_tail
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_3
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"update_policy"

	.comm	_ima_measure,8,3                ; @ima_measure
	.comm	_measure_default_rules,4,2      ; @measure_default_rules
	.comm	_AUDIT_INTEGRITY_STATUS,4,2     ; @AUDIT_INTEGRITY_STATUS
l_.str.1:                               ; @.str.1
	.asciz	"already exists"

	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.2:                               ; @.str.2
	.asciz	"-ENOMEM"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"\n"

l_.str.4:                               ; @.str.4
	.asciz	"invalid policy"

	.comm	_ima_measure_mutex,4,2          ; @ima_measure_mutex
	.comm	_measure_policy_rules,4,2       ; @measure_policy_rules
.subsections_via_symbols
