	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function policydb_index_classes
_policydb_index_classes:                ## @policydb_index_classes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	shll	$3, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_kmalloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movl	28(%rbx), %edi
	movq	_common_index@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_hashtab_map
	testl	%eax, %eax
	jne	LBB0_2
## %bb.4:
	movl	(%rbx), %edi
	movl	(%r14), %esi
	callq	_kmalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movl	(%rbx), %edi
	shll	$3, %edi
	movl	(%r14), %esi
	callq	_kmalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movl	4(%rbx), %edi
	movq	_class_index@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_hashtab_map                    ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_common_index,4,2               ## @common_index
	.comm	_class_index,4,2                ## @class_index
	.no_dead_strip	_policydb_index_classes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function policydb_index_classes
_policydb_index_classes:                ; @policydb_index_classes
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0, #24]
	lsl	w0, w8, #3
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_kmalloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w0, [x19, #28]
Lloh2:
	adrp	x8, _common_index@GOTPAGE
Lloh3:
	ldr	x8, [x8, _common_index@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_hashtab_map
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	w0, [x19]
	ldr	w1, [x20]
	bl	_kmalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w8, [x19]
	lsl	w0, w8, #3
	ldr	w1, [x20]
	bl	_kmalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19, #4]
Lloh5:
	adrp	x8, _class_index@GOTPAGE
Lloh6:
	ldr	x8, [x8, _class_index@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hashtab_map
LBB0_5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_common_index,4,2               ; @common_index
	.comm	_class_index,4,2                ; @class_index
	.no_dead_strip	_policydb_index_classes
.subsections_via_symbols
