	.file	"extr_ib_verbs.c_ib_resolve_eth_dmac.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ib_resolve_eth_dmac
	.type	ib_resolve_eth_dmac, @function
ib_resolve_eth_dmac:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	r12, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	rdma_start_port@PLT
	cmp	r12, rax
	jge	.L2
.L4:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12, QWORD PTR [rbx]
	mov	rdi, rbp
	call	rdma_end_port@PLT
	cmp	r12, rax
	jg	.L4
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rbp
	call	rdma_cap_eth_ah@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	rdi, QWORD PTR 16[rbx]
	call	rdma_is_multicast_addr@PLT
	test	rax, rax
	jne	.L15
	mov	edx, DWORD PTR 24[rbx]
	mov	rsi, QWORD PTR [rbx]
	lea	r13, 16[rsp]
	lea	r8, 12[rsp]
	mov	rcx, r13
	mov	rdi, rbp
	call	ib_query_gid@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	ecx, DWORD PTR 12[rsp]
	test	ecx, ecx
	jne	.L7
	mov	r12d, DWORD PTR ENXIO[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdx, QWORD PTR 32[rbx]
	lea	rsi, 16[rbx]
	lea	r8, 20[rsp]
	mov	rdi, r13
	call	rdma_addr_find_l2_eth_by_grh@PLT
	mov	edi, DWORD PTR 12[rsp]
	mov	r12d, eax
	call	dev_put@PLT
	mov	eax, DWORD PTR 20[rsp]
	mov	DWORD PTR 8[rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, QWORD PTR 16[rbx]
	call	ipv6_addr_v4mapped@PLT
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR 16[rbx]
	lea	rdi, 20[rsp]
	mov	edx, 4
	mov	DWORD PTR 20[rsp], 0
	xor	r12d, r12d
	lea	rsi, 12[rax]
	call	memcpy@PLT
	mov	rsi, QWORD PTR 32[rbx]
	mov	edi, DWORD PTR 20[rsp]
	call	ip_eth_mc_map@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, QWORD PTR 32[rbx]
	mov	rdi, QWORD PTR 16[rbx]
	xor	r12d, r12d
	call	ipv6_eth_mc_map@PLT
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ib_resolve_eth_dmac, .-ib_resolve_eth_dmac
	.comm	ENXIO,4,4
	.comm	EINVAL,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_ib_verbs.c_ib_resolve_eth_dmac.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ib_resolve_eth_dmac
	.syntax unified
	.arm
	.fpu softvfp
	.type	ib_resolve_eth_dmac, %function
ib_resolve_eth_dmac:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L16
	sub	sp, sp, #24
	ldr	r5, [r1]
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r6, r0
	bl	rdma_start_port
	cmp	r5, r0
	bge	.L2
.L4:
	ldr	r3, .L16+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	mov	r0, r6
	ldr	r5, [r4]
	bl	rdma_end_port
	cmp	r5, r0
	bgt	.L4
	mov	r0, r6
	ldr	r1, [r4]
	bl	rdma_cap_eth_ah
	subs	r5, r0, #0
	beq	.L1
	ldr	r0, [r4, #8]
	bl	rdma_is_multicast_addr
	cmp	r0, #0
	bne	.L15
	add	r2, sp, #8
	str	r2, [sp]
	mov	r0, r6
	ldr	r2, [r4, #12]
	ldr	r1, [r4]
	add	r3, sp, #12
	bl	ib_query_gid
	subs	r5, r0, #0
	bne	.L1
	ldr	r3, [sp, #8]
	cmp	r3, #0
	ldreq	r3, .L16+8
	ldreq	r5, [r3]
	rsbeq	r5, r5, #0
	beq	.L1
.L7:
	add	r2, sp, #16
	str	r2, [sp]
	ldr	r2, [r4, #16]
	add	r1, r4, #8
	add	r0, sp, #12
	bl	rdma_addr_find_l2_eth_by_grh
	mov	r5, r0
	ldr	r0, [sp, #8]
	bl	dev_put
	ldr	r3, [sp, #16]
	str	r3, [r4, #4]
	b	.L1
.L15:
	ldr	r0, [r4, #8]
	bl	ipv6_addr_v4mapped
	subs	r5, r0, #0
	beq	.L6
	mov	r5, #0
	ldr	r1, [r4, #8]
	mov	r2, #4
	add	r1, r1, #12
	add	r0, sp, #16
	str	r5, [sp, #16]
	bl	memcpy
	ldr	r1, [r4, #16]
	ldr	r0, [sp, #16]
	bl	ip_eth_mc_map
	b	.L1
.L6:
	ldr	r1, [r4, #16]
	ldr	r0, [r4, #8]
	bl	ipv6_eth_mc_map
	b	.L1
.L14:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	EINVAL
	.word	ENXIO
	.size	ib_resolve_eth_dmac, .-ib_resolve_eth_dmac
	.comm	ENXIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
