	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_security_genfs_sid             ## -- Begin function security_genfs_sid
	.p2align	4, 0x90
_security_genfs_sid:                    ## @security_genfs_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	%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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %r12
	cmpb	$47, (%rsi)
	sete	%al
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %r13
	testb	$1, %al
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%r13), %rsi
	movb	$1, %al
	cmpb	$47, 1(%r13)
	je	LBB0_1
LBB0_3:
	movq	_policy_rwlock@GOTPCREL(%rip), %rdi
	callq	_read_lock
	movq	%r15, %rdi
	callq	_unmap_class
	movq	%rax, %r15
	movq	_policydb@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %esi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
	jmp	LBB0_8
LBB0_7:
	je	LBB0_9
LBB0_8:
	movq	_SECINITSID_UNLABELED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movq	_policy_rwlock@GOTPCREL(%rip), %rdi
	callq	_read_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	(%rbx), %r12
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	16(%r12), %edi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	32(%r12), %r12
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	testq	%r12, %r12
	je	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	16(%r12), %edi
	callq	_strlen
	movq	24(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	%rcx, %r15
	jne	LBB0_14
	jmp	LBB0_13
LBB0_15:
	movq	(%r12), %rdx
	movq	(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_16
LBB0_18:
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_16:
	movq	8(%r12), %rsi
	movq	_sidtab@GOTPCREL(%rip), %rdi
	callq	_sidtab_context_to_sid
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.17:
	movq	(%r12), %rax
	movq	(%rax), %rax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_policy_rwlock,4,2              ## @policy_rwlock
	.comm	_policydb,8,3                   ## @policydb
	.comm	_SECINITSID_UNLABELED,8,3       ## @SECINITSID_UNLABELED
	.comm	_ENOENT,4,2                     ## @ENOENT
	.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_genfs_sid             ; -- Begin function security_genfs_sid
	.p2align	2
_security_genfs_sid:                    ; @security_genfs_sid
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x21, x2
	mov	x22, x0
	ldrb	w8, [x1]
	cmp	w8, #47
	cset	w8, eq
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x1
	tbz	w8, #0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x1, x20
	ldrb	w9, [x1, #1]!
	mov	w8, #1
	cmp	w9, #47
	b.eq	LBB0_1
LBB0_3:
Lloh0:
	adrp	x0, _policy_rwlock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _policy_rwlock@GOTPAGEOFF]
	bl	_read_lock
	mov	x0, x21
	bl	_unmap_class
Lloh2:
	adrp	x8, _policydb@GOTPAGE
Lloh3:
	ldr	x8, [x8, _policydb@GOTPAGEOFF]
Lloh4:
	ldr	x23, [x8]
	cbz	x23, LBB0_8
; %bb.4:
	mov	x21, x0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23, #8]
	mov	x0, x22
	bl	_strcmp
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x23, [x23, #16]
	cbnz	x23, LBB0_5
	b	LBB0_8
LBB0_7:
	cbz	w0, LBB0_10
LBB0_8:
Lloh5:
	adrp	x8, _SECINITSID_UNLABELED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SECINITSID_UNLABELED@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
Lloh11:
	adrp	x0, _policy_rwlock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _policy_rwlock@GOTPAGEOFF]
	bl	_read_unlock
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	x22, [x23]
	cbnz	x22, LBB0_12
	b	LBB0_8
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x22, [x22, #32]
	cbz	x22, LBB0_8
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, #16]
	bl	_strlen
	ldr	x8, [x22, #24]
	cmp	x8, #0
	ccmp	x21, x8, #4, ne
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x2, x0
	ldr	w0, [x22, #16]
	mov	x1, x20
	bl	_strncmp
	cbnz	x0, LBB0_11
; %bb.14:
	ldr	x2, [x22]
	ldr	x8, [x2]
	cbz	x8, LBB0_16
LBB0_15:
	mov	w20, #0
	str	x8, [x19]
	b	LBB0_9
LBB0_16:
	ldr	x1, [x22, #8]
Lloh13:
	adrp	x0, _sidtab@GOTPAGE
Lloh14:
	ldr	x0, [x0, _sidtab@GOTPAGEOFF]
	bl	_sidtab_context_to_sid
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.17:
	ldr	x8, [x22]
	ldr	x8, [x8]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_policy_rwlock,4,2              ; @policy_rwlock
	.comm	_policydb,8,3                   ; @policydb
	.comm	_SECINITSID_UNLABELED,8,3       ; @SECINITSID_UNLABELED
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_sidtab,4,2                     ; @sidtab
.subsections_via_symbols
