	.file	"extr_net-events.c_get_my_ipv4.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"(none)"
.LC1:
	.string	"getifaddrs()"
.LC2:
	.string	"lo"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"using main IP %d.%d.%d.%d/%d at interface %s\n"
	.text
	.p2align 4
	.globl	get_my_ipv4
	.type	get_my_ipv4, @function
get_my_ipv4:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rdi, rsp
	call	getifaddrs@PLT
	test	rax, rax
	js	.L21
	mov	rbx, QWORD PTR [rsp]
	test	rbx, rbx
	je	.L8
	xor	r13d, r13d
	mov	ebp, -1
	xor	r12d, r12d
	lea	r14, .LC2[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rbx, QWORD PTR 24[rbx]
	test	rbx, rbx
	je	.L22
.L6:
	mov	rax, QWORD PTR 16[rbx]
	mov	rcx, QWORD PTR AF_INET[rip]
	cmp	QWORD PTR [rax], rcx
	jne	.L5
	mov	rdi, QWORD PTR [rbx]
	mov	edx, 2
	mov	rsi, r14
	call	strncmp@PLT
	test	eax, eax
	je	.L5
	mov	rax, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR [rax]
	call	ntohl@PLT
	mov	r15d, eax
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR [rax]
	call	ntohl@PLT
	mov	edx, r15d
	and	edx, -16777216
	cmp	edx, 167772160
	jne	.L5
	cmp	eax, ebp
	jnb	.L5
	mov	r13, QWORD PTR [rbx]
	mov	rbx, QWORD PTR 24[rbx]
	mov	ebp, eax
	mov	r12d, r15d
	test	rbx, rbx
	jne	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	mov	ecx, r12d
	not	ebp
	mov	edx, r12d
	movzx	r9d, r12b
	movzx	esi, ch
	bsr	eax, ebp
	shr	ecx, 16
	xor	eax, 31
	mov	r8d, esi
	shr	edx, 24
	lea	rsi, .LC0[rip]
	test	r13, r13
	movzx	ecx, cl
	cmove	r13, rsi
.L4:
	push	r13
	.cfi_def_cfa_offset 88
	lea	rsi, .LC3[rip]
	mov	edi, 1
	push	rax
	.cfi_def_cfa_offset 96
	call	vkprintf@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	freeifaddrs@PLT
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L21:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	xor	r12d, r12d
	call	perror@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	xor	edx, edx
	xor	ecx, ecx
	xor	r8d, r8d
	xor	r9d, r9d
	mov	eax, 32
	xor	r12d, r12d
	lea	r13, .LC0[rip]
	jmp	.L4
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_my_ipv4, .-get_my_ipv4
	.comm	AF_INET,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_net-events.c_get_my_ipv4.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"(none)\000"
	.align	2
.LC1:
	.ascii	"getifaddrs()\000"
	.align	2
.LC2:
	.ascii	"using main IP %d.%d.%d.%d/%d at interface %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_my_ipv4
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_my_ipv4, %function
get_my_ipv4:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L24
	sub	sp, sp, #28
	add	r0, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	getifaddrs
	cmp	r0, #0
	blt	.L20
	ldr	r4, [sp, #16]
	cmp	r4, #0
	beq	.L9
	mov	r9, #0
	mvn	r8, #0
	mov	r7, r9
	ldr	r5, .L24+4
	b	.L7
.L22:
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L10
.L5:
	ldr	r4, [r4, #12]
	cmp	r4, #0
	beq	.L21
.L7:
	ldr	r2, [r4, #8]
	ldr	r3, [r5]
	ldr	r0, [r2]
	cmp	r0, r3
	bne	.L5
	ldr	r3, [r4]
	ldrb	r2, [r3]	@ zero_extendqisi2
	cmp	r2, #108
	beq	.L22
.L10:
	bl	ntohl
	mov	r6, r0
	ldr	r3, [r4, #4]
	ldr	r0, [r3]
	bl	ntohl
	and	r3, r6, #-16777216
	sub	r3, r3, #167772160
	clz	r3, r3
	cmp	r0, r8
	lsr	r3, r3, #5
	movcs	r3, #0
	cmp	r3, #0
	ldrne	r9, [r4]
	ldr	r4, [r4, #12]
	movne	r8, r0
	movne	r7, r6
	cmp	r4, #0
	bne	.L7
.L21:
	mvn	r8, r8
	clz	r8, r8
	ldr	r2, .L24+8
	lsr	r3, r7, #16
	lsr	r1, r7, #8
	cmp	r9, #0
	moveq	r9, r2
	and	r3, r3, #255
	and	r1, r1, #255
	lsr	r2, r7, #24
	and	r0, r7, #255
.L4:
	stmib	sp, {r0, r8, r9}
	str	r1, [sp]
	mov	r0, #1
	ldr	r1, .L24+12
	bl	vkprintf
	ldr	r0, [sp, #16]
	bl	freeifaddrs
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	mov	r0, r7
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L20:
	ldr	r0, .L24+16
	bl	perror
	mov	r7, #0
	b	.L1
.L9:
	mov	r7, r4
	mov	r8, #32
	mov	r0, r4
	mov	r1, r4
	mov	r3, r4
	mov	r2, r4
	ldr	r9, .L24+8
	b	.L4
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC3
	.word	AF_INET
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.size	get_my_ipv4, .-get_my_ipv4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
