	.file	"extr_ipoib_main.c_ipoib_intf_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ipoib_intf_alloc
	.type	ipoib_intf_alloc, @function
ipoib_intf_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	eax, eax
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	ipoib_priv_alloc@PLT
	mov	edi, DWORD PTR IFT_INFINIBAND[rip]
	mov	rbp, rax
	call	if_alloc@PLT
	mov	QWORD PTR 8[rbp], rax
	mov	r12, rax
	test	rax, rax
	je	.L7
	mov	QWORD PTR 8[rax], rbp
	mov	edi, DWORD PTR ipoib_unrhdr[rip]
	call	alloc_unr@PLT
	mov	DWORD PTR 0[rbp], eax
	mov	edx, eax
	cmp	eax, -1
	je	.L8
	mov	rsi, r13
	mov	rdi, r12
	call	if_initname@PLT
	mov	eax, DWORD PTR IFF_BROADCAST[rip]
	mov	rdi, r12
	or	eax, DWORD PTR IFF_MULTICAST[rip]
	mov	DWORD PTR [r12], eax
	mov	eax, DWORD PTR INFINIBAND_ALEN[rip]
	mov	DWORD PTR 16[r12], eax
	mov	eax, DWORD PTR IPOIB_HEADER_LEN[rip]
	mov	DWORD PTR 68[r12], eax
	call	if_attach@PLT
	mov	eax, DWORD PTR ipoib_init[rip]
	mov	edi, 10
	mov	DWORD PTR 64[r12], eax
	mov	eax, DWORD PTR ipoib_ioctl[rip]
	mov	DWORD PTR 60[r12], eax
	mov	eax, DWORD PTR ipoib_start[rip]
	mov	DWORD PTR 56[r12], eax
	mov	eax, DWORD PTR ipoib_output[rip]
	mov	DWORD PTR 52[r12], eax
	mov	eax, DWORD PTR ipoib_input[rip]
	mov	DWORD PTR 48[r12], eax
	mov	eax, DWORD PTR ipoib_resolvemulti[rip]
	mov	DWORD PTR 44[r12], eax
	call	IF_Gbps@PLT
	mov	edx, DWORD PTR IFT_INFINIBAND[rip]
	mov	esi, DWORD PTR LINK_STATE_DOWN[rip]
	mov	rdi, r12
	mov	DWORD PTR 40[r12], eax
	mov	eax, DWORD PTR 16[rbp]
	mov	DWORD PTR 36[r12], eax
	mov	eax, DWORD PTR ipoib_sendq_size[rip]
	add	eax, eax
	mov	DWORD PTR 32[r12], eax
	mov	rax, QWORD PTR 24[r12]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 4[rax], edx
	mov	edx, DWORD PTR 16[r12]
	mov	DWORD PTR [rax], edx
	mov	QWORD PTR 8[rbp], r12
	call	if_link_state_change@PLT
	mov	edx, DWORD PTR ETHER_HDR_LEN[rip]
	mov	esi, DWORD PTR DLT_EN10MB[rip]
	mov	rdi, r12
	call	bpfattach@PLT
	mov	r12, QWORD PTR 8[r12]
.L1:
	mov	rax, r12
	pop	rbp
	.cfi_remember_state
	.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
.L8:
	.cfi_restore_state
	mov	rdi, r12
	xor	r12d, r12d
	call	if_free@PLT
	mov	esi, DWORD PTR M_TEMP[rip]
	mov	rdi, rbp
	call	free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR M_TEMP[rip]
	mov	rdi, rbp
	call	free@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ipoib_intf_alloc, .-ipoib_intf_alloc
	.comm	ipoib_unrhdr,4,4
	.comm	ipoib_start,4,4
	.comm	ipoib_sendq_size,4,4
	.comm	ipoib_resolvemulti,4,4
	.comm	ipoib_output,4,4
	.comm	ipoib_ioctl,4,4
	.comm	ipoib_input,4,4
	.comm	ipoib_init,4,4
	.comm	M_TEMP,4,4
	.comm	LINK_STATE_DOWN,4,4
	.comm	IPOIB_HEADER_LEN,4,4
	.comm	INFINIBAND_ALEN,4,4
	.comm	IFT_INFINIBAND,4,4
	.comm	IFF_MULTICAST,4,4
	.comm	IFF_BROADCAST,4,4
	.comm	ETHER_HDR_LEN,4,4
	.comm	DLT_EN10MB,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_ipoib_main.c_ipoib_intf_alloc.c"
	.text
	.align	2
	.global	ipoib_intf_alloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipoib_intf_alloc, %function
ipoib_intf_alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	bl	ipoib_priv_alloc
	ldr	r6, .L9
	mov	r5, r0
	ldr	r0, [r6]
	bl	if_alloc
	subs	r4, r0, #0
	str	r0, [r5, #4]
	beq	.L7
	ldr	r3, .L9+4
	str	r5, [r4, #4]
	ldr	r0, [r3]
	bl	alloc_unr
	cmn	r0, #1
	mov	r2, r0
	str	r0, [r5]
	beq	.L8
	mov	r1, r7
	mov	r0, r4
	bl	if_initname
	ldr	r3, .L9+8
	ldr	r0, .L9+12
	ldr	r1, .L9+16
	ldr	r2, .L9+20
	ldr	r0, [r0]
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r3, r0
	str	r3, [r4]
	str	r1, [r4, #8]
	str	r2, [r4, #52]
	mov	r0, r4
	bl	if_attach
	ldr	ip, .L9+24
	ldr	r0, .L9+28
	ldr	r1, .L9+32
	ldr	r2, .L9+36
	ldr	r3, .L9+40
	ldr	lr, [ip]
	ldr	ip, [r0]
	ldr	r0, [r1]
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L9+44
	str	lr, [r4, #48]
	ldr	r3, [r3]
	str	ip, [r4, #44]
	str	r0, [r4, #40]
	str	r1, [r4, #36]
	str	r2, [r4, #32]
	str	r3, [r4, #28]
	mov	r0, #10
	bl	IF_Gbps
	ldr	r3, .L9+48
	ldr	r2, [r4, #12]
	ldr	r3, [r3]
	ldr	r2, [r2]
	lsl	r3, r3, #1
	ldr	r1, [r5, #8]
	ldr	ip, [r6]
	str	r0, [r4, #24]
	str	r3, [r4, #16]
	ldr	r0, [r4, #8]
	ldr	r3, .L9+52
	str	r1, [r4, #20]
	ldr	r1, [r3]
	stm	r2, {r0, ip}
	mov	r0, r4
	str	r4, [r5, #4]
	bl	if_link_state_change
	ldr	r3, .L9+56
	ldr	r2, .L9+60
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	bpfattach
	ldr	r4, [r4, #4]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r0, r4
	bl	if_free
	ldr	r3, .L9+64
	mov	r0, r5
	ldr	r1, [r3]
	bl	free
	mov	r4, #0
	b	.L1
.L7:
	ldr	r3, .L9+64
	mov	r0, r5
	ldr	r1, [r3]
	bl	free
	b	.L1
.L10:
	.align	2
.L9:
	.word	IFT_INFINIBAND
	.word	ipoib_unrhdr
	.word	IFF_BROADCAST
	.word	IFF_MULTICAST
	.word	INFINIBAND_ALEN
	.word	IPOIB_HEADER_LEN
	.word	ipoib_init
	.word	ipoib_ioctl
	.word	ipoib_start
	.word	ipoib_output
	.word	ipoib_input
	.word	ipoib_resolvemulti
	.word	ipoib_sendq_size
	.word	LINK_STATE_DOWN
	.word	DLT_EN10MB
	.word	ETHER_HDR_LEN
	.word	M_TEMP
	.size	ipoib_intf_alloc, .-ipoib_intf_alloc
	.comm	ipoib_unrhdr,4,4
	.comm	ipoib_start,4,4
	.comm	ipoib_sendq_size,4,4
	.comm	ipoib_resolvemulti,4,4
	.comm	ipoib_output,4,4
	.comm	ipoib_ioctl,4,4
	.comm	ipoib_input,4,4
	.comm	ipoib_init,4,4
	.comm	M_TEMP,4,4
	.comm	LINK_STATE_DOWN,4,4
	.comm	IPOIB_HEADER_LEN,4,4
	.comm	INFINIBAND_ALEN,4,4
	.comm	IFT_INFINIBAND,4,4
	.comm	IFF_MULTICAST,4,4
	.comm	IFF_BROADCAST,4,4
	.comm	ETHER_HDR_LEN,4,4
	.comm	DLT_EN10MB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
