	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_security_node_sid              ## -- Begin function security_node_sid
	.p2align	4, 0x90
_security_node_sid:                     ## @security_node_sid
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r12d
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	_policy_rwlock@GOTPCREL(%rip), %rdi
	callq	_read_lock
	cmpl	$128, %ebx
	je	LBB0_8
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_7
## %bb.2:
	cmpl	$4, %r12d
	jne	LBB0_9
## %bb.3:
	movq	_policydb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_OCON_NODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.4:
	movl	(%r15), %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	36(%rbx), %ecx
	andl	%eax, %ecx
	cmpl	%ecx, 32(%rbx)
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
LBB0_7:
	movq	_SECINITSID_NODE@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
LBB0_18:
	movl	%eax, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_19
LBB0_8:
	cmpl	$8, %r12d
	jne	LBB0_9
## %bb.10:
	movq	_policydb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_OCON_NODE6@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	24(%rbx), %edx
	movl	28(%rbx), %esi
	movq	%r15, %rdi
	callq	_match_ipv6_addrmask
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_12
	jmp	LBB0_7
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_19:
	movq	_policy_rwlock@GOTPCREL(%rip), %rdi
	callq	_read_unlock
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	(%rbx), %rdx
	movl	(%rdx), %eax
	testl	%eax, %eax
	jne	LBB0_18
## %bb.15:
	movq	8(%rbx), %rsi
	movq	_sidtab@GOTPCREL(%rip), %rdi
	callq	_sidtab_context_to_sid
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.16:
	movq	(%rbx), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_policy_rwlock,4,2              ## @policy_rwlock
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_policydb,8,3                   ## @policydb
	.comm	_OCON_NODE,8,3                  ## @OCON_NODE
	.comm	_OCON_NODE6,8,3                 ## @OCON_NODE6
	.comm	_SECINITSID_NODE,4,2            ## @SECINITSID_NODE
	.comm	_sidtab,4,2                     ## @sidtab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_security_node_sid              ; -- Begin function security_node_sid
	.p2align	2
_security_node_sid:                     ; @security_node_sid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x0, _policy_rwlock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _policy_rwlock@GOTPAGEOFF]
	bl	_read_lock
	cmp	w22, #128
	b.eq	LBB0_7
; %bb.1:
	cmp	w22, #129
	b.ne	LBB0_11
; %bb.2:
	cmp	w21, #4
	b.ne	LBB0_13
; %bb.3:
Lloh2:
	adrp	x8, _policydb@GOTPAGE
Lloh3:
	ldr	x8, [x8, _policydb@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _OCON_NODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _OCON_NODE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	x21, [x8, x9, lsl #3]
	cbz	x21, LBB0_11
; %bb.4:
	ldr	w8, [x20]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w9, w10, [x21, #32]
	and	w10, w10, w8
	cmp	w9, w10
	b.eq	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x21, [x21, #16]
	cbnz	x21, LBB0_5
	b	LBB0_11
LBB0_7:
	cmp	w21, #8
	b.ne	LBB0_13
; %bb.8:
Lloh8:
	adrp	x8, _policydb@GOTPAGE
Lloh9:
	ldr	x8, [x8, _policydb@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _OCON_NODE6@GOTPAGE
Lloh12:
	ldr	x9, [x9, _OCON_NODE6@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	x21, [x8, x9, lsl #3]
	cbz	x21, LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x21, #24]
	mov	x0, x20
	bl	_match_ipv6_addrmask
	cbnz	w0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x21, [x21, #16]
	cbnz	x21, LBB0_9
LBB0_11:
	mov	w20, #0
Lloh14:
	adrp	x8, _SECINITSID_NODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SECINITSID_NODE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
LBB0_12:
	str	w8, [x19]
	b	LBB0_14
LBB0_13:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_14:
Lloh20:
	adrp	x0, _policy_rwlock@GOTPAGE
Lloh21:
	ldr	x0, [x0, _policy_rwlock@GOTPAGEOFF]
	bl	_read_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	x2, [x21]
	ldr	w8, [x2]
	cbz	w8, LBB0_17
LBB0_16:
	mov	w20, #0
	b	LBB0_12
LBB0_17:
	ldr	x1, [x21, #8]
Lloh22:
	adrp	x0, _sidtab@GOTPAGE
Lloh23:
	ldr	x0, [x0, _sidtab@GOTPAGEOFF]
	bl	_sidtab_context_to_sid
	mov	x20, x0
	cbnz	w0, LBB0_14
; %bb.18:
	ldr	x8, [x21]
	ldr	w8, [x8]
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_policy_rwlock,4,2              ; @policy_rwlock
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_policydb,8,3                   ; @policydb
	.comm	_OCON_NODE,8,3                  ; @OCON_NODE
	.comm	_OCON_NODE6,8,3                 ; @OCON_NODE6
	.comm	_SECINITSID_NODE,4,2            ; @SECINITSID_NODE
	.comm	_sidtab,4,2                     ; @sidtab
.subsections_via_symbols
