	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function type_read
_type_read:                             ## @type_read
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	_POLICYDB_VERSION_BOUNDARY@GOTPCREL(%rip), %rbx
	xorl	%ecx, %ecx
	cmpq	(%rbx), %rax
	setl	%cl
	movl	$4, %edx
	subl	%ecx, %edx
	leaq	-44(%rbp), %rdi
	movq	%r15, %rsi
	callq	_next_entry
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movsbl	-44(%rbp), %edi
	callq	_le32_to_cpu
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movsbl	-43(%rbp), %edi
	callq	_le32_to_cpu
	movq	%rax, 16(%r13)
	movq	(%r12), %r14
	movq	(%rbx), %rbx
	movsbl	-42(%rbp), %edi
	callq	_le32_to_cpu
	cmpq	%rbx, %r14
	jge	LBB0_5
## %bb.10:
	movl	%eax, (%r13)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_18
LBB0_3:
	movl	%eax, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_5:
	movq	_TYPEDATUM_PROPERTY_PRIMARY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	je	LBB0_7
## %bb.6:
	movl	$1, (%r13)
LBB0_7:
	movq	_TYPEDATUM_PROPERTY_ATTRIBUTE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:
	movl	$1, 4(%r13)
LBB0_9:
	movsbl	-41(%rbp), %edi
	callq	_le32_to_cpu
	movq	%rax, 8(%r13)
LBB0_11:
	leal	1(%r12), %edi
	movl	(%rbx), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.14:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_next_entry
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	movslq	%r12d, %rax
	movb	$0, (%rbx,%rax)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_hashtab_insert
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.17:
	xorl	%r14d, %r14d
	jmp	LBB0_18
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_13
LBB0_15:
	movl	%eax, %r14d
LBB0_13:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_type_destroy
LBB0_18:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_POLICYDB_VERSION_BOUNDARY,8,3  ## @POLICYDB_VERSION_BOUNDARY
	.comm	_TYPEDATUM_PROPERTY_PRIMARY,4,2 ## @TYPEDATUM_PROPERTY_PRIMARY
	.comm	_TYPEDATUM_PROPERTY_ATTRIBUTE,4,2 ## @TYPEDATUM_PROPERTY_ATTRIBUTE
	.no_dead_strip	_type_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function type_read
_type_read:                             ; @type_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x23, x0
Lloh0:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x23]
Lloh2:
	adrp	x26, _POLICYDB_VERSION_BOUNDARY@GOTPAGE
Lloh3:
	ldr	x26, [x26, _POLICYDB_VERSION_BOUNDARY@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	mov	w8, #3
	cinc	w2, w8, ge
	add	x0, sp, #12
	mov	x1, x21
	bl	_next_entry
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldrsb	w0, [sp, #12]
	bl	_le32_to_cpu
	mov	x22, x0
	ldrsb	w0, [sp, #13]
	bl	_le32_to_cpu
	str	x0, [x19, #16]
	ldr	x23, [x23]
	ldr	x24, [x26]
	ldrsb	w0, [sp, #14]
	bl	_le32_to_cpu
	cmp	x23, x24
	b.ge	LBB0_6
; %bb.3:
	str	w0, [x19]
	b	LBB0_11
LBB0_4:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_17
LBB0_5:
	mov	x24, x0
	mov	x23, #0
	b	LBB0_16
LBB0_6:
Lloh7:
	adrp	x8, _TYPEDATUM_PROPERTY_PRIMARY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TYPEDATUM_PROPERTY_PRIMARY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x19]
LBB0_8:
Lloh10:
	adrp	x8, _TYPEDATUM_PROPERTY_ATTRIBUTE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TYPEDATUM_PROPERTY_ATTRIBUTE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.9:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_10:
	ldrsb	w0, [sp, #15]
	bl	_le32_to_cpu
	str	x0, [x19, #8]
LBB0_11:
	add	w0, w22, #1
	ldr	w1, [x25]
	bl	_kmalloc
	mov	x23, x0
	cbz	x0, LBB0_14
; %bb.12:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	bl	_next_entry
	tbnz	w0, #31, LBB0_15
; %bb.13:
	strb	wzr, [x23, w22, sxtw]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	bl	_hashtab_insert
	mov	x24, x0
	cbnz	w0, LBB0_16
	b	LBB0_17
LBB0_14:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_16
LBB0_15:
	mov	x24, x0
LBB0_16:
	mov	x0, x23
	mov	x1, x19
	mov	x2, #0
	bl	_type_destroy
LBB0_17:
	mov	x0, x24
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_POLICYDB_VERSION_BOUNDARY,8,3  ; @POLICYDB_VERSION_BOUNDARY
	.comm	_TYPEDATUM_PROPERTY_PRIMARY,4,2 ; @TYPEDATUM_PROPERTY_PRIMARY
	.comm	_TYPEDATUM_PROPERTY_ATTRIBUTE,4,2 ; @TYPEDATUM_PROPERTY_ATTRIBUTE
	.no_dead_strip	_type_read
.subsections_via_symbols
