	.file	"extr_lops.c_gfs2_pin.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	gfs2_pin
	.type	gfs2_pin, @function
gfs2_pin:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR current[rip]
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	xor	edi, edi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	eax, DWORD PTR [rax]
	mov	rbp, rsi
	test	eax, eax
	sete	dil
	call	BUG_ON@PLT
	mov	rdi, rbp
	call	clear_buffer_dirty@PLT
	mov	rdi, rbp
	call	test_set_buffer_pinned@PLT
	test	rax, rax
	jne	.L13
	mov	rdi, rbp
	call	buffer_uptodate@PLT
	test	eax, eax
	je	.L14
.L3:
	mov	r13, QWORD PTR 0[rbp]
	mov	rdi, r12
	call	spin_lock@PLT
	mov	rsi, QWORD PTR 0[r13]
	test	rsi, rsi
	je	.L4
	lea	rdi, 8[r13]
	call	list_move@PLT
.L4:
	mov	rdi, r12
	call	spin_unlock@PLT
	mov	rdi, rbp
	call	get_bh@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r13
	pop	r12
	.cfi_def_cfa_offset 16
	mov	esi, 1
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	trace_gfs2_pin@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, r12
	call	gfs2_assert_withdraw@PLT
	mov	rdi, rbp
	call	buffer_uptodate@PLT
	test	eax, eax
	jne	.L3
.L14:
	mov	rsi, rbp
	mov	rdi, r12
	call	gfs2_io_error_bh@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	gfs2_pin, .-gfs2_pin
	.comm	current,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_lops.c_gfs2_pin.c"
	.text
	.align	2
	.global	gfs2_pin
	.syntax unified
	.arm
	.fpu softvfp
	.type	gfs2_pin, %function
gfs2_pin:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L15
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	mov	r5, r0
	ldr	r0, [r3]
	mov	r4, r1
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BUG_ON
	mov	r0, r4
	bl	clear_buffer_dirty
	mov	r0, r4
	bl	test_set_buffer_pinned
	cmp	r0, #0
	bne	.L13
	mov	r0, r4
	bl	buffer_uptodate
	cmp	r0, #0
	beq	.L14
.L3:
	ldr	r6, [r4]
	mov	r0, r5
	bl	spin_lock
	ldr	r1, [r6]
	cmp	r1, #0
	beq	.L4
	add	r0, r6, #4
	bl	list_move
.L4:
	mov	r0, r5
	bl	spin_unlock
	mov	r0, r4
	bl	get_bh
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	mov	r1, #1
	b	trace_gfs2_pin
.L13:
	mov	r1, #0
	mov	r0, r5
	bl	gfs2_assert_withdraw
	mov	r0, r4
	bl	buffer_uptodate
	cmp	r0, #0
	bne	.L3
.L14:
	mov	r1, r4
	mov	r0, r5
	bl	gfs2_io_error_bh
	b	.L3
.L16:
	.align	2
.L15:
	.word	current
	.size	gfs2_pin, .-gfs2_pin
	.comm	current,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
