	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_selinux_audit_rule_match       ## -- Begin function selinux_audit_rule_match
	.p2align	4, 0x90
_selinux_audit_rule_match:              ## @selinux_audit_rule_match
	.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	%r8, %r12
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r13
	movl	%edx, %ebx
	movl	%esi, %r15d
	movl	%edi, %r14d
	movq	_policy_rwlock@GOTPCREL(%rip), %rdi
	callq	_read_lock
	movq	(%r13), %rax
	movq	_latest_granting@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_4
## %bb.3:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AUDIT_SELINUX_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_audit_log
	movq	_ESTALE@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_34
LBB0_1:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AUDIT_SELINUX_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_audit_log
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_35
LBB0_4:
	movq	_sidtab@GOTPCREL(%rip), %rdi
	movl	%r14d, %esi
	callq	_sidtab_search
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rsi
	xorl	%ebx, %ebx
	addl	$-134, %r15d
	cmpl	$9, %r15d
	ja	LBB0_34
## %bb.7:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%r15,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_8:
	cmpl	$128, %esi
	je	LBB0_11
## %bb.9:
	cmpl	$133, %esi
	jne	LBB0_34
## %bb.10:
	movl	16(%rax), %eax
	xorl	%ebx, %ebx
	cmpl	24(%r13), %eax
	sete	%bl
	jmp	LBB0_34
LBB0_5:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AUDIT_SELINUX_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_audit_log
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_34
LBB0_16:
	cmpl	$128, %esi
	je	LBB0_19
## %bb.17:
	cmpl	$133, %esi
	jne	LBB0_34
## %bb.18:
	movl	8(%rax), %eax
	xorl	%ebx, %ebx
	cmpl	16(%r13), %eax
	sete	%bl
	jmp	LBB0_34
LBB0_20:
	movq	(%rax), %r12
	jmp	LBB0_22
LBB0_12:
	cmpl	$128, %esi
	je	LBB0_15
## %bb.13:
	cmpl	$133, %esi
	jne	LBB0_34
## %bb.14:
	movl	12(%rax), %eax
	xorl	%ebx, %ebx
	cmpl	20(%r13), %eax
	sete	%bl
	jmp	LBB0_34
LBB0_21:
	movq	(%rax), %r12
	addq	$4, %r12
LBB0_22:
	addl	$-128, %esi
	cmpl	$5, %esi
	ja	LBB0_34
## %bb.23:
	leaq	LJTI0_1(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_25:
	movq	8(%r13), %rdi
	movq	%r12, %rsi
	callq	_mls_level_dom
	testl	%eax, %eax
	je	LBB0_34
LBB0_26:
	movq	8(%r13), %rdi
	movq	%r12, %rsi
	jmp	LBB0_27
LBB0_11:
	movl	16(%rax), %eax
	xorl	%ebx, %ebx
	cmpl	24(%r13), %eax
	setne	%bl
	jmp	LBB0_34
LBB0_19:
	movl	8(%rax), %eax
	xorl	%ebx, %ebx
	cmpl	16(%r13), %eax
	setne	%bl
	jmp	LBB0_34
LBB0_15:
	movl	12(%rax), %eax
	xorl	%ebx, %ebx
	cmpl	20(%r13), %eax
	setne	%bl
	jmp	LBB0_34
LBB0_28:
	movq	8(%r13), %rdi
	movq	%r12, %rsi
	jmp	LBB0_32
LBB0_29:
	movq	8(%r13), %rsi
	movq	%r12, %rdi
	callq	_mls_level_dom
	testl	%eax, %eax
	je	LBB0_34
## %bb.30:
	movq	8(%r13), %rsi
	movq	%r12, %rdi
LBB0_27:
	callq	_mls_level_eq
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	jmp	LBB0_34
LBB0_31:
	movq	8(%r13), %rsi
	movq	%r12, %rdi
LBB0_32:
	callq	_mls_level_dom
	jmp	LBB0_33
LBB0_24:
	movq	8(%r13), %rdi
	movq	%r12, %rsi
	callq	_mls_level_eq
LBB0_33:
	movl	%eax, %ebx
LBB0_34:
	movq	_policy_rwlock@GOTPCREL(%rip), %rdi
	callq	_read_unlock
LBB0_35:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_16
	.long	L0_0_set_20
	.long	L0_0_set_12
	.long	L0_0_set_21
	.long	L0_0_set_8
	.long	L0_0_set_16
	.long	L0_0_set_12
	.long	L0_0_set_20
	.long	L0_0_set_21
.set L0_1_set_26, LBB0_26-LJTI0_1
.set L0_1_set_25, LBB0_25-LJTI0_1
.set L0_1_set_28, LBB0_28-LJTI0_1
.set L0_1_set_29, LBB0_29-LJTI0_1
.set L0_1_set_31, LBB0_31-LJTI0_1
.set L0_1_set_24, LBB0_24-LJTI0_1
LJTI0_1:
	.long	L0_1_set_26
	.long	L0_1_set_25
	.long	L0_1_set_28
	.long	L0_1_set_29
	.long	L0_1_set_31
	.long	L0_1_set_24
	.end_data_region
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_AUDIT_SELINUX_ERR,4,2          ## @AUDIT_SELINUX_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"selinux_audit_rule_match: missing rule\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_policy_rwlock,4,2              ## @policy_rwlock
	.comm	_latest_granting,8,3            ## @latest_granting
L_.str.1:                               ## @.str.1
	.asciz	"selinux_audit_rule_match: stale rule\n"

	.comm	_ESTALE,4,2                     ## @ESTALE
	.comm	_sidtab,4,2                     ## @sidtab
L_.str.2:                               ## @.str.2
	.asciz	"selinux_audit_rule_match: unrecognized SID %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_selinux_audit_rule_match       ; -- Begin function selinux_audit_rule_match
	.p2align	2
_selinux_audit_rule_match:              ; @selinux_audit_rule_match
	.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	x21, x4
	cbz	x3, LBB0_3
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x0, _policy_rwlock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _policy_rwlock@GOTPAGEOFF]
	bl	_read_lock
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _latest_granting@GOTPAGE
Lloh3:
	ldr	x9, [x9, _latest_granting@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _AUDIT_SELINUX_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AUDIT_SELINUX_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_audit_log
Lloh13:
	adrp	x8, _ESTALE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ESTALE@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
Lloh15:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _AUDIT_SELINUX_ERR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AUDIT_SELINUX_ERR@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x3, l_.str@PAGE
Lloh22:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	bl	_audit_log
Lloh23:
	adrp	x8, _ENOENT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_13
LBB0_4:
Lloh26:
	adrp	x0, _sidtab@GOTPAGE
Lloh27:
	ldr	x0, [x0, _sidtab@GOTPAGEOFF]
	mov	x1, x22
	bl	_sidtab_search
	cbz	x0, LBB0_10
; %bb.5:
	sub	w8, w23, #134
	cmp	w8, #9
	b.hi	LBB0_35
; %bb.6:
Lloh28:
	adrp	x9, lJTI0_0@PAGE
Lloh29:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	cmp	w20, #128
	b.eq	LBB0_27
; %bb.8:
	cmp	w20, #133
	b.ne	LBB0_35
; %bb.9:
	ldr	w8, [x0, #16]
	ldr	w9, [x19, #24]
	b	LBB0_21
LBB0_10:
Lloh30:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x8, _AUDIT_SELINUX_ERR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AUDIT_SELINUX_ERR@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	str	x22, [sp]
Lloh36:
	adrp	x3, l_.str.2@PAGE
Lloh37:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_audit_log
Lloh38:
	adrp	x8, _ENOENT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_12:
Lloh40:
	adrp	x0, _policy_rwlock@GOTPAGE
Lloh41:
	ldr	x0, [x0, _policy_rwlock@GOTPAGEOFF]
	bl	_read_unlock
LBB0_13:
	mov	x0, x19
	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
LBB0_14:
	cmp	w20, #128
	b.eq	LBB0_28
; %bb.15:
	cmp	w20, #133
	b.ne	LBB0_35
; %bb.16:
	ldr	w8, [x0, #8]
	ldr	w9, [x19, #16]
	b	LBB0_21
LBB0_17:
	ldr	x21, [x0]
	b	LBB0_23
LBB0_18:
	cmp	w20, #128
	b.eq	LBB0_29
; %bb.19:
	cmp	w20, #133
	b.ne	LBB0_35
; %bb.20:
	ldr	w8, [x0, #12]
	ldr	w9, [x19, #20]
LBB0_21:
	cmp	w8, w9
	cset	w19, eq
	b	LBB0_12
LBB0_22:
	ldr	x8, [x0]
	add	x21, x8, #4
LBB0_23:
	sub	w8, w20, #128
	cmp	w8, #5
	b.hi	LBB0_35
; %bb.24:
Lloh42:
	adrp	x9, lJTI0_1@PAGE
Lloh43:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_25
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_25:
	ldr	x0, [x19, #8]
	mov	x1, x21
	bl	_mls_level_dom
	cbz	w0, LBB0_35
LBB0_26:
	ldr	x0, [x19, #8]
	mov	x1, x21
	b	LBB0_34
LBB0_27:
	ldr	w8, [x0, #16]
	ldr	w9, [x19, #24]
	b	LBB0_30
LBB0_28:
	ldr	w8, [x0, #8]
	ldr	w9, [x19, #16]
	b	LBB0_30
LBB0_29:
	ldr	w8, [x0, #12]
	ldr	w9, [x19, #20]
LBB0_30:
	cmp	w8, w9
	cset	w19, ne
	b	LBB0_12
LBB0_31:
	ldr	x0, [x19, #8]
	mov	x1, x21
	b	LBB0_37
LBB0_32:
	ldr	x1, [x19, #8]
	mov	x0, x21
	bl	_mls_level_dom
	cbz	w0, LBB0_35
; %bb.33:
	ldr	x1, [x19, #8]
	mov	x0, x21
LBB0_34:
	bl	_mls_level_eq
	cmp	w0, #0
	cset	w19, eq
	b	LBB0_12
LBB0_35:
	mov	w19, #0
	b	LBB0_12
LBB0_36:
	ldr	x1, [x19, #8]
	mov	x0, x21
LBB0_37:
	bl	_mls_level_dom
	b	LBB0_39
LBB0_38:
	ldr	x0, [x19, #8]
	mov	x1, x21
	bl	_mls_level_eq
LBB0_39:
	mov	x19, x0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_14-LBB0_7)>>2
	.byte	(LBB0_17-LBB0_7)>>2
	.byte	(LBB0_18-LBB0_7)>>2
	.byte	(LBB0_22-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_14-LBB0_7)>>2
	.byte	(LBB0_18-LBB0_7)>>2
	.byte	(LBB0_17-LBB0_7)>>2
	.byte	(LBB0_22-LBB0_7)>>2
lJTI0_1:
	.byte	(LBB0_26-LBB0_25)>>2
	.byte	(LBB0_25-LBB0_25)>>2
	.byte	(LBB0_31-LBB0_25)>>2
	.byte	(LBB0_32-LBB0_25)>>2
	.byte	(LBB0_36-LBB0_25)>>2
	.byte	(LBB0_38-LBB0_25)>>2
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_AUDIT_SELINUX_ERR,4,2          ; @AUDIT_SELINUX_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"selinux_audit_rule_match: missing rule\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_policy_rwlock,4,2              ; @policy_rwlock
	.comm	_latest_granting,8,3            ; @latest_granting
l_.str.1:                               ; @.str.1
	.asciz	"selinux_audit_rule_match: stale rule\n"

	.comm	_ESTALE,4,2                     ; @ESTALE
	.comm	_sidtab,4,2                     ; @sidtab
l_.str.2:                               ; @.str.2
	.asciz	"selinux_audit_rule_match: unrecognized SID %d\n"

.subsections_via_symbols
