	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_security_set_bools             ## -- Begin function security_set_bools
	.p2align	4, 0x90
_security_set_bools:                    ## @security_set_bools
	.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	%rsi, %r12
	movl	%edi, %ebx
	movq	_policy_rwlock@GOTPCREL(%rip), %rdi
	callq	_write_lock_irq
	movq	_policydb@GOTPCREL(%rip), %rsi
	cmpl	%ebx, 24(%rsi)
	jne	LBB0_12
## %bb.1:
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.2:
	movl	%ebx, %edi
	movq	8(%rsi), %rax
	xorl	%r14d, %r14d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edx, %edx
	testl	%ecx, %ecx
	setne	%dl
	movq	8(%rsi), %rax
	movq	(%rax,%r14,8), %rcx
	movl	%edx, (%rcx)
	incq	%r14
	cmpq	%r14, %rdi
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%r14,4), %ecx
	xorl	%ebx, %ebx
	testl	%ecx, %ecx
	setne	%bl
	movq	(%rax,%r14,8), %rax
	movl	(%rax), %r15d
	cmpl	%ebx, %r15d
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%rdi), %r12d
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_AUDIT_MAC_CONFIG_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	16(%rsi), %rax
	movl	(%rax,%r14,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_audit_get_loginuid
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_audit_get_sessionid
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movl	%r12d, %edi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	leaq	L_.str(%rip), %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%ebx, %r9d
	pushq	%rax
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	%r15
	callq	_audit_log
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	_policydb@GOTPCREL(%rip), %rsi
	addq	$32, %rsp
	movl	(%r12,%r14,4), %ecx
	jmp	LBB0_5
LBB0_12:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_policy_rwlock@GOTPCREL(%rip), %rdi
	callq	_write_unlock_irq
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.13:
	negl	%r14d
	jmp	LBB0_16
LBB0_6:
	movq	(%rsi), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.7:
	movq	_policydb@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_evaluate_cond_node
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_9
LBB0_11:
	movq	_latest_granting@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	incl	%ebx
	movl	%ebx, (%rax)
	movq	_policy_rwlock@GOTPCREL(%rip), %rdi
	callq	_write_unlock_irq
	jmp	LBB0_15
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	movl	%ebx, %edi
	callq	_avc_ss_reset
	movl	%ebx, %edi
	callq	_selnl_notify_policyload
	movl	%ebx, %edi
	callq	_selinux_status_update_policyload
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_selinux_xfrm_notify_policyload
	jmp	LBB0_16
LBB0_10:
	movl	%eax, %r14d
	movq	_policy_rwlock@GOTPCREL(%rip), %rdi
	callq	_write_unlock_irq
LBB0_16:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_policy_rwlock,4,2              ## @policy_rwlock
	.comm	_policydb,32,3                  ## @policydb
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_current,8,3                    ## @current
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_AUDIT_MAC_CONFIG_CHANGE,4,2    ## @AUDIT_MAC_CONFIG_CHANGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bool=%s val=%d old_val=%d auid=%u ses=%u"

	.comm	_latest_granting,4,2            ## @latest_granting
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_security_set_bools             ; -- Begin function security_set_bools
	.p2align	2
_security_set_bools:                    ; @security_set_bools
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x0, _policy_rwlock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _policy_rwlock@GOTPAGEOFF]
	bl	_write_lock_irq
Lloh2:
	adrp	x11, _policydb@GOTPAGE
Lloh3:
	ldr	x11, [x11, _policydb@GOTPAGEOFF]
	ldr	w8, [x11, #24]
	cmp	w8, w21
	b.ne	LBB0_6
; %bb.1:
	cmp	w21, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x20, #0
	mov	w12, w21
	ldr	x8, [x11, #8]
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #0
	cset	w9, ne
	ldr	x8, [x11, #8]
	ldr	x10, [x8, x20, lsl #3]
	str	w9, [x10]
	add	x20, x20, #1
	cmp	x12, x20
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19, x20, lsl #2]
	cmp	w9, #0
	cset	w21, ne
	ldr	x8, [x8, x20, lsl #3]
	ldr	w22, [x8]
	cmp	w22, w21
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh4:
	adrp	x8, _current@GOTPAGE
Lloh5:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh6:
	ldr	x0, [x8]
	ldr	w23, [x0]
Lloh7:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh9:
	ldr	w24, [x8]
Lloh10:
	adrp	x8, _AUDIT_MAC_CONFIG_CHANGE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AUDIT_MAC_CONFIG_CHANGE@GOTPAGEOFF]
Lloh12:
	ldr	w25, [x8]
	ldr	x8, [x11, #16]
	lsl	x28, x20, #2
	ldr	w26, [x8, x28]
	mov	x19, x12
	bl	_audit_get_loginuid
	mov	x27, x0
Lloh13:
	adrp	x8, _current@GOTPAGE
Lloh14:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh15:
	ldr	x0, [x8]
	bl	_audit_get_sessionid
	str	w0, [sp]
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
Lloh16:
	adrp	x3, l_.str@PAGE
Lloh17:
	add	x3, x3, l_.str@PAGEOFF
	mov	x4, x26
	mov	x5, x21
	mov	x6, x22
	mov	x7, x27
	bl	_audit_log
	mov	x12, x19
Lloh18:
	adrp	x11, _policydb@GOTPAGE
Lloh19:
	ldr	x11, [x11, _policydb@GOTPAGEOFF]
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w9, [x19, x28]
	b	LBB0_3
LBB0_6:
Lloh20:
	adrp	x8, _EFAULT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh22:
	ldr	w19, [x8]
Lloh23:
	adrp	x0, _policy_rwlock@GOTPAGE
Lloh24:
	ldr	x0, [x0, _policy_rwlock@GOTPAGEOFF]
	bl	_write_unlock_irq
	cbz	w19, LBB0_13
; %bb.7:
	neg	w21, w19
	b	LBB0_15
LBB0_8:
	ldr	x19, [x11]
	cbz	x19, LBB0_12
; %bb.9:
Lloh25:
	adrp	x20, _policydb@GOTPAGE
Lloh26:
	ldr	x20, [x20, _policydb@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_evaluate_cond_node
	cbnz	w0, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x19, [x19]
	cbnz	x19, LBB0_10
LBB0_12:
Lloh27:
	adrp	x8, _latest_granting@GOTPAGE
Lloh28:
	ldr	x8, [x8, _latest_granting@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w19, w9, #1
	str	w19, [x8]
Lloh29:
	adrp	x0, _policy_rwlock@GOTPAGE
Lloh30:
	ldr	x0, [x0, _policy_rwlock@GOTPAGEOFF]
	bl	_write_unlock_irq
LBB0_13:
	mov	x0, x19
	bl	_avc_ss_reset
	mov	x0, x19
	bl	_selnl_notify_policyload
	mov	x0, x19
	bl	_selinux_status_update_policyload
	bl	_selinux_xfrm_notify_policyload
	mov	w21, #0
	b	LBB0_15
LBB0_14:
	mov	x21, x0
Lloh31:
	adrp	x0, _policy_rwlock@GOTPAGE
Lloh32:
	ldr	x0, [x0, _policy_rwlock@GOTPAGEOFF]
	bl	_write_unlock_irq
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_policy_rwlock,4,2              ; @policy_rwlock
	.comm	_policydb,32,3                  ; @policydb
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_current,8,3                    ; @current
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_AUDIT_MAC_CONFIG_CHANGE,4,2    ; @AUDIT_MAC_CONFIG_CHANGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bool=%s val=%d old_val=%d auid=%u ses=%u"

	.comm	_latest_granting,4,2            ; @latest_granting
.subsections_via_symbols
