	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psb_mmu_driver_init            ## -- Begin function psb_mmu_driver_init
	.p2align	4, 0x90
_psb_mmu_driver_init:                   ## @psb_mmu_driver_init
	.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
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	%r13, 48(%rax)
	movq	%rax, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_psb_mmu_alloc_pd
	movl	%eax, 40(%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	36(%rbx), %rdi
	callq	_spin_lock_init
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_init_rwsem
	movq	%r15, %rdi
	callq	_down_write
	movq	%rbx, %rdi
	addq	$32, %rdi
	movl	$1, %esi
	callq	_atomic_set
	movq	%r14, 24(%rbx)
	movq	_PSB_CR_BIF_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_PSB_RSGX32
	movl	%eax, (%rbx)
	movq	__PSB_CB_CTRL_CLEAR_FAULT@GOTPCREL(%rip), %r12
	orl	(%r12), %eax
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_PSB_WSGX32
	movl	(%r12), %edi
	notl	%edi
	andl	(%rbx), %edi
	movl	(%r14), %esi
	callq	_PSB_WSGX32
	movl	$0, 4(%rbx)
	movq	%r15, %rdi
	callq	_up_write
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %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	_PSB_CR_BIF_CTRL,4,2            ## @PSB_CR_BIF_CTRL
	.comm	__PSB_CB_CTRL_CLEAR_FAULT,4,2   ## @_PSB_CB_CTRL_CLEAR_FAULT
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_X86_FEATURE_CLFLUSH,4,2        ## @X86_FEATURE_CLFLUSH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psb_mmu_driver_init            ; -- Begin function psb_mmu_driver_init
	.p2align	2
_psb_mmu_driver_init:                   ; @psb_mmu_driver_init
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kmalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	str	x23, [x19, #48]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_psb_mmu_alloc_pd
	str	w0, [x19, #40]
	cbz	w0, LBB0_3
; %bb.2:
	add	x0, x19, #36
	bl	_spin_lock_init
	add	x21, x19, #16
	mov	x0, x21
	bl	_init_rwsem
	mov	x0, x21
	bl	_down_write
	add	x0, x19, #32
	mov	w1, #1
	bl	_atomic_set
	str	x20, [x19, #24]
Lloh3:
	adrp	x20, _PSB_CR_BIF_CTRL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _PSB_CR_BIF_CTRL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_PSB_RSGX32
	str	w0, [x19]
Lloh5:
	adrp	x22, __PSB_CB_CTRL_CLEAR_FAULT@GOTPAGE
Lloh6:
	ldr	x22, [x22, __PSB_CB_CTRL_CLEAR_FAULT@GOTPAGEOFF]
	ldr	w8, [x22]
	orr	w0, w8, w0
	ldr	w1, [x20]
	bl	_PSB_WSGX32
	ldr	w8, [x19]
	ldr	w9, [x22]
	bic	w0, w8, w9
	ldr	w1, [x20]
	bl	_PSB_WSGX32
	str	wzr, [x19, #4]
	mov	x0, x21
	bl	_up_write
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_PSB_CR_BIF_CTRL,4,2            ; @PSB_CR_BIF_CTRL
	.comm	__PSB_CB_CTRL_CLEAR_FAULT,4,2   ; @_PSB_CB_CTRL_CLEAR_FAULT
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_X86_FEATURE_CLFLUSH,4,2        ; @X86_FEATURE_CLFLUSH
.subsections_via_symbols
