	.file	"extr_user_mad.c_ib_umad_sm_close.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ib_umad_sm_close, @function
ib_umad_sm_close:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR IB_PORT_SM[rip]
	lea	rbp, 12[rbx]
	mov	rdi, rbp
	mov	DWORD PTR 4[rsp], eax
	call	mutex_lock@PLT
	mov	rdi, QWORD PTR 24[rbx]
	test	rdi, rdi
	jne	.L9
.L2:
	mov	rdi, rbp
	call	mutex_unlock@PLT
	lea	rdi, 8[rbx]
	call	up@PLT
	mov	esi, DWORD PTR ib_umad_release_dev[rip]
	mov	rdi, QWORD PTR [rbx]
	call	kref_put@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, DWORD PTR 16[rbx]
	lea	rcx, 4[rsp]
	xor	edx, edx
	call	ib_modify_port@PLT
	mov	r12d, eax
	jmp	.L2
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ib_umad_sm_close, .-ib_umad_sm_close
	.comm	ib_umad_release_dev,4,4
	.comm	IB_PORT_SM,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_user_mad.c_ib_umad_sm_close.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ib_umad_sm_close, %function
ib_umad_sm_close:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L11
	ldr	r4, [r1]
	ldr	r3, [r3]
	ldr	r2, .L11+4
	add	r6, r4, #8
	sub	sp, sp, #8
	mov	r0, r6
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	str	r3, [sp]
	bl	mutex_lock
	ldr	r5, [r4, #16]
	cmp	r5, #0
	bne	.L9
.L2:
	mov	r0, r6
	bl	mutex_unlock
	add	r0, r4, #4
	bl	up
	ldr	r3, .L11+8
	ldr	r0, [r4]
	ldr	r1, [r3]
	bl	kref_put
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	mov	r0, r5
	mov	r3, sp
	mov	r2, #0
	ldr	r1, [r4, #12]
	bl	ib_modify_port
	mov	r5, r0
	b	.L2
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	IB_PORT_SM
	.word	.LC0
	.word	ib_umad_release_dev
	.size	ib_umad_sm_close, .-ib_umad_sm_close
	.comm	ib_umad_release_dev,4,4
	.comm	IB_PORT_SM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
