	.file	"extr_pcap.c_add_addr_to_dev.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"malloc"
	.text
	.p2align 4
	.globl	add_addr_to_dev
	.type	add_addr_to_dev, @function
add_addr_to_dev:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r9
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	edi, 40
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rdx
	call	malloc@PLT
	mov	rdx, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L69
	mov	QWORD PTR [rax], 0
	mov	r15, rax
	test	r14, r14
	je	.L4
	test	rdx, rdx
	jne	.L70
.L4:
	mov	QWORD PTR 16[r15], 0
.L5:
	test	r12, r12
	je	.L6
	test	r13, r13
	jne	.L71
.L6:
	mov	QWORD PTR 24[r15], 0
.L7:
	test	rbp, rbp
	je	.L9
	cmp	QWORD PTR 80[rsp], 0
	jne	.L72
.L9:
	mov	QWORD PTR 32[r15], 0
.L10:
	cmp	QWORD PTR 88[rsp], 0
	je	.L13
	cmp	QWORD PTR 96[rsp], 0
	jne	.L73
.L13:
	mov	QWORD PTR 8[r15], 0
.L14:
	mov	rax, QWORD PTR [rbx]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdx, QWORD PTR [rax]
	test	rdx, rdx
	je	.L19
	mov	rax, rdx
.L18:
	test	rax, rax
	jne	.L20
	mov	QWORD PTR [rbx], r15
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	QWORD PTR [rax], r15
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L72:
	.cfi_restore_state
	mov	rsi, QWORD PTR 80[rsp]
	mov	rdi, rbp
	call	dup_sockaddr@PLT
	mov	QWORD PTR 32[r15], rax
	test	rax, rax
	jne	.L10
	mov	rdi, QWORD PTR 104[rsp]
	mov	edx, DWORD PTR errno[rip]
	lea	rcx, .LC0[rip]
	mov	esi, DWORD PTR PCAP_ERRBUF_SIZE[rip]
	call	pcap_fmt_errmsg_for_errno@PLT
	mov	rdi, QWORD PTR 24[r15]
	test	rdi, rdi
	jne	.L67
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L71:
	mov	rsi, r13
	mov	rdi, r12
	call	dup_sockaddr@PLT
	mov	QWORD PTR 24[r15], rax
	test	rax, rax
	jne	.L7
	mov	rdi, QWORD PTR 104[rsp]
	mov	edx, DWORD PTR errno[rip]
	lea	rcx, .LC0[rip]
	mov	esi, DWORD PTR PCAP_ERRBUF_SIZE[rip]
	call	pcap_fmt_errmsg_for_errno@PLT
	mov	rdi, QWORD PTR 16[r15]
	test	rdi, rdi
	jne	.L65
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L70:
	mov	rsi, rdx
	mov	rdi, r14
	call	dup_sockaddr@PLT
	mov	QWORD PTR 16[r15], rax
	test	rax, rax
	jne	.L5
	mov	edx, DWORD PTR errno[rip]
	mov	esi, DWORD PTR PCAP_ERRBUF_SIZE[rip]
	lea	rcx, .LC0[rip]
	mov	rdi, QWORD PTR 104[rsp]
	call	pcap_fmt_errmsg_for_errno@PLT
	mov	rdi, r15
	call	free@PLT
	or	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L73:
	mov	rsi, QWORD PTR 96[rsp]
	mov	rdi, QWORD PTR 88[rsp]
	call	dup_sockaddr@PLT
	mov	QWORD PTR 8[r15], rax
	test	rax, rax
	jne	.L14
	mov	rdi, QWORD PTR 104[rsp]
	mov	edx, DWORD PTR errno[rip]
	lea	rcx, .LC0[rip]
	mov	esi, DWORD PTR PCAP_ERRBUF_SIZE[rip]
	call	pcap_fmt_errmsg_for_errno@PLT
	mov	rdi, QWORD PTR 32[r15]
	test	rdi, rdi
	je	.L15
	call	free@PLT
.L15:
	mov	rdi, QWORD PTR 24[r15]
	test	rdi, rdi
	je	.L16
.L67:
	call	free@PLT
.L16:
	mov	rdi, QWORD PTR 16[r15]
	test	rdi, rdi
	je	.L17
.L65:
	call	free@PLT
.L17:
	mov	rdi, r15
	call	free@PLT
	mov	eax, -1
	jmp	.L1
.L69:
	mov	edx, DWORD PTR errno[rip]
	mov	esi, DWORD PTR PCAP_ERRBUF_SIZE[rip]
	lea	rcx, .LC0[rip]
	mov	rdi, QWORD PTR 104[rsp]
	call	pcap_fmt_errmsg_for_errno@PLT
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	add_addr_to_dev, .-add_addr_to_dev
	.comm	errno,4,4
	.comm	PCAP_ERRBUF_SIZE,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_pcap.c_add_addr_to_dev.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"malloc\000"
	.text
	.align	2
	.global	add_addr_to_dev
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_addr_to_dev, %function
add_addr_to_dev:
	@ args = 24, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	r0, #20
	mov	r6, r1
	mov	r7, r2
	mov	r10, r3
	ldr	fp, [sp, #40]
	ldr	r8, [sp, #44]
	ldr	r9, [sp, #48]
	bl	malloc
	subs	r4, r0, #0
	beq	.L45
	subs	r3, r7, #0
	movne	r3, #1
	cmp	r6, #0
	moveq	r3, #0
	mov	r0, #0
	cmp	r3, r0
	str	r0, [r4]
	streq	r3, [r4, #8]
	bne	.L46
.L5:
	subs	r3, fp, #0
	movne	r3, #1
	cmp	r10, #0
	moveq	r3, #0
	cmp	r3, #0
	streq	r3, [r4, #12]
	bne	.L47
.L7:
	subs	r3, r9, #0
	movne	r3, #1
	cmp	r8, #0
	moveq	r3, #0
	cmp	r3, #0
	streq	r3, [r4, #16]
	bne	.L48
.L10:
	ldr	r3, [sp, #56]
	ldr	r2, [sp, #52]
	subs	r3, r3, #0
	movne	r3, #1
	cmp	r2, #0
	moveq	r3, #0
	cmp	r3, #0
	streq	r3, [r4, #4]
	bne	.L49
.L14:
	ldr	r3, [r5]
	b	.L18
.L20:
	ldr	r0, [r3]
	cmp	r0, #0
	beq	.L19
	mov	r3, r0
.L18:
	cmp	r3, #0
	bne	.L20
	mov	r0, r3
	str	r4, [r5]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	str	r4, [r3]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L46:
	mov	r1, r7
	mov	r0, r6
	bl	dup_sockaddr
	cmp	r0, #0
	str	r0, [r4, #8]
	bne	.L5
	ldr	r3, .L50
	ldr	r2, .L50+4
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, .L50+8
	ldr	r0, [sp, #60]
	bl	pcap_fmt_errmsg_for_errno
	mov	r0, r4
	bl	free
	mvn	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L48:
	mov	r1, r9
	mov	r0, r8
	bl	dup_sockaddr
	cmp	r0, #0
	str	r0, [r4, #16]
	bne	.L10
	ldr	r3, .L50
	ldr	r2, .L50+4
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, .L50+8
	ldr	r0, [sp, #60]
	bl	pcap_fmt_errmsg_for_errno
	ldr	r0, [r4, #12]
	cmp	r0, #0
	bne	.L43
	b	.L16
.L47:
	mov	r1, fp
	mov	r0, r10
	bl	dup_sockaddr
	cmp	r0, #0
	str	r0, [r4, #12]
	bne	.L7
	ldr	r3, .L50
	ldr	r2, .L50+4
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, .L50+8
	ldr	r0, [sp, #60]
	bl	pcap_fmt_errmsg_for_errno
	ldr	r0, [r4, #8]
	cmp	r0, #0
	bne	.L41
	b	.L17
.L49:
	mov	r0, r2
	ldr	r1, [sp, #56]
	bl	dup_sockaddr
	cmp	r0, #0
	str	r0, [r4, #4]
	bne	.L14
	ldr	r3, .L50
	ldr	r2, .L50+4
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, .L50+8
	ldr	r0, [sp, #60]
	bl	pcap_fmt_errmsg_for_errno
	ldr	r0, [r4, #16]
	cmp	r0, #0
	beq	.L15
	bl	free
.L15:
	ldr	r0, [r4, #12]
	cmp	r0, #0
	beq	.L16
.L43:
	bl	free
.L16:
	ldr	r0, [r4, #8]
	cmp	r0, #0
	beq	.L17
.L41:
	bl	free
.L17:
	mov	r0, r4
	bl	free
	mvn	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L45:
	ldr	r3, .L50
	ldr	r2, .L50+4
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, .L50+8
	ldr	r0, [sp, #60]
	bl	pcap_fmt_errmsg_for_errno
	mvn	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L51:
	.align	2
.L50:
	.word	PCAP_ERRBUF_SIZE
	.word	errno
	.word	.LC0
	.size	add_addr_to_dev, .-add_addr_to_dev
	.comm	errno,4,4
	.comm	PCAP_ERRBUF_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
