	.file	"extr_mmu.c_psb_mmu_flush_pd_locked.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	psb_mmu_flush_pd_locked, @function
psb_mmu_flush_pd_locked:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	atomic_read@PLT
	test	ebx, ebx
	jne	.L2
	test	rax, rax
	jne	.L2
.L3:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	xor	esi, esi
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	atomic_set@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR PSB_CR_BIF_CTRL[rip]
	call	PSB_RSGX32@PLT
	mov	edi, DWORD PTR _PSB_CB_CTRL_INVALDC[rip]
	mov	esi, DWORD PTR PSB_CR_BIF_CTRL[rip]
	mov	ebx, eax
	or	edi, eax
	call	PSB_WSGX32@PLT
	xor	eax, eax
	call	wmb@PLT
	mov	edi, DWORD PTR _PSB_CB_CTRL_INVALDC[rip]
	mov	esi, DWORD PTR PSB_CR_BIF_CTRL[rip]
	not	edi
	and	edi, ebx
	call	PSB_WSGX32@PLT
	mov	edi, DWORD PTR PSB_CR_BIF_CTRL[rip]
	call	PSB_RSGX32@PLT
	mov	rdi, QWORD PTR 8[rbp]
	test	rdi, rdi
	je	.L3
	mov	esi, 1
	call	atomic_set@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	xor	esi, esi
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	atomic_set@PLT
	.cfi_endproc
.LFE0:
	.size	psb_mmu_flush_pd_locked, .-psb_mmu_flush_pd_locked
	.comm	_PSB_CB_CTRL_INVALDC,4,4
	.comm	PSB_CR_BIF_CTRL,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_mmu.c_psb_mmu_flush_pd_locked.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	psb_mmu_flush_pd_locked, %function
psb_mmu_flush_pd_locked:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r4, r0
	bl	atomic_read
	orrs	r3, r0, r5
	beq	.L3
	ldr	r5, .L10
	ldr	r7, .L10+4
	ldr	r0, [r5]
	bl	PSB_RSGX32
	mov	r6, r0
	ldr	r0, [r7]
	ldr	r1, [r5]
	orr	r0, r6, r0
	bl	PSB_WSGX32
	bl	wmb
	ldr	r0, [r7]
	ldr	r1, [r5]
	bic	r0, r6, r0
	bl	PSB_WSGX32
	ldr	r0, [r5]
	bl	PSB_RSGX32
	ldr	r0, [r4, #4]
	cmp	r0, #0
	beq	.L3
	mov	r1, #1
	bl	atomic_set
.L3:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r1, #0
	b	atomic_set
.L11:
	.align	2
.L10:
	.word	PSB_CR_BIF_CTRL
	.word	_PSB_CB_CTRL_INVALDC
	.size	psb_mmu_flush_pd_locked, .-psb_mmu_flush_pd_locked
	.comm	_PSB_CB_CTRL_INVALDC,4,4
	.comm	PSB_CR_BIF_CTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
