	.file	"extr_ql4_os.c_qla4xxx_get_ep_fwdb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qla4xxx_get_ep_fwdb, @function
qla4xxx_get_ep_fwdb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	mov	edi, 4
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	call	vmalloc@PLT
	test	rax, rax
	je	.L5
	mov	rbp, rax
	lea	rdi, 8[rax]
	mov	esi, DWORD PTR 8[rbx]
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR DDB_OPT_IPV6_DEVICE[rip], eax
	jne	.L9
	mov	eax, DWORD PTR AF_INET[rip]
	mov	DWORD PTR 0[rbp], eax
	mov	edx, DWORD PTR IP_ADDR_LEN[rip]
.L7:
	call	memcpy@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	le16_to_cpu@PLT
	mov	edi, eax
	call	htons@PLT
	mov	edi, DWORD PTR [r12]
	xor	edx, edx
	mov	rsi, rbp
	mov	QWORD PTR 0[rbp], rax
	call	qla4xxx_ep_connect@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	vfree@PLT
.L1:
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.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	eax, DWORD PTR AF_INET6[rip]
	mov	DWORD PTR 0[rbp], eax
	mov	edx, DWORD PTR IPv6_ADDR_LEN[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	xor	r12d, r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	qla4xxx_get_ep_fwdb, .-qla4xxx_get_ep_fwdb
	.comm	IPv6_ADDR_LEN,4,4
	.comm	IP_ADDR_LEN,4,4
	.comm	DDB_OPT_IPV6_DEVICE,4,4
	.comm	AF_INET6,4,4
	.comm	AF_INET,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_ql4_os.c_qla4xxx_get_ep_fwdb.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qla4xxx_get_ep_fwdb, %function
qla4xxx_get_ep_fwdb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	mov	r0, #4
	mov	r5, r1
	bl	vmalloc
	subs	r4, r0, #0
	beq	.L1
	ldr	r3, .L9
	ldr	r2, [r5]
	ldr	r3, [r3]
	ldr	r1, [r5, #8]
	tst	r2, r3
	ldrne	r3, .L9+4
	ldreq	r3, .L9+8
	ldrne	r2, [r3]
	ldreq	r2, [r3]
	ldrne	r3, .L9+12
	ldreq	r3, .L9+16
	str	r2, [r4]
	ldr	r2, [r3]
	add	r0, r4, #4
	bl	memcpy
	ldr	r0, [r5, #4]
	bl	le16_to_cpu
	bl	htons
	mov	r1, r4
	str	r0, [r4]
	mov	r2, #0
	ldr	r0, [r6]
	bl	qla4xxx_ep_connect
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	vfree
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	DDB_OPT_IPV6_DEVICE
	.word	AF_INET6
	.word	AF_INET
	.word	IPv6_ADDR_LEN
	.word	IP_ADDR_LEN
	.size	qla4xxx_get_ep_fwdb, .-qla4xxx_get_ep_fwdb
	.comm	IPv6_ADDR_LEN,4,4
	.comm	IP_ADDR_LEN,4,4
	.comm	DDB_OPT_IPV6_DEVICE,4,4
	.comm	AF_INET6,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
