	.file	"extr_nhi.c_nhi_shutdown.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"shutdown\n"
.LC1:
	.string	"TX ring %d is still active\n"
.LC2:
	.string	"RX ring %d is still active\n"
	.text
	.p2align 4
	.type	nhi_shutdown, @function
nhi_shutdown:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	rsi, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rax, QWORD PTR 24[rdi]
	lea	rdi, 4[rax]
	call	dev_dbg@PLT
	mov	ecx, DWORD PTR 0[rbp]
	test	ecx, ecx
	jle	.L2
	xor	ebx, ebx
	lea	r13, .LC1[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 32[rbp]
	cmp	QWORD PTR [rax+r12], 0
	jne	.L17
.L4:
	add	rbx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jle	.L2
.L5:
	mov	rax, QWORD PTR 40[rbp]
	mov	r14d, ebx
	lea	r12, 0[0+rbx*8]
	cmp	QWORD PTR [rax+rbx*8], 0
	je	.L3
	mov	rax, QWORD PTR 24[rbp]
	mov	edx, ebx
	mov	rsi, r13
	lea	rdi, 4[rax]
	call	dev_WARN@PLT
	mov	rax, QWORD PTR 32[rbp]
	cmp	QWORD PTR [rax+r12], 0
	je	.L4
.L17:
	mov	rax, QWORD PTR 24[rbp]
	mov	edx, r14d
	lea	rsi, .LC2[rip]
	add	rbx, 1
	lea	rdi, 4[rax]
	call	dev_WARN@PLT
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L5
.L2:
	mov	rdi, rbp
	call	nhi_disable_interrupts@PLT
	mov	rax, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR 8[rax]
	test	edx, edx
	je	.L18
.L6:
	lea	rdi, 16[rbp]
	call	ida_destroy@PLT
	mov	rax, QWORD PTR 8[rbp]
	test	rax, rax
	je	.L1
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	rax
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	esi, DWORD PTR [rax]
	lea	rdi, 4[rax]
	mov	rdx, rbp
	call	devm_free_irq@PLT
	lea	rdi, 20[rbp]
	call	flush_work@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	nhi_shutdown, .-nhi_shutdown
	.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_nhi.c_nhi_shutdown.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"shutdown\012\000"
	.align	2
.LC1:
	.ascii	"TX ring %d is still active\012\000"
	.align	2
.LC2:
	.ascii	"RX ring %d is still active\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nhi_shutdown, %function
nhi_shutdown:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, [r0, #16]
	ldr	r1, .L25
	add	r0, r0, #4
	bl	dev_dbg
	ldr	r3, [r5]
	cmp	r3, #0
	ble	.L2
	mov	r4, #0
	ldr	r8, .L25+4
	ldr	r7, .L25+8
	b	.L5
.L3:
	ldr	r3, [r5, #20]
	ldr	r3, [r3, r6]
	cmp	r3, #0
	bne	.L23
.L4:
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L2
.L5:
	ldr	r3, [r5, #24]
	lsl	r6, r4, #2
	ldr	r3, [r3, r4, lsl #2]
	cmp	r3, #0
	beq	.L3
	ldr	r0, [r5, #16]
	mov	r2, r4
	mov	r1, r8
	add	r0, r0, #4
	bl	dev_WARN
	ldr	r3, [r5, #20]
	ldr	r3, [r3, r6]
	cmp	r3, #0
	beq	.L4
.L23:
	ldr	r0, [r5, #16]
	mov	r2, r4
	mov	r1, r7
	add	r0, r0, #4
	bl	dev_WARN
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L5
.L2:
	mov	r0, r5
	bl	nhi_disable_interrupts
	ldr	r0, [r5, #16]
	ldr	r3, [r0, #8]
	cmp	r3, #0
	beq	.L24
.L6:
	add	r0, r5, #8
	bl	ida_destroy
	ldr	r3, [r5, #4]
	cmp	r3, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r3]
	cmp	r3, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	bx	r3
.L24:
	mov	r2, r5
	ldr	r1, [r0], #4
	bl	devm_free_irq
	add	r0, r5, #12
	bl	flush_work
	b	.L6
.L26:
	.align	2
.L25:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	nhi_shutdown, .-nhi_shutdown
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
