	.file	"extr_iosf_mbi.c_iosf_mbi_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	iosf_mbi_write
	.type	iosf_mbi_write, @function
iosf_mbi_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r8, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	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
	cmp	QWORD PTR BT_MBI_UNIT_GFX[rip], rdi
	je	.L6
	mov	ebx, edx
	mov	edx, DWORD PTR MBI_MASK_LO[rip]
	mov	rdi, rsi
	mov	rsi, r8
	mov	r12d, ecx
	xor	r13d, r13d
	and	edx, ebx
	call	iosf_mbi_form_mcr@PLT
	and	ebx, DWORD PTR MBI_MASK_HI[rip]
	mov	rsi, r13
	lea	rdi, iosf_mbi_lock[rip]
	mov	ebp, eax
	call	spin_lock_irqsave@PLT
	mov	edx, r12d
	mov	esi, ebp
	mov	edi, ebx
	call	iosf_mbi_pci_write_mdr@PLT
	mov	rsi, r13
	lea	rdi, iosf_mbi_lock[rip]
	mov	r12d, eax
	call	spin_unlock_irqrestore@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L6:
	.cfi_restore_state
	mov	edi, 1
	call	WARN_ON@PLT
	mov	r12d, DWORD PTR EPERM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	iosf_mbi_write, .-iosf_mbi_write
	.comm	iosf_mbi_lock,4,4
	.comm	MBI_MASK_LO,4,4
	.comm	MBI_MASK_HI,4,4
	.comm	EPERM,4,4
	.comm	BT_MBI_UNIT_GFX,8,8
	.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_iosf_mbi.c_iosf_mbi_write.c"
	.text
	.align	2
	.global	iosf_mbi_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	iosf_mbi_write, %function
iosf_mbi_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	lr, .L7
	mov	r0, r1
	ldr	r1, [lr]
	cmp	r1, ip
	beq	.L6
	mov	r4, r2
	mov	r7, r3
	ldr	r3, .L7+4
	mov	r1, ip
	ldr	r2, [r3]
	mov	r6, #0
	and	r2, r2, r4
	bl	iosf_mbi_form_mcr
	mov	r5, r0
	ldr	r3, .L7+8
	mov	r1, r6
	ldr	r2, [r3]
	ldr	r0, .L7+12
	and	r4, r4, r2
	bl	spin_lock_irqsave
	mov	r2, r7
	mov	r1, r5
	mov	r0, r4
	bl	iosf_mbi_pci_write_mdr
	mov	r4, r0
	mov	r1, r6
	ldr	r0, .L7+12
	bl	spin_unlock_irqrestore
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, #1
	bl	WARN_ON
	ldr	r3, .L7+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	BT_MBI_UNIT_GFX
	.word	MBI_MASK_LO
	.word	MBI_MASK_HI
	.word	iosf_mbi_lock
	.word	EPERM
	.size	iosf_mbi_write, .-iosf_mbi_write
	.comm	iosf_mbi_lock,4,4
	.comm	MBI_MASK_LO,4,4
	.comm	MBI_MASK_HI,4,4
	.comm	EPERM,4,4
	.comm	BT_MBI_UNIT_GFX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
