	.file	"extr_23811.c_connectm.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"error> cannot resolve %s\n"
	.text
	.p2align 4
	.globl	connectm
	.type	connectm, @function
connectm:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	edi, 20
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	alarm@PLT
	mov	esi, DWORD PTR SOCK_STREAM[rip]
	mov	edi, DWORD PTR PF_INET[rip]
	xor	edx, edx
	call	socket@PLT
	mov	DWORD PTR [rbx], eax
	test	eax, eax
	je	.L6
	mov	rdi, rbp
	call	inet_addr@PLT
	mov	DWORD PTR inet[rip], eax
	mov	r12d, eax
	cmp	eax, -1
	je	.L9
.L3:
	mov	eax, DWORD PTR PF_INET[rip]
	mov	edi, r13d
	mov	DWORD PTR 20[rsp], eax
	call	htons@PLT
	mov	edi, DWORD PTR [rbx]
	lea	rsi, 12[rsp]
	mov	edx, 12
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR inet[rip]
	mov	DWORD PTR 12[rsp], eax
	call	connect@PLT
	xor	edi, edi
	mov	DWORD PTR inet[rip], eax
	call	perror@PLT
	xor	edi, edi
	call	alarm@PLT
	mov	r12d, DWORD PTR inet[rip]
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, rbp
	call	gethostbyname@PLT
	test	rax, rax
	je	.L4
	mov	esi, DWORD PTR [rax]
	mov	edx, 4
	lea	rdi, inet[rip]
	call	memcpy@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r12d, -1
	jmp	.L1
.L4:
	mov	rsi, rbp
	lea	rdi, .LC0[rip]
	call	log@PLT
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	connectm, .-connectm
	.comm	inet,4,4
	.comm	SOCK_STREAM,4,4
	.comm	PF_INET,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_23811.c_connectm.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"error> cannot resolve %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	connectm
	.syntax unified
	.arm
	.fpu softvfp
	.type	connectm, %function
connectm:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L11
	sub	sp, sp, #20
	mov	r7, r0
	mov	r0, #20
	mov	r6, r2
	mov	r8, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r9, .L11+4
	bl	alarm
	ldr	r3, .L11+8
	mov	r2, #0
	ldr	r0, [r9]
	ldr	r1, [r3]
	bl	socket
	cmp	r0, #0
	str	r0, [r6]
	beq	.L6
	mov	r0, r7
	bl	inet_addr
	ldr	r5, .L11+12
	cmn	r0, #1
	mov	r4, r0
	str	r0, [r5]
	beq	.L9
.L3:
	ldr	r3, [r9]
	mov	r0, r8
	str	r3, [sp, #8]
	bl	htons
	mov	ip, r0
	ldr	r3, [r5]
	mov	r2, #12
	mov	r1, sp
	ldr	r0, [r6]
	stm	sp, {r3, ip}
	bl	connect
	mov	r3, r0
	mov	r0, #0
	str	r3, [r5]
	bl	perror
	mov	r0, #0
	bl	alarm
	ldr	r4, [r5]
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L9:
	mov	r0, r7
	bl	gethostbyname
	cmp	r0, #0
	beq	.L4
	ldr	r1, [r0]
	mov	r2, #4
	mov	r0, r5
	bl	memcpy
	b	.L3
.L6:
	mvn	r4, #0
	b	.L1
.L4:
	mov	r1, r7
	ldr	r0, .L11+16
	bl	log
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	PF_INET
	.word	SOCK_STREAM
	.word	inet
	.word	.LC0
	.size	connectm, .-connectm
	.comm	inet,4,4
	.comm	SOCK_STREAM,4,4
	.comm	PF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
