	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function selinux_sysctl
_selinux_sysctl:                        ## @selinux_sysctl
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_current_sid
	movl	%eax, %r14d
	cmpl	$1, %ebx
	jne	LBB0_1
## %bb.2:
	movq	_SECCLASS_DIR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_SECCLASS_FILE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	_selinux_sysctl_get_sid
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_SECINITSID_SYSCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
LBB0_5:
	cmpl	$1, %ebx
	jne	LBB0_7
## %bb.6:
	movl	-28(%rbp), %esi
	movq	_SECCLASS_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DIR__SEARCH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	jmp	LBB0_10
LBB0_7:
	movl	%ebx, %eax
	shll	$29, %eax
	sarl	$31, %eax
	movq	_FILE__READ@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	shll	$30, %ebx
	sarl	$31, %ebx
	movq	_FILE__WRITE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	orl	%eax, %ebx
	je	LBB0_8
## %bb.9:
	movl	-28(%rbp), %esi
	movq	_SECCLASS_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	%ebx, %ecx
LBB0_10:
	xorl	%r8d, %r8d
	callq	_avc_has_perm
	jmp	LBB0_11
LBB0_8:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SECCLASS_DIR,4,2               ## @SECCLASS_DIR
	.comm	_SECCLASS_FILE,4,2              ## @SECCLASS_FILE
	.comm	_SECINITSID_SYSCTL,4,2          ## @SECINITSID_SYSCTL
	.comm	_DIR__SEARCH,4,2                ## @DIR__SEARCH
	.comm	_FILE__READ,4,2                 ## @FILE__READ
	.comm	_FILE__WRITE,4,2                ## @FILE__WRITE
	.no_dead_strip	_selinux_sysctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function selinux_sysctl
_selinux_sysctl:                        ; @selinux_sysctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x21, x0
	bl	_current_sid
	mov	x19, x0
Lloh0:
	adrp	x23, _SECCLASS_DIR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SECCLASS_DIR@GOTPAGEOFF]
Lloh2:
	adrp	x22, _SECCLASS_FILE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SECCLASS_FILE@GOTPAGEOFF]
	cmp	w20, #1
	csel	x8, x23, x22, eq
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x21
	bl	_selinux_sysctl_get_sid
	cbz	w0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _SECINITSID_SYSCTL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SECINITSID_SYSCTL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #12]
LBB0_2:
	cmp	w20, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	w1, [sp, #12]
	ldr	w2, [x23]
Lloh7:
	adrp	x8, _DIR__SEARCH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DIR__SEARCH@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	b	LBB0_6
LBB0_4:
	lsl	w8, w20, #29
Lloh10:
	adrp	x9, _FILE__READ@GOTPAGE
Lloh11:
	ldr	x9, [x9, _FILE__READ@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	and	w8, w9, w8, asr #31
	lsl	w9, w20, #30
Lloh13:
	adrp	x10, _FILE__WRITE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _FILE__WRITE@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	and	w9, w10, w9, asr #31
	orr	w3, w9, w8
	cbz	w3, LBB0_7
; %bb.5:
	ldr	w1, [sp, #12]
	ldr	w2, [x22]
LBB0_6:
	mov	x0, x19
	mov	x4, #0
	bl	_avc_has_perm
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SECCLASS_DIR,4,2               ; @SECCLASS_DIR
	.comm	_SECCLASS_FILE,4,2              ; @SECCLASS_FILE
	.comm	_SECINITSID_SYSCTL,4,2          ; @SECINITSID_SYSCTL
	.comm	_DIR__SEARCH,4,2                ; @DIR__SEARCH
	.comm	_FILE__READ,4,2                 ; @FILE__READ
	.comm	_FILE__WRITE,4,2                ; @FILE__WRITE
	.no_dead_strip	_selinux_sysctl
.subsections_via_symbols
