	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perm_read
_perm_read:                             ## @perm_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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	-42(%rbp), %rdi
	movl	$2, %edx
	movq	%r15, %rsi
	callq	_next_entry
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movsbl	-42(%rbp), %edi
	callq	_le32_to_cpu
	movq	%rax, %r14
	movsbl	-41(%rbp), %edi
	callq	_le32_to_cpu
	movq	%rax, (%r12)
	leaq	1(%r14), %rdi
	movl	(%r13), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_next_entry
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movb	$0, (%r13,%r14)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_hashtab_insert
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_3:
	movl	%eax, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_6
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_8:
	movl	%eax, %ebx
LBB0_6:
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_perm_destroy
LBB0_11:
	movl	%ebx, %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
	.no_dead_strip	_perm_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perm_read
_perm_read:                             ; @perm_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x20, x1
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	add	x0, sp, #14
	mov	x1, x21
	mov	w2, #2
	bl	_next_entry
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldrsb	w0, [sp, #14]
	bl	_le32_to_cpu
	mov	x24, x0
	ldrsb	w0, [sp, #15]
	bl	_le32_to_cpu
	str	x0, [x19]
	add	x0, x24, #1
	ldr	w1, [x22]
	bl	_kmalloc
	mov	x22, x0
	cbz	x0, LBB0_7
; %bb.3:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	bl	_next_entry
	tbnz	w0, #31, LBB0_8
; %bb.4:
	strb	wzr, [x22, x24]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_hashtab_insert
	mov	x23, x0
	cbnz	w0, LBB0_9
	b	LBB0_10
LBB0_5:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_10
LBB0_6:
	mov	x23, x0
	mov	x22, #0
	b	LBB0_9
LBB0_7:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_9
LBB0_8:
	mov	x23, x0
LBB0_9:
	mov	x0, x22
	mov	x1, x19
	mov	x2, #0
	bl	_perm_destroy
LBB0_10:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_perm_read
.subsections_via_symbols
