	.file	"638958.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"get_myaddress: socket"
	.align 8
.LC1:
	.string	"get_myaddress: ioctl (get interface configuration)"
.LC2:
	.string	"get_myaddress: ioctl"
	.text
	.globl	get_myaddress
	.type	get_myaddress, @function
get_myaddress:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 120
	.cfi_offset 3, -24
	mov	QWORD PTR -8312[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -8300[rbp], eax
	cmp	DWORD PTR -8300[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	DWORD PTR -8288[rbp], 8192
	lea	rax, -8224[rbp]
	mov	QWORD PTR -8280[rbp], rax
	lea	rdx, -8288[rbp]
	mov	eax, DWORD PTR -8300[rbp]
	mov	esi, 35090
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -8280[rbp]
	mov	QWORD PTR -8296[rbp], rax
	mov	eax, DWORD PTR -8288[rbp]
	mov	DWORD PTR -8304[rbp], eax
	jmp	.L4
.L8:
	mov	rax, QWORD PTR -8296[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR -8272[rbp], rcx
	mov	QWORD PTR -8264[rbp], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR -8256[rbp], rcx
	mov	QWORD PTR -8248[rbp], rbx
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR -8240[rbp], rax
	lea	rdx, -8272[rbp]
	mov	eax, DWORD PTR -8300[rbp]
	mov	esi, 35091
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	movzx	eax, WORD PTR -8256[rbp]
	cwde
	and	eax, 1
	test	eax, eax
	je	.L6
	mov	rax, QWORD PTR -8296[rbp]
	movzx	eax, WORD PTR 16[rax]
	cmp	ax, 2
	jne	.L6
	mov	rax, QWORD PTR -8296[rbp]
	add	rax, 16
	mov	rcx, QWORD PTR -8312[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	edi, 111
	call	htons@PLT
	mov	rdx, QWORD PTR -8312[rbp]
	mov	WORD PTR 2[rdx], ax
	jmp	.L7
.L6:
	add	QWORD PTR -8296[rbp], 40
	mov	eax, DWORD PTR -8304[rbp]
	sub	eax, 40
	mov	DWORD PTR -8304[rbp], eax
.L4:
	cmp	DWORD PTR -8304[rbp], 0
	jne	.L8
.L7:
	mov	eax, DWORD PTR -8300[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	nop
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_myaddress, .-get_myaddress
	.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	"638958.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"get_myaddress: socket\000"
	.align	2
.LC1:
	.ascii	"get_myaddress: ioctl (get interface configuration)\000"
	.align	2
.LC2:
	.ascii	"get_myaddress: ioctl\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_myaddress
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_myaddress, %function
get_myaddress:
	@ args = 0, pretend = 0, frame = 8256
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8256
	sub	sp, sp, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-60]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-48]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L10+4
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #8192
	str	r3, [r2, #-44]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-40]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #44
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L10+8
	ldr	r0, [r0, #-48]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L10+12
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	str	r3, [r2, #-56]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	str	r3, [r2, #-52]
	b	.L4
.L8:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	sub	ip, r2, #36
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #36
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L10+16
	ldr	r0, [r0, #-48]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L10+20
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldrsh	r3, [r3, #-20]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L6
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	ldrh	r3, [r3, #16]
	cmp	r3, #2
	bne	.L6
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	add	r3, r3, #16
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-60]
	mov	ip, r2
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r0, #111
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	strh	r2, [r3, #2]	@ movhi
	b	.L7
.L6:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	add	r3, r3, #32
	str	r3, [r2, #-56]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	sub	r3, r3, #32
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-52]
.L4:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	cmp	r3, #0
	bne	.L8
.L7:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-48]
	bl	close
	nop
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC3
	.word	.LC0
	.word	35090
	.word	.LC1
	.word	35091
	.word	.LC2
	.size	get_myaddress, .-get_myaddress
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
