	.file	"extr_ib_srpt.c_srpt_close_ch.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s: already closed\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"%s-%d: changing queue pair into error state failed: %d\n"
	.align 8
.LC2:
	.string	"%s-%d: queuing zero-length write failed: %d\n"
	.text
	.p2align 4
	.type	srpt_close_ch, @function
srpt_close_ch:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, DWORD PTR CH_DRAINING[rip]
	mov	rbp, rdi
	call	srpt_set_ch_state@PLT
	test	rax, rax
	je	.L9
	mov	rdi, rbp
	call	kref_get@PLT
	mov	rdi, rbp
	call	srpt_ch_qp_err@PLT
	test	eax, eax
	js	.L10
	mov	rdi, rbp
	call	srpt_zerolength_write@PLT
	test	eax, eax
	js	.L11
.L5:
	mov	esi, DWORD PTR srpt_free_ch[rip]
	mov	rdi, rbp
	call	kref_put@PLT
	mov	eax, 1
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, DWORD PTR 16[rbp]
	lea	rdi, .LC0[rip]
	call	pr_debug@PLT
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdx, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR 16[rbp]
	lea	rdi, .LC2[rip]
	mov	ecx, eax
	mov	edx, DWORD PTR [rdx]
	call	pr_err@PLT
	mov	esi, DWORD PTR CH_DISCONNECTED[rip]
	mov	rdi, rbp
	call	srpt_set_ch_state@PLT
	test	rax, rax
	je	.L6
	lea	rdi, 4[rbp]
	call	schedule_work@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdx, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR 16[rbp]
	lea	rdi, .LC1[rip]
	mov	ecx, eax
	mov	edx, DWORD PTR [rdx]
	call	pr_err@PLT
	mov	rdi, rbp
	call	srpt_zerolength_write@PLT
	test	eax, eax
	jns	.L5
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, 1
	call	WARN_ON_ONCE@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	srpt_close_ch, .-srpt_close_ch
	.comm	srpt_free_ch,4,4
	.comm	CH_DRAINING,4,4
	.comm	CH_DISCONNECTED,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_ib_srpt.c_srpt_close_ch.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: already closed\012\000"
	.align	2
.LC1:
	.ascii	"%s-%d: changing queue pair into error state failed:"
	.ascii	" %d\012\000"
	.align	2
.LC2:
	.ascii	"%s-%d: queuing zero-length write failed: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	srpt_close_ch, %function
srpt_close_ch:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	push	{r4, r5, r6, lr}
	ldr	r1, [r3]
	mov	r4, r0
	bl	srpt_set_ch_state
	subs	r5, r0, #0
	beq	.L9
	mov	r0, r4
	bl	kref_get
	mov	r0, r4
	bl	srpt_ch_qp_err
	subs	r3, r0, #0
	blt	.L10
	mov	r0, r4
	bl	srpt_zerolength_write
	subs	r3, r0, #0
	blt	.L11
.L5:
	mov	r5, #1
	ldr	r3, .L12+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	kref_put
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r1, [r4, #12]
	ldr	r0, .L12+8
	bl	pr_debug
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	ldr	r2, [r2]
	ldr	r0, .L12+12
	bl	pr_err
	ldr	r3, .L12+16
	mov	r0, r4
	ldr	r1, [r3]
	bl	srpt_set_ch_state
	cmp	r0, #0
	beq	.L6
	add	r0, r4, #4
	bl	schedule_work
	b	.L5
.L10:
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	ldr	r2, [r2]
	ldr	r0, .L12+20
	bl	pr_err
	mov	r0, r4
	bl	srpt_zerolength_write
	subs	r3, r0, #0
	bge	.L5
	b	.L11
.L6:
	mov	r0, #1
	bl	WARN_ON_ONCE
	b	.L5
.L13:
	.align	2
.L12:
	.word	CH_DRAINING
	.word	srpt_free_ch
	.word	.LC0
	.word	.LC2
	.word	CH_DISCONNECTED
	.word	.LC1
	.size	srpt_close_ch, .-srpt_close_ch
	.comm	srpt_free_ch,4,4
	.comm	CH_DRAINING,4,4
	.comm	CH_DISCONNECTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
