	.file	"extr_amd64-agp.c_cache_nbs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"no usable aperture found\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"consider rebooting with iommu=memaper=2 to get a good aperture\n"
	.text
	.p2align 4
	.type	cache_nbs, @function
cache_nbs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	eax, eax
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	amd_cache_northbridges@PLT
	test	rax, rax
	js	.L10
	mov	edi, DWORD PTR AMD_NB_GART[rip]
	xor	ebx, ebx
	call	amd_nb_has_feature@PLT
	test	eax, eax
	jne	.L4
.L10:
	mov	eax, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, ebx
	call	node_to_amd_nb@PLT
	mov	edx, r13d
	mov	rsi, r12
	mov	rbp, QWORD PTR [rax]
	mov	rdi, rbp
	call	fix_northbridge@PLT
	test	rax, rax
	js	.L12
	add	ebx, 1
.L4:
	xor	eax, eax
	call	amd_nb_num@PLT
	cmp	eax, ebx
	jg	.L6
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, -1
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cache_nbs, .-cache_nbs
	.comm	ENODEV,4,4
	.comm	AMD_NB_GART,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_amd64-agp.c_cache_nbs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"no usable aperture found\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cache_nbs, %function
cache_nbs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r7, r1
	bl	amd_cache_northbridges
	cmp	r0, #0
	blt	.L9
	ldr	r3, .L12
	ldr	r0, [r3]
	bl	amd_nb_has_feature
	cmp	r0, #0
	movne	r4, #0
	bne	.L4
.L9:
	ldr	r3, .L12+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, r4
	bl	node_to_amd_nb
	ldr	r5, [r0]
	mov	r2, r7
	mov	r0, r5
	mov	r1, r6
	bl	fix_northbridge
	cmp	r0, #0
	blt	.L11
	add	r4, r4, #1
.L4:
	bl	amd_nb_num
	cmp	r0, r4
	bgt	.L6
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r0, r5
	ldr	r1, .L12+8
	bl	dev_err
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	AMD_NB_GART
	.word	ENODEV
	.word	.LC0
	.size	cache_nbs, .-cache_nbs
	.comm	ENODEV,4,4
	.comm	AMD_NB_GART,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
