	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nes_setup_virt_qp
_nes_setup_virt_qp:                     ## @nes_setup_virt_qp
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	(%rdx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %edx
	movl	%edx, %eax
	sarl	$3, %eax
	movslq	%eax, %rcx
	movq	_NES_DBG_QP@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	16(%rsi), %r8
	movq	8(%rsi), %r9
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_nes_debug
	movq	16(%r13), %r15
	movl	(%r15), %edi
	callq	_le32_to_cpu
	movl	4(%r15), %edi
	callq	_le32_to_cpu
	movq	24(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	callq	_kmap
	movl	%eax, 12(%r12)
	movq	24(%r13), %rcx
	movq	%rcx, 64(%r12)
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	sarl	$10, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movslq	%eax, %rbx
	movl	(%r15,%rbx,4), %edi
	callq	_le32_to_cpu
	movl	4(%r15,%rbx,4), %edi
	callq	_le32_to_cpu
	movl	(%r14), %edi
	movl	12(%r12), %edx
	movslq	8(%r12), %rcx
	movq	24(%r12), %r8
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_nes_debug
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	4(%r14), %eax
	testl	%eax, %eax
	movq	%r12, %r15
	je	LBB0_13
## %bb.3:
	decl	%eax
	movl	%eax, 4(%r14)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edi
	leaq	80(%r15), %rdx
	movl	$256, %esi                      ## imm = 0x100
	callq	_pci_alloc_consistent
	movq	%rax, 72(%r15)
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	16(%r13), %rdx
	movq	%rdx, %rax
	cmpl	$1024, -44(%rbp)                ## 4-byte Folded Reload
                                        ## imm = 0x400
	movq	-72(%rbp), %r11                 ## 8-byte Reload
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	jb	LBB0_33
## %bb.5:
	leaq	64(%rbx), %rcx
	leal	-1(%r10), %r9d
	cmpl	$7, %r9d
	jb	LBB0_6
## %bb.15:
	movq	%rbx, %rax
	subq	%rdx, %rax
	addq	$64, %rax
	cmpq	$32, %rax
	jae	LBB0_17
LBB0_6:
	movq	%rdx, %rax
LBB0_26:
	leal	-1(%r10), %r8d
	movl	%r10d, %r9d
	andl	$7, %r9d
	je	LBB0_30
## %bb.27:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %edi
	addq	$4, %rax
	movl	%edi, (%rcx)
	addq	$4, %rcx
	incl	%esi
	cmpl	%esi, %r9d
	jne	LBB0_28
## %bb.29:
	subl	%esi, %r10d
LBB0_30:
	cmpl	$7, %r8d
	jb	LBB0_33
## %bb.31:
	movl	%r10d, %r8d
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %esi
	movl	%esi, (%rcx,%rdi,4)
	movl	4(%rax), %esi
	movl	%esi, 4(%rcx,%rdi,4)
	movl	8(%rax), %esi
	movl	%esi, 8(%rcx,%rdi,4)
	movl	12(%rax), %esi
	movl	%esi, 12(%rcx,%rdi,4)
	movl	16(%rax), %esi
	movl	%esi, 16(%rcx,%rdi,4)
	movl	20(%rax), %esi
	movl	%esi, 20(%rcx,%rdi,4)
	movl	24(%rax), %esi
	movl	%esi, 24(%rcx,%rdi,4)
	movl	28(%rax), %esi
	addq	$32, %rax
	movl	%esi, 28(%rcx,%rdi,4)
	addq	$8, %rdi
	cmpl	%edi, %r8d
	jne	LBB0_32
	jmp	LBB0_33
LBB0_7:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_8:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
LBB0_9:
	xorl	%eax, %eax
	callq	_nes_debug
LBB0_10:
	movq	%r13, %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_11:
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	(%r13), %esi
	movq	16(%r13), %rdx
	movq	8(%r13), %rcx
	callq	_pci_free_consistent
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	64(%r15), %rdi
	callq	_kunmap
	jmp	LBB0_10
LBB0_14:
	movl	(%r12), %edi
	movl	(%r13), %esi
	movq	16(%r13), %rdx
	movq	8(%r13), %rcx
	callq	_pci_free_consistent
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_55
LBB0_17:
	incq	%r9
	movq	%r9, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rsi
	movq	%rsi, %rax
	shrq	$3, %rax
	incq	%rax
	movl	%eax, %r10d
	andl	$3, %r10d
	cmpq	$24, %rsi
	jae	LBB0_19
## %bb.18:
	xorl	%esi, %esi
	jmp	LBB0_21
LBB0_19:
	andq	$-4, %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rdx,%rsi,4), %xmm0
	movups	16(%rdx,%rsi,4), %xmm1
	movups	%xmm0, 64(%rbx,%rsi,4)
	movups	%xmm1, 80(%rbx,%rsi,4)
	movups	32(%rdx,%rsi,4), %xmm0
	movups	48(%rdx,%rsi,4), %xmm1
	movups	%xmm0, 96(%rbx,%rsi,4)
	movups	%xmm1, 112(%rbx,%rsi,4)
	movups	64(%rdx,%rsi,4), %xmm0
	movups	80(%rdx,%rsi,4), %xmm1
	movups	%xmm0, 128(%rbx,%rsi,4)
	movups	%xmm1, 144(%rbx,%rsi,4)
	movups	96(%rdx,%rsi,4), %xmm0
	movups	112(%rdx,%rsi,4), %xmm1
	movups	%xmm0, 160(%rbx,%rsi,4)
	movups	%xmm1, 176(%rbx,%rsi,4)
	addq	$32, %rsi
	addq	$-4, %rax
	jne	LBB0_20
LBB0_21:
	testq	%r10, %r10
	je	LBB0_24
## %bb.22:
	leaq	(%rbx,%rsi,4), %rax
	addq	$80, %rax
	leaq	(%rdx,%rsi,4), %rsi
	addq	$16, %rsi
	shlq	$5, %r10
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rsi,%rdi), %xmm0
	movups	(%rsi,%rdi), %xmm1
	movups	%xmm0, -16(%rax,%rdi)
	movups	%xmm1, (%rax,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %r10
	jne	LBB0_23
LBB0_24:
	leaq	(%rdx,%r8,4), %rax
	cmpq	%r8, %r9
	jne	LBB0_25
LBB0_33:
	cmpl	$1024, %r11d                    ## imm = 0x400
	jb	LBB0_52
## %bb.34:
	sarl	$10, %r11d
	leal	-1(%r11), %r9d
	cmpl	$7, %r9d
	jb	LBB0_45
## %bb.35:
	movq	%rbx, %rcx
	subq	%rax, %rcx
	cmpq	$32, %rcx
	jb	LBB0_45
## %bb.36:
	incq	%r9
	movq	%r9, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rcx
	movq	%rcx, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r10d
	andl	$3, %r10d
	cmpq	$24, %rcx
	jae	LBB0_38
## %bb.37:
	xorl	%ecx, %ecx
	jmp	LBB0_40
LBB0_38:
	andq	$-4, %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rax,%rcx,4), %xmm0
	movups	16(%rax,%rcx,4), %xmm1
	movups	%xmm0, (%rbx,%rcx,4)
	movups	%xmm1, 16(%rbx,%rcx,4)
	movups	32(%rax,%rcx,4), %xmm0
	movups	48(%rax,%rcx,4), %xmm1
	movups	%xmm0, 32(%rbx,%rcx,4)
	movups	%xmm1, 48(%rbx,%rcx,4)
	movups	64(%rax,%rcx,4), %xmm0
	movups	80(%rax,%rcx,4), %xmm1
	movups	%xmm0, 64(%rbx,%rcx,4)
	movups	%xmm1, 80(%rbx,%rcx,4)
	movups	96(%rax,%rcx,4), %xmm0
	movups	112(%rax,%rcx,4), %xmm1
	movups	%xmm0, 96(%rbx,%rcx,4)
	movups	%xmm1, 112(%rbx,%rcx,4)
	addq	$32, %rcx
	addq	$-4, %rdi
	jne	LBB0_39
LBB0_40:
	testq	%r10, %r10
	je	LBB0_43
## %bb.41:
	leaq	(%rbx,%rcx,4), %rdi
	addq	$16, %rdi
	leaq	(%rax,%rcx,4), %rcx
	addq	$16, %rcx
	shlq	$5, %r10
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rcx,%rsi), %xmm0
	movups	(%rcx,%rsi), %xmm1
	movups	%xmm0, -16(%rdi,%rsi)
	movups	%xmm1, (%rdi,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %r10
	jne	LBB0_42
LBB0_43:
	cmpq	%r8, %r9
	je	LBB0_52
## %bb.44:
	subl	%r8d, %r11d
	leaq	(%rax,%r8,4), %rax
	leaq	(%rbx,%r8,4), %rbx
LBB0_45:
	leal	-1(%r11), %r8d
	movl	%r11d, %esi
	andl	$7, %esi
	je	LBB0_49
## %bb.46:
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_47:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %ecx
	addq	$4, %rax
	movl	%ecx, (%rbx)
	addq	$4, %rbx
	incl	%edi
	cmpl	%edi, %esi
	jne	LBB0_47
## %bb.48:
	subl	%edi, %r11d
LBB0_49:
	cmpl	$7, %r8d
	jb	LBB0_52
## %bb.50:
	movl	%r11d, %ecx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_51:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rsi,4), %edi
	movl	%edi, (%rbx,%rsi,4)
	movl	4(%rax,%rsi,4), %edi
	movl	%edi, 4(%rbx,%rsi,4)
	movl	8(%rax,%rsi,4), %edi
	movl	%edi, 8(%rbx,%rsi,4)
	movl	12(%rax,%rsi,4), %edi
	movl	%edi, 12(%rbx,%rsi,4)
	movl	16(%rax,%rsi,4), %edi
	movl	%edi, 16(%rbx,%rsi,4)
	movl	20(%rax,%rsi,4), %edi
	movl	%edi, 20(%rbx,%rsi,4)
	movl	24(%rax,%rsi,4), %edi
	movl	%edi, 24(%rbx,%rsi,4)
	movl	28(%rax,%rsi,4), %edi
	movl	%edi, 28(%rbx,%rsi,4)
	addq	$8, %rsi
	cmpl	%esi, %ecx
	jne	LBB0_51
LBB0_52:
	movl	(%r12), %edi
	movl	(%r13), %esi
	movq	8(%r13), %rcx
	callq	_pci_free_consistent
	movq	%r13, %rdi
	callq	_kfree
	movq	%r12, %r13
	movl	$256, %r12d                     ## imm = 0x100
	movl	$4, %edi
	movl	$256, %esi                      ## imm = 0x100
	callq	_max
                                        ## kill: def $eax killed $eax def $rax
	leal	256(%rax), %ecx
	movl	%ecx, (%r15)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	addl	%edx, %eax
	addl	$255, %eax
	movl	%eax, (%r15)
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	subl	(%rcx), %esi
	andl	%eax, %esi
	movl	%esi, (%r15)
	movl	(%r13), %edi
	leaq	32(%r15), %rdx
	callq	_pci_alloc_consistent
	testq	%rax, %rax
	je	LBB0_54
## %bb.53:
	movl	$1, 4(%r15)
	movq	%rax, 40(%r15)
	movq	%rax, %r14
	addq	$256, %r14                      ## imm = 0x100
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	%r14, 56(%r15)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	addq	32(%r15), %r12
	movq	%r12, 48(%r15)
	jmp	LBB0_12
LBB0_54:
	movl	(%r13), %edi
	movq	72(%r15), %rdx
	movq	80(%r15), %rcx
	movl	$256, %esi                      ## imm = 0x100
	callq	_pci_free_consistent
	movq	$0, 72(%r15)
LBB0_55:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	incl	4(%r14)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	64(%r15), %rdi
	callq	_kunmap
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_25:
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	subl	%r8d, %r10d
	leaq	(%rcx,%r8,4), %rcx
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_NES_DBG_QP,4,2                 ## @NES_DBG_QP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Userspace PBL, pbl_size=%u, pbl_entries = %d pbl_vbase=%p, pbl_pbase=%lx\n"

L_.str.1:                               ## @.str.1
	.asciz	"QP nespbl->page is NULL \n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"QP sq_vbase kmap failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"QP sq_vbase= %p sq_pbase=%lx rq_vbase=%p rq_pbase=%lx\n"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_nes_setup_virt_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nes_setup_virt_qp
_nes_setup_virt_qp:                     ; @nes_setup_virt_qp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x22, x4
	mov	x24, x3
	mov	x21, x1
	mov	x19, x0
	ldr	x25, [x2]
	ldr	x20, [x25, #8]
	ldr	w8, [x1]
	mov	x9, x8
	sbfx	x9, x9, #3, #29
Lloh0:
	adrp	x23, _NES_DBG_QP@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NES_DBG_QP@GOTPAGEOFF]
	ldr	w0, [x23]
	ldp	x11, x10, [x1, #8]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nes_debug
	ldr	x27, [x21, #16]
	ldr	w0, [x27]
	bl	_le32_to_cpu
	ldr	w0, [x27, #4]
	bl	_le32_to_cpu
	ldr	x0, [x21, #24]
	cbz	x0, LBB0_15
; %bb.1:
	bl	_kmap
	str	w0, [x19, #12]
	ldr	x8, [x21, #24]
	str	x8, [x19, #64]
	cbz	w0, LBB0_16
; %bb.2:
	asr	w26, w24, #10
	add	x27, x27, w26, sxtw #2
	ldr	w0, [x27]
	bl	_le32_to_cpu
	ldr	w0, [x27, #4]
	bl	_le32_to_cpu
	ldr	w0, [x23]
	ldr	x8, [x19, #24]
	ldp	w9, w10, [x19, #8]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	stp	x9, x8, [sp, #8]
	str	x10, [sp]
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_nes_debug
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_21
; %bb.3:
	sub	w8, w8, #1
	str	w8, [x20, #4]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w0, [x25]
	add	x2, x19, #80
	mov	w1, #256
	bl	_pci_alloc_consistent
	str	x0, [x19, #72]
	cbz	x0, LBB0_22
; %bb.4:
	mov	x23, x0
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	ldr	x2, [x21, #16]
	mov	x8, x2
	cmp	w24, #1024
	b.lo	LBB0_9
; %bb.5:
	add	x9, x23, #64
	sub	w8, w26, #1
	cmp	w8, #15
	b.lo	LBB0_7
; %bb.6:
	sub	x10, x23, x2
	add	x10, x10, #64
	cmp	x10, #64
	b.hs	LBB0_29
LBB0_7:
	mov	x8, x2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8], #4
	str	w10, [x9], #4
	subs	w26, w26, #1
	b.ne	LBB0_8
LBB0_9:
	cmp	w22, #1024
	b.lo	LBB0_25
; %bb.10:
	asr	w9, w22, #10
	sub	w10, w9, #1
	cmp	w10, #15
	b.lo	LBB0_23
; %bb.11:
	sub	x11, x23, x8
	cmp	x11, #64
	b.lo	LBB0_23
; %bb.12:
	add	x12, x10, #1
	and	x13, x12, #0x1fffffff0
	sub	w9, w9, w13
	lsl	x11, x13, #2
	add	x10, x8, x11
	add	x11, x23, x11
	add	x8, x8, #32
	add	x14, x23, #32
	mov	x15, x13
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x8, #-32]
	ldp	q2, q3, [x8], #64
	stp	q0, q1, [x14, #-32]
	stp	q2, q3, [x14], #64
	subs	x15, x15, #16
	b.ne	LBB0_13
; %bb.14:
	cmp	x12, x13
	b.ne	LBB0_24
	b	LBB0_25
LBB0_15:
	ldr	w0, [x23]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_16:
	ldr	w0, [x23]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_17:
	bl	_nes_debug
LBB0_18:
	mov	x0, x21
	bl	_kfree
LBB0_19:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_21:
	ldr	w0, [x25]
	ldr	w1, [x21]
	ldp	x3, x2, [x21, #8]
	bl	_pci_free_consistent
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x0, [x19, #64]
	bl	_kunmap
	b	LBB0_18
LBB0_22:
	ldr	w0, [x25]
	ldr	w1, [x21]
	ldp	x3, x2, [x21, #8]
	bl	_pci_free_consistent
	mov	x0, x21
	bl	_kfree
	b	LBB0_28
LBB0_23:
	mov	x10, x8
	mov	x11, x23
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x10], #4
	str	w8, [x11], #4
	subs	w9, w9, #1
	b.ne	LBB0_24
LBB0_25:
	ldr	w0, [x25]
	ldr	w1, [x21]
	ldr	x3, [x21, #8]
	bl	_pci_free_consistent
	mov	x0, x21
	bl	_kfree
	mov	w0, #4
	mov	w1, #256
	bl	_max
	add	w8, w0, #256
Lloh13:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
	str	w8, [x19]
	ldr	w8, [x9]
	add	w8, w0, w8
	add	w8, w8, #255
	str	w8, [x19]
	ldr	w9, [x9]
	neg	w9, w9
	and	w1, w8, w9
	mov	x2, x19
	str	w1, [x2], #32
	ldr	w0, [x25]
	bl	_pci_alloc_consistent
	cbz	x0, LBB0_27
; %bb.26:
	mov	w8, #1
	str	w8, [x19, #4]
	str	x0, [x19, #40]
	add	x20, x0, #256
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	str	x20, [x19, #56]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w0, #0
	ldr	x8, [x19, #32]
	add	x8, x8, #256
	str	x8, [x19, #48]
	b	LBB0_20
LBB0_27:
	ldr	w0, [x25]
	ldp	x2, x3, [x19, #72]
	mov	w1, #256
	bl	_pci_free_consistent
	str	xzr, [x19, #72]
LBB0_28:
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x0, [x19, #64]
	bl	_kunmap
	b	LBB0_19
LBB0_29:
	add	x10, x8, #1
	and	x11, x10, #0x1fffffff0
	sub	w26, w26, w11
	lsl	x12, x11, #2
	add	x8, x2, x12
	add	x9, x9, x12
	add	x12, x23, #112
	add	x13, x2, #32
	mov	x14, x11
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x13, #-32]
	ldp	q2, q3, [x13], #64
	stp	q0, q1, [x12, #-48]
	stp	q2, q3, [x12, #-16]
	add	x12, x12, #64
	subs	x14, x14, #16
	b.ne	LBB0_30
; %bb.31:
	cmp	x10, x11
	b.ne	LBB0_8
	b	LBB0_9
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NES_DBG_QP,4,2                 ; @NES_DBG_QP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Userspace PBL, pbl_size=%u, pbl_entries = %d pbl_vbase=%p, pbl_pbase=%lx\n"

l_.str.1:                               ; @.str.1
	.asciz	"QP nespbl->page is NULL \n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"QP sq_vbase kmap failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"QP sq_vbase= %p sq_pbase=%lx rq_vbase=%p rq_pbase=%lx\n"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_nes_setup_virt_qp
.subsections_via_symbols
