	.file	"extr_20908.c_sockami2.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"socket()"
.LC1:
	.string	"gethostbyname()"
.LC2:
	.string	"bind()"
.LC3:
	.string	"connect()"
	.text
	.p2align 4
	.globl	sockami2
	.type	sockami2, @function
sockami2:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	xor	edx, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 64
	.cfi_def_cfa_offset 112
	mov	esi, DWORD PTR SOCK_STREAM[rip]
	mov	rdi, QWORD PTR AF_INET[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	socket@PLT
	mov	r12d, eax
	cmp	eax, -1
	je	.L9
	mov	rdi, r14
	call	gethostbyname@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L10
.L3:
	mov	rax, QWORD PTR AF_INET[rip]
	mov	edi, r13d
	lea	r13, 32[rsp]
	mov	QWORD PTR 40[rsp], rax
	call	htons@PLT
	lea	rdi, 52[rsp]
	mov	esi, 8
	mov	QWORD PTR 32[rsp], rax
	mov	eax, DWORD PTR INADDR_ANY[rip]
	mov	DWORD PTR 48[rsp], eax
	call	bzero@PLT
	mov	edx, 4
	mov	rsi, r13
	mov	edi, r12d
	call	bind@PLT
	cmp	eax, -1
	je	.L11
.L4:
	mov	r13, rsp
	xor	esi, esi
	mov	edx, 24
	mov	rdi, r13
	call	memset@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR [rbx]
	lea	rdi, 16[rsp]
	call	memcpy@PLT
	mov	rax, QWORD PTR AF_INET[rip]
	mov	edi, ebp
	mov	QWORD PTR 8[rsp], rax
	call	htons@PLT
	mov	edx, 24
	mov	rsi, r13
	mov	edi, r12d
	mov	QWORD PTR [rsp], rax
	call	connect@PLT
	cmp	eax, -1
	je	.L12
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
	mov	rdi, r14
	call	gethostbyname@PLT
	mov	rbx, rax
	test	rax, rax
	jne	.L3
.L10:
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L4
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sockami2, .-sockami2
	.comm	SOCK_STREAM,4,4
	.comm	INADDR_ANY,4,4
	.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_20908.c_sockami2.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"socket()\000"
	.align	2
.LC1:
	.ascii	"gethostbyname()\000"
	.align	2
.LC2:
	.ascii	"bind()\000"
	.align	2
.LC3:
	.ascii	"connect()\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sockami2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sockami2, %function
sockami2:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L14
	ldr	r7, .L14+4
	mov	r6, r1
	ldr	r1, [r3]
	ldr	r3, .L14+8
	sub	sp, sp, #40
	mov	r5, r0
	mov	r8, r2
	ldr	r0, [r7]
	mov	r2, #0
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	socket
	cmn	r0, #1
	mov	r4, r0
	beq	.L9
	mov	r0, r5
	bl	gethostbyname
	subs	r5, r0, #0
	beq	.L10
.L3:
	ldr	r3, [r7]
	mov	r0, r6
	str	r3, [sp, #24]
	bl	htons
	mov	r2, r0
	ldr	r3, .L14+12
	mov	r1, #8
	ldr	r3, [r3]
	add	r0, sp, #32
	str	r2, [sp, #20]
	str	r3, [sp, #28]
	bl	bzero
	mov	r2, #4
	mov	r0, r4
	add	r1, sp, #20
	bl	bind
	cmn	r0, #1
	beq	.L11
.L4:
	mov	r3, #0
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	str	r3, [sp, #12]
	str	r3, [sp, #16]
	ldr	r2, [r5]
	ldr	r1, [r5, #4]
	add	r0, sp, #12
	bl	memcpy
	ldr	r3, [r7]
	mov	r0, r8
	str	r3, [sp, #8]
	bl	htons
	mov	r3, r0
	mov	r2, #16
	mov	r0, r4
	add	r1, sp, #4
	str	r3, [sp, #4]
	bl	connect
	cmn	r0, #1
	mov	r5, r0
	beq	.L12
.L1:
	ldr	r3, .L14+8
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r4
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r0, .L14+16
	bl	perror
	mov	r0, r4
	bl	exit
	mov	r0, r5
	bl	gethostbyname
	subs	r5, r0, #0
	bne	.L3
.L10:
	ldr	r0, .L14+20
	bl	perror
	mvn	r0, #0
	bl	exit
	b	.L3
.L12:
	ldr	r0, .L14+24
	bl	perror
	mov	r0, r5
	bl	exit
	b	.L1
.L11:
	ldr	r0, .L14+28
	bl	perror
	mov	r0, #1
	bl	exit
	b	.L4
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	SOCK_STREAM
	.word	AF_INET
	.word	.LC4
	.word	INADDR_ANY
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	.LC2
	.size	sockami2, .-sockami2
	.comm	SOCK_STREAM,4,4
	.comm	INADDR_ANY,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
