	.file	"extr_sym_hipd.c_sym_free_ccb.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ccb @%p freeing tag %d.\n"
	.text
	.p2align 4
	.type	sym_free_ccb, @function
sym_free_ccb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r12, QWORD PTR [rsi]
	mov	rbx, rsi
	mov	esi, DWORD PTR 44[rsi]
	sal	r12, 4
	add	r12, QWORD PTR 24[rdi]
	mov	rdi, r12
	call	sym_lp@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR DEBUG_FLAGS[rip]
	test	DWORD PTR DEBUG_TAGS[rip], eax
	jne	.L15
	test	rbp, rbp
	je	.L3
.L20:
	movsx	rax, DWORD PTR 8[rbx]
	cmp	eax, DWORD PTR NO_TAG[rip]
	je	.L4
	mov	rdx, QWORD PTR 8[rbp]
	mov	rcx, QWORD PTR 0[rbp]
	mov	DWORD PTR [rcx+rdx*4], eax
	add	rdx, 1
	cmp	rdx, QWORD PTR SYM_CONF_MAX_TASK[rip]
	mov	QWORD PTR 8[rbp], rdx
	je	.L16
.L5:
	mov	rdx, QWORD PTR 48[rbp]
	mov	edi, DWORD PTR 20[r13]
	lea	r14, [rdx+rax*8]
	call	cpu_to_scr@PLT
	mov	QWORD PTR [r14], rax
	mov	rax, QWORD PTR 16[rbp]
	sub	rax, 1
	mov	QWORD PTR 16[rbp], rax
.L6:
	test	rax, rax
	je	.L17
.L7:
	cmp	QWORD PTR [r12], rbx
	je	.L18
.L8:
	cmp	QWORD PTR 32[rbx], 0
	jne	.L19
.L9:
	mov	eax, DWORD PTR HS_IDLE[rip]
	mov	QWORD PTR 24[rbx], 0
	lea	rbp, 12[rbx]
	mov	rdi, rbp
	mov	DWORD PTR 16[rbx], eax
	call	sym_remque@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rsi, r13
	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	sym_insque_head@PLT
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	cmp	QWORD PTR 24[rbp], 0
	jne	.L7
	mov	esi, DWORD PTR resel_bad_lun[rip]
	mov	rdi, r13
	call	SCRIPTB_BA@PLT
	mov	edi, eax
	call	cpu_to_scr@PLT
	mov	QWORD PTR 32[rbp], rax
	cmp	QWORD PTR [r12], rbx
	jne	.L8
	.p2align 4,,10
	.p2align 3
.L18:
	cmp	QWORD PTR 32[rbx], 0
	mov	QWORD PTR [r12], 0
	je	.L9
.L19:
	mov	esi, DWORD PTR 40[rbx]
	mov	edi, DWORD PTR 4[r13]
	call	bus_dmamap_unload@PLT
	mov	QWORD PTR 32[rbx], 0
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L16:
	mov	QWORD PTR 8[rbp], 0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edx, DWORD PTR 44[rbx]
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, r13
	call	PRINT_LUN@PLT
	mov	edx, DWORD PTR 8[rbx]
	mov	rsi, rbx
	lea	rdi, .LC0[rip]
	call	printf@PLT
	test	rbp, rbp
	jne	.L20
.L3:
	mov	esi, DWORD PTR 44[rbx]
	mov	edi, DWORD PTR 8[r12]
	call	sym_clr_bit@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR 16[r13]
	call	cpu_to_scr@PLT
	sub	QWORD PTR 24[rbp], 1
	mov	QWORD PTR 40[rbp], rax
	mov	rax, QWORD PTR 16[rbp]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	sym_free_ccb, .-sym_free_ccb
	.comm	resel_bad_lun,4,4
	.comm	SYM_CONF_MAX_TASK,8,8
	.comm	NO_TAG,4,4
	.comm	HS_IDLE,4,4
	.comm	DEBUG_TAGS,4,4
	.comm	DEBUG_FLAGS,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_sym_hipd.c_sym_free_ccb.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ccb @%p freeing tag %d.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sym_free_ccb, %function
sym_free_ccb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, [r0, #20]
	ldr	r8, [r1]
	mov	r6, r0
	add	r9, r7, r8, lsl #3
	mov	r4, r1
	mov	r0, r9
	ldr	r1, [r1, #28]
	bl	sym_lp
	ldr	r2, .L22
	ldr	r3, .L22+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r5, r0
	tst	r2, r3
	bne	.L18
	cmp	r5, #0
	beq	.L3
.L21:
	ldr	r3, .L22+8
	ldr	r9, [r4, #4]
	ldr	r3, [r3]
	cmp	r9, r3
	beq	.L4
	ldr	r3, .L22+12
	ldr	r2, [r5, #4]
	ldr	r0, [r3]
	ldr	r1, [r5]
	add	r3, r2, #1
	cmp	r3, r0
	str	r9, [r1, r2, lsl #2]
	str	r3, [r5, #4]
	moveq	r3, #0
	ldr	r0, [r6, #16]
	streq	r3, [r5, #4]
	ldr	r10, [r5, #24]
	bl	cpu_to_scr
	ldr	r3, [r5, #8]
	str	r0, [r10, r9, lsl #2]
	sub	r3, r3, #1
	str	r3, [r5, #8]
.L6:
	cmp	r3, #0
	beq	.L19
.L7:
	ldr	r3, [r7, r8, lsl #3]
	cmp	r3, r4
	moveq	r3, #0
	streq	r3, [r7, r8, lsl #3]
	ldr	r3, [r4, #20]
	cmp	r3, #0
	bne	.L20
.L9:
	mov	r2, #0
	ldr	r3, .L22+16
	add	r5, r4, #8
	ldr	r3, [r3]
	mov	r0, r5
	str	r2, [r4, #16]
	str	r3, [r4, #12]
	bl	sym_remque
	mov	r1, r6
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	sym_insque_head
.L19:
	ldr	r3, [r5, #12]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L22+20
	mov	r0, r6
	ldr	r1, [r3]
	bl	SCRIPTB_BA
	bl	cpu_to_scr
	str	r0, [r5, #16]
	b	.L7
.L18:
	ldr	r2, [r4, #28]
	ldr	r1, [r4]
	mov	r0, r6
	bl	PRINT_LUN
	mov	r1, r4
	ldr	r2, [r4, #4]
	ldr	r0, .L22+24
	bl	printf
	cmp	r5, #0
	bne	.L21
.L3:
	ldr	r0, [r9, #4]
	ldr	r1, [r4, #28]
	bl	sym_clr_bit
	b	.L7
.L20:
	ldr	r1, [r4, #24]
	ldr	r0, [r6, #4]
	bl	bus_dmamap_unload
	mov	r3, #0
	str	r3, [r4, #20]
	b	.L9
.L4:
	ldr	r0, [r6, #12]
	bl	cpu_to_scr
	ldr	r3, [r5, #12]
	str	r0, [r5, #20]
	sub	r2, r3, #1
	str	r2, [r5, #12]
	ldr	r3, [r5, #8]
	b	.L6
.L23:
	.align	2
.L22:
	.word	DEBUG_FLAGS
	.word	DEBUG_TAGS
	.word	NO_TAG
	.word	SYM_CONF_MAX_TASK
	.word	HS_IDLE
	.word	resel_bad_lun
	.word	.LC0
	.size	sym_free_ccb, .-sym_free_ccb
	.comm	resel_bad_lun,4,4
	.comm	SYM_CONF_MAX_TASK,4,4
	.comm	NO_TAG,4,4
	.comm	HS_IDLE,4,4
	.comm	DEBUG_TAGS,4,4
	.comm	DEBUG_FLAGS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
