	.file	"extr_sym_malloc.c___vtobus.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"sym: VTOBUS FAILED!\n"
	.text
	.p2align 4
	.globl	__vtobus
	.type	__vtobus, @function
__vtobus:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edi
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	VTOB_HASH_CODE@PLT
	mov	rbx, QWORD PTR SYM_MEM_CLUSTER_MASK[rip]
	xor	esi, esi
	lea	rdi, sym53c8xx_lock[rip]
	movsx	r12, eax
	call	spin_lock_irqsave@PLT
	not	rbx
	mov	edi, r13d
	and	rbx, rbp
	call	___get_dma_pool@PLT
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax+r12*8]
	test	rax, rax
	jne	.L3
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L2
.L3:
	cmp	QWORD PTR [rax], rbx
	jne	.L4
	xor	esi, esi
	lea	rdi, sym53c8xx_lock[rip]
	sub	rbp, rbx
	add	rbp, QWORD PTR 8[rax]
	call	spin_unlock_irqrestore@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	panic@PLT
	mov	rax, QWORD PTR ds:8
	ud2
	.cfi_endproc
.LFE0:
	.size	__vtobus, .-__vtobus
	.comm	sym53c8xx_lock,4,4
	.comm	SYM_MEM_CLUSTER_MASK,8,8
	.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_malloc.c___vtobus.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sym: VTOBUS FAILED!\012\000"
	.text
	.align	2
	.global	__vtobus
	.syntax unified
	.arm
	.fpu softvfp
	.type	__vtobus, %function
__vtobus:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r0, r1
	mov	r5, r1
	bl	VTOB_HASH_CODE
	ldr	r2, .L16
	mov	r1, #0
	mov	r7, r0
	ldr	r0, .L16+4
	ldr	r4, [r2]
	bl	spin_lock_irqsave
	mov	r0, r6
	bl	___get_dma_pool
	subs	r3, r0, #0
	bic	r4, r5, r4
	beq	.L2
	ldr	r3, [r3]
	ldr	r3, [r3, r7, lsl #2]
	cmp	r3, #0
	bne	.L3
	b	.L2
.L4:
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L2
.L3:
	ldr	r2, [r3]
	cmp	r2, r4
	bne	.L4
	ldr	r3, [r3, #4]
	sub	r4, r5, r4
	add	r4, r4, r3
	mov	r1, #0
	ldr	r0, .L16+4
	bl	spin_unlock_irqrestore
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r0, .L16+8
	bl	panic
	mov	r3, #0
	ldr	r3, [r3, #4]
	.inst	0xe7f000f0
.L17:
	.align	2
.L16:
	.word	SYM_MEM_CLUSTER_MASK
	.word	sym53c8xx_lock
	.word	.LC0
	.size	__vtobus, .-__vtobus
	.comm	sym53c8xx_lock,4,4
	.comm	SYM_MEM_CLUSTER_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
