	.file	"extr_iso.c_hpsb_iso_shutdown.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	hpsb_iso_shutdown
	.type	hpsb_iso_shutdown, @function
hpsb_iso_shutdown:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR HPSB_ISO_DRIVER_INIT[rip], eax
	jne	.L10
.L2:
	lea	rdi, 16[rbp]
	call	dma_region_free@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	kfree@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	call	hpsb_iso_stop@PLT
	mov	rax, QWORD PTR 24[rbp]
	mov	esi, DWORD PTR RECV_SHUTDOWN[rip]
	mov	rcx, QWORD PTR HPSB_ISO_XMIT[rip]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR 8[rbp], rcx
	jne	.L4
	mov	esi, DWORD PTR XMIT_SHUTDOWN[rip]
.L4:
	xor	edx, edx
	mov	rdi, rbp
	call	rax
	mov	eax, DWORD PTR HPSB_ISO_DRIVER_INIT[rip]
	not	eax
	and	DWORD PTR 0[rbp], eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	hpsb_iso_shutdown, .-hpsb_iso_shutdown
	.comm	XMIT_SHUTDOWN,4,4
	.comm	RECV_SHUTDOWN,4,4
	.comm	HPSB_ISO_XMIT,8,8
	.comm	HPSB_ISO_DRIVER_INIT,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_iso.c_hpsb_iso_shutdown.c"
	.text
	.align	2
	.global	hpsb_iso_shutdown
	.syntax unified
	.arm
	.fpu softvfp
	.type	hpsb_iso_shutdown, %function
hpsb_iso_shutdown:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L11
	ldr	r2, [r0]
	ldr	r3, [r5]
	mov	r4, r0
	tst	r2, r3
	bne	.L10
.L2:
	add	r0, r4, #8
	bl	dma_region_free
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	kfree
.L10:
	bl	hpsb_iso_stop
	ldr	r2, .L11+4
	ldr	r1, [r4, #4]
	ldr	r2, [r2]
	ldr	r3, [r4, #12]
	cmp	r1, r2
	ldreq	r2, .L11+8
	ldrne	r2, .L11+12
	ldr	r3, [r3]
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r2, #0
	mov	r0, r4
	blx	r3
	ldr	r2, [r5]
	ldr	r3, [r4]
	bic	r3, r3, r2
	str	r3, [r4]
	b	.L2
.L12:
	.align	2
.L11:
	.word	HPSB_ISO_DRIVER_INIT
	.word	HPSB_ISO_XMIT
	.word	XMIT_SHUTDOWN
	.word	RECV_SHUTDOWN
	.size	hpsb_iso_shutdown, .-hpsb_iso_shutdown
	.comm	XMIT_SHUTDOWN,4,4
	.comm	RECV_SHUTDOWN,4,4
	.comm	HPSB_ISO_XMIT,4,4
	.comm	HPSB_ISO_DRIVER_INIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
