	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sel_make_policycap
_sel_make_policycap:                    ## @sel_make_policycap
	.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	_policycap_dir@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_sel_remove_entries
	xorl	%r15d, %r15d
	movq	_policycap_names@GOTPCREL(%rip), %r12
	leaq	L_.str(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movq	%r13, %rsi
	cmpl	%eax, %r15d
	jae	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rax
	movl	%r15d, %ecx
	movq	(%rax,%rcx,8), %rsi
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rdi
	callq	_d_alloc_name
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_S_IRUGO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_S_IFREG@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_sel_make_inode
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_sel_policycap_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	_SEL_POLICYCAP_INO_OFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%r15d, %ecx
	movl	%ecx, (%rax)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_d_add
	incl	%r15d
	movq	_POLICYDB_CAPABILITY_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jbe	LBB0_1
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_policycap_dir,8,3              ## @policycap_dir
	.comm	_POLICYDB_CAPABILITY_MAX,4,2    ## @POLICYDB_CAPABILITY_MAX
	.comm	_policycap_names,8,3            ## @policycap_names
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_S_IFREG,4,2                    ## @S_IFREG
	.comm	_S_IRUGO,4,2                    ## @S_IRUGO
	.comm	_sel_policycap_ops,4,2          ## @sel_policycap_ops
	.comm	_SEL_POLICYCAP_INO_OFFSET,4,2   ## @SEL_POLICYCAP_INO_OFFSET
	.no_dead_strip	_sel_make_policycap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sel_make_policycap
_sel_make_policycap:                    ; @sel_make_policycap
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x20, _policycap_dir@GOTPAGE
Lloh1:
	ldr	x20, [x20, _policycap_dir@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_sel_remove_entries
	mov	w21, #0
Lloh2:
	adrp	x22, _policycap_names@GOTPAGE
Lloh3:
	ldr	x22, [x22, _policycap_names@GOTPAGEOFF]
Lloh4:
	adrp	x23, _S_IFREG@GOTPAGE
Lloh5:
	ldr	x23, [x23, _S_IFREG@GOTPAGEOFF]
Lloh6:
	adrp	x24, l_.str@PAGE
Lloh7:
	add	x24, x24, l_.str@PAGEOFF
Lloh8:
	adrp	x25, _S_IRUGO@GOTPAGE
Lloh9:
	ldr	x25, [x25, _S_IRUGO@GOTPAGEOFF]
Lloh10:
	adrp	x26, _sel_policycap_ops@GOTPAGE
Lloh11:
	ldr	x26, [x26, _sel_policycap_ops@GOTPAGEOFF]
Lloh12:
	adrp	x27, _SEL_POLICYCAP_INO_OFFSET@GOTPAGE
Lloh13:
	ldr	x27, [x27, _SEL_POLICYCAP_INO_OFFSET@GOTPAGEOFF]
Lloh14:
	adrp	x28, _POLICYDB_CAPABILITY_MAX@GOTPAGE
Lloh15:
	ldr	x28, [x28, _POLICYDB_CAPABILITY_MAX@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	mov	x1, x24
	cmp	w21, w0
	b.hs	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x22]
	ldr	x1, [x8, w21, uxtw #3]
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x20]
	bl	_d_alloc_name
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x19, x0
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	w8, [x23]
	ldr	w9, [x25]
	orr	w1, w9, w8
	bl	_sel_make_inode
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x1, x0
	str	x26, [x0, #8]
	ldr	w8, [x27]
	orr	w8, w8, w21
	str	w8, [x0]
	mov	x0, x19
	bl	_d_add
	add	w21, w21, #1
	ldr	w8, [x28]
	cmp	w21, w8
	b.ls	LBB0_1
; %bb.6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_policycap_dir,8,3              ; @policycap_dir
	.comm	_POLICYDB_CAPABILITY_MAX,4,2    ; @POLICYDB_CAPABILITY_MAX
	.comm	_policycap_names,8,3            ; @policycap_names
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_S_IFREG,4,2                    ; @S_IFREG
	.comm	_S_IRUGO,4,2                    ; @S_IRUGO
	.comm	_sel_policycap_ops,4,2          ; @sel_policycap_ops
	.comm	_SEL_POLICYCAP_INO_OFFSET,4,2   ; @SEL_POLICYCAP_INO_OFFSET
	.no_dead_strip	_sel_make_policycap
.subsections_via_symbols
