	.file	"274968.c"
	.intel_syntax noprefix
	.text
	.globl	addr_str
	.bss
	.align 32
	.type	addr_str, @object
	.size	addr_str, 46
addr_str:
	.zero	46
	.globl	Flag_IPV4
	.align 4
	.type	Flag_IPV4, @object
	.size	Flag_IPV4, 4
Flag_IPV4:
	.zero	4
	.globl	Flag_IPV6
	.align 4
	.type	Flag_IPV6, @object
	.size	Flag_IPV6, 4
Flag_IPV6:
	.zero	4
	.globl	Flag_Nolocal
	.align 4
	.type	Flag_Nolocal, @object
	.size	Flag_Nolocal, 4
Flag_Nolocal:
	.zero	4
	.globl	Gni_Flags
	.data
	.align 4
	.type	Gni_Flags, @object
	.size	Gni_Flags, 4
Gni_Flags:
	.long	1
	.section	.rodata
.LC0:
	.string	"h?46LR"
.LC1:
	.string	"getifaddrs failed"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 104
	.cfi_offset 3, -24
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	jmp	.L2
.L8:
	cmp	DWORD PTR -84[rbp], 82
	je	.L3
	cmp	DWORD PTR -84[rbp], 82
	jg	.L4
	cmp	DWORD PTR -84[rbp], 76
	je	.L5
	cmp	DWORD PTR -84[rbp], 76
	jg	.L4
	cmp	DWORD PTR -84[rbp], 52
	je	.L6
	cmp	DWORD PTR -84[rbp], 54
	je	.L7
	jmp	.L4
.L6:
	mov	DWORD PTR Flag_IPV4[rip], 1
	jmp	.L2
.L7:
	mov	DWORD PTR Flag_IPV6[rip], 1
	jmp	.L2
.L5:
	mov	DWORD PTR Flag_Nolocal[rip], 1
	jmp	.L2
.L3:
	mov	DWORD PTR Gni_Flags[rip], 0
	jmp	.L2
.L4:
	call	emit_usage
.L2:
	mov	rcx, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR -100[rbp]
	lea	rdx, .LC0[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], -1
	jne	.L8
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -112[rbp], rax
	cmp	DWORD PTR -100[rbp], 1
	jle	.L9
	call	emit_usage
.L9:
	mov	QWORD PTR -64[rbp], 0
	cmp	DWORD PTR -100[rbp], 1
	jne	.L10
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -64[rbp], rax
.L10:
	mov	eax, DWORD PTR Flag_IPV6[rip]
	test	eax, eax
	jne	.L11
	mov	eax, DWORD PTR Flag_IPV4[rip]
	test	eax, eax
	jne	.L11
	mov	DWORD PTR Flag_IPV4[rip], 1
	mov	DWORD PTR Flag_IPV6[rip], 1
.L11:
	mov	DWORD PTR -88[rbp], 0
	lea	rax, -72[rbp]
	mov	rdi, rax
	call	getifaddrs@PLT
	cmp	eax, -1
	jne	.L12
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L12:
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L13
.L22:
	cmp	QWORD PTR -64[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L14
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L13
.L14:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 24[rax]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	DWORD PTR -80[rbp], eax
	cmp	DWORD PTR -80[rbp], 2
	jne	.L15
	mov	eax, DWORD PTR Flag_IPV4[rip]
	test	eax, eax
	je	.L15
	mov	eax, DWORD PTR Flag_Nolocal[rip]
	test	eax, eax
	je	.L16
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	ntohl@PLT
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	shr	eax, 24
	cmp	eax, 127
	jne	.L16
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L13
.L16:
	add	DWORD PTR -88[rbp], 1
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 16
	mov	rdi, rax
	call	print_addr
	jmp	.L17
.L15:
	cmp	DWORD PTR -80[rbp], 10
	jne	.L17
	mov	eax, DWORD PTR Flag_IPV6[rip]
	test	eax, eax
	je	.L17
	mov	eax, DWORD PTR Flag_Nolocal[rip]
	test	eax, eax
	je	.L18
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 24[rax]
	add	rax, 8
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L19
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L19
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jne	.L19
	mov	rax, QWORD PTR -40[rbp]
	mov	ebx, DWORD PTR 12[rax]
	mov	edi, 1
	call	htonl@PLT
	cmp	ebx, eax
	jne	.L19
	mov	eax, 1
	jmp	.L20
.L19:
	mov	eax, 0
.L20:
	test	eax, eax
	jne	.L21
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	ebx, DWORD PTR [rax]
	mov	edi, -4194304
	call	htonl@PLT
	and	ebx, eax
	mov	edi, -25165824
	call	htonl@PLT
	cmp	ebx, eax
	sete	al
	movzx	eax, al
	test	eax, eax
	je	.L18
.L21:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L13
.L18:
	add	DWORD PTR -88[rbp], 1
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 28
	mov	rdi, rax
	call	print_addr
.L17:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -56[rbp], rax
.L13:
	cmp	QWORD PTR -56[rbp], 0
	jne	.L22
	cmp	DWORD PTR -88[rbp], 0
	je	.L23
	mov	eax, 0
	jmp	.L24
.L23:
	mov	eax, 2
.L24:
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.string	"Usage: localaddr [-4] [-6] [-L] [-R] [interface-name]\n"
	.text
	.globl	emit_usage
	.type	emit_usage, @function
emit_usage:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 54
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 64
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	emit_usage, .-emit_usage
	.section	.rodata
.LC3:
	.string	"getnameinfo failed: %s"
.LC4:
	.string	"%s %s\n"
	.text
	.globl	print_addr
	.type	print_addr, @function
print_addr:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	edx, DWORD PTR Gni_Flags[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	esi, DWORD PTR -28[rbp]
	sub	rsp, 8
	push	rdx
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 46
	lea	rdx, addr_str[rip]
	mov	rdi, rax
	call	getnameinfo@PLT
	add	rsp, 16
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L28
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rdx, rax
	lea	rsi, .LC3[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L28:
	cmp	QWORD PTR -40[rbp], 0
	je	.L29
	lea	rdi, addr_str[rip]
	call	puts@PLT
	jmp	.L31
.L29:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rdx, addr_str[rip]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L31:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	print_addr, .-print_addr
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"274968.c"
	.text
	.comm	addr_str,46,4
	.comm	Flag_IPV4,4,4
	.comm	Flag_IPV6,4,4
	.comm	Flag_Nolocal,4,4
	.global	Gni_Flags
	.data
	.align	2
	.type	Gni_Flags, %object
	.size	Gni_Flags, 4
Gni_Flags:
	.word	1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"h?46LR\000"
	.align	2
.LC1:
	.ascii	"getifaddrs failed\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	b	.L2
.L9:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #52
	cmp	r3, #30
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L8
	.word	.L3
	.word	.L7
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L6
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L4
.L8:
	ldr	r3, .L27+4
	mov	r2, #1
	str	r2, [r3]
	b	.L2
.L7:
	ldr	r3, .L27+8
	mov	r2, #1
	str	r2, [r3]
	b	.L2
.L6:
	ldr	r3, .L27+12
	mov	r2, #1
	str	r2, [r3]
	b	.L2
.L4:
	ldr	r3, .L27+16
	mov	r2, #0
	str	r2, [r3]
	b	.L2
.L3:
	bl	emit_usage
.L2:
	ldr	r2, .L27+20
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-64]
	bl	getopt
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmn	r3, #1
	bne	.L9
	ldr	r3, .L27+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-64]
	sub	r3, r2, r3
	str	r3, [fp, #-64]
	ldr	r3, .L27+24
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-64]
	cmp	r3, #1
	ble	.L10
	bl	emit_usage
.L10:
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-64]
	cmp	r3, #1
	bne	.L11
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	str	r3, [fp, #-52]
.L11:
	ldr	r3, .L27+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L27+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L27+4
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L27+8
	mov	r2, #1
	str	r2, [r3]
.L12:
	mov	r3, #0
	str	r3, [fp, #-48]
	sub	r3, fp, #56
	mov	r0, r3
	bl	getifaddrs
	mov	r3, r0
	cmn	r3, #1
	bne	.L13
	ldr	r1, .L27+28
	mov	r0, #1
	bl	err
.L13:
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-44]
	b	.L14
.L23:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-44]
	ldr	r4, [r3, #4]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, [fp, #-52]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	b	.L14
.L15:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #12]
	ldrh	r3, [r3]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #2
	bne	.L16
	ldr	r3, .L27+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L27+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	ntohl
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	lsr	r3, r3, #24
	cmp	r3, #127
	bne	.L17
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	b	.L14
.L17:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r2, [fp, #-52]
	mov	r1, #16
	ldr	r0, [fp, #-44]
	bl	print_addr
	b	.L18
.L16:
	ldr	r3, [fp, #-36]
	cmp	r3, #10
	bne	.L18
	ldr	r3, .L27+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L18
	ldr	r3, .L27+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #12]
	add	r3, r3, #8
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-24]
	ldr	r4, [r3, #12]
	mov	r0, #1
	bl	htonl
	mov	r3, r0
	cmp	r4, r3
	bne	.L20
	mov	r3, #1
	b	.L21
.L20:
	mov	r3, #0
.L21:
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r4, [r3]
	ldr	r0, .L27+32
	bl	htonl
	mov	r3, r0
	and	r4, r4, r3
	ldr	r0, .L27+36
	bl	htonl
	mov	r3, r0
	cmp	r4, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L19
.L22:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	b	.L14
.L19:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r2, [fp, #-52]
	mov	r1, #28
	ldr	r0, [fp, #-44]
	bl	print_addr
.L18:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	str	r3, [fp, #-44]
.L14:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L24
	mov	r3, #0
	b	.L25
.L24:
	mov	r3, #2
.L25:
	mov	r0, r3
	bl	exit
.L28:
	.align	2
.L27:
	.word	.LC2
	.word	Flag_IPV4
	.word	Flag_IPV6
	.word	Flag_Nolocal
	.word	Gni_Flags
	.word	.LC0
	.word	optind
	.word	.LC1
	.word	-4194304
	.word	-25165824
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Usage: localaddr [-4] [-6] [-L] [-R] [interface-nam"
	.ascii	"e]\012\000"
	.text
	.align	2
	.global	emit_usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	emit_usage, %function
emit_usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L30
	ldr	r3, [r3]
	mov	r2, #54
	mov	r1, #1
	ldr	r0, .L30+4
	bl	fwrite
	mov	r0, #64
	bl	exit
.L31:
	.align	2
.L30:
	.word	stderr
	.word	.LC3
	.size	emit_usage, .-emit_usage
	.section	.rodata
	.align	2
.LC4:
	.ascii	"getnameinfo failed: %s\000"
	.align	2
.LC5:
	.ascii	"%s %s\012\000"
	.text
	.align	2
	.global	print_addr
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_addr, %function
print_addr:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #12]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #46
	ldr	r2, .L37+4
	ldr	r1, [fp, #-20]
	bl	getnameinfo
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L33
	ldr	r0, [fp, #-8]
	bl	gai_strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L37+8
	mov	r0, #1
	bl	errx
.L33:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L34
	ldr	r0, .L37+4
	bl	puts
	b	.L36
.L34:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, .L37+4
	mov	r1, r3
	ldr	r0, .L37+12
	bl	printf
.L36:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	Gni_Flags
	.word	addr_str
	.word	.LC4
	.word	.LC5
	.size	print_addr, .-print_addr
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
