	.file	"extr_linux_socket.c_linux_connect.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	linux_connect
	.type	linux_connect, @function
linux_connect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR 8[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	PTRIN@PLT
	lea	rdx, 4[rbx]
	lea	rsi, 8[rsp]
	mov	edi, eax
	call	linux_to_bsd_sockaddr@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L11
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	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
.L11:
	.cfi_restore_state
	mov	rcx, QWORD PTR 8[rsp]
	mov	edx, DWORD PTR [rbx]
	mov	rdi, rbp
	mov	esi, DWORD PTR AT_FDCWD[rip]
	call	kern_connectat@PLT
	mov	esi, DWORD PTR M_SONAME[rip]
	mov	rdi, QWORD PTR 8[rsp]
	mov	r12d, eax
	call	free@PLT
	cmp	DWORD PTR EISCONN[rip], r12d
	jne	.L1
	mov	esi, DWORD PTR [rbx]
	lea	rcx, 16[rsp]
	xor	r9d, r9d
	lea	r8, 4[rsp]
	lea	rdx, cap_connect_rights[rip]
	mov	rdi, rbp
	call	getsock_cap@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	r12d, DWORD PTR EISCONN[rip]
	mov	rdi, QWORD PTR 16[rsp]
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR FNONBLOCK[rip], eax
	jne	.L13
.L3:
	mov	rsi, rbp
	call	fdrop@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	r13, QWORD PTR [rdi]
	mov	rdi, r13
	call	SOCK_LOCK@PLT
	cmp	QWORD PTR 8[r13], 0
	je	.L14
.L4:
	mov	QWORD PTR 8[r13], 1
	mov	rdi, r13
	call	SOCK_UNLOCK@PLT
	mov	rdi, QWORD PTR 16[rsp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r12d, DWORD PTR 0[r13]
	jmp	.L4
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	linux_connect, .-linux_connect
	.comm	cap_connect_rights,4,4
	.comm	M_SONAME,4,4
	.comm	FNONBLOCK,4,4
	.comm	EISCONN,4,4
	.comm	AT_FDCWD,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_linux_socket.c_linux_connect.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	linux_connect
	.syntax unified
	.arm
	.fpu softvfp
	.type	linux_connect, %function
linux_connect:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r1
	ldr	r3, .L14
	sub	sp, sp, #28
	mov	r6, r0
	ldr	r0, [r1, #8]
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	PTRIN
	add	r2, r5, #4
	add	r1, sp, #8
	bl	linux_to_bsd_sockaddr
	subs	r4, r0, #0
	beq	.L11
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L11:
	ldr	r2, .L14+4
	ldr	r3, [sp, #8]
	ldr	r1, [r2]
	mov	r0, r6
	ldr	r2, [r5]
	bl	kern_connectat
	mov	r4, r0
	ldr	r3, .L14+8
	ldr	r7, .L14+12
	ldr	r1, [r3]
	ldr	r0, [sp, #8]
	bl	free
	ldr	r3, [r7]
	cmp	r3, r4
	bne	.L1
	mov	r2, #0
	add	r3, sp, #16
	ldr	r1, [r5]
	mov	r0, r6
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r2, .L14+16
	add	r3, sp, #12
	bl	getsock_cap
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L14+20
	ldr	r2, [sp, #16]
	ldr	r3, [r3]
	ldr	r4, [r7]
	tst	r2, r3
	ldr	r0, [sp, #12]
	bne	.L13
.L3:
	mov	r1, r6
	bl	fdrop
	b	.L1
.L13:
	ldr	r5, [r0]
	mov	r0, r5
	bl	SOCK_LOCK
	ldr	r3, [r5, #4]
	mov	r0, r5
	cmp	r3, #0
	mov	r3, #1
	str	r3, [r5, #4]
	ldreq	r4, [r5]
	bl	SOCK_UNLOCK
	ldr	r0, [sp, #12]
	b	.L3
.L12:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	AT_FDCWD
	.word	M_SONAME
	.word	EISCONN
	.word	cap_connect_rights
	.word	FNONBLOCK
	.size	linux_connect, .-linux_connect
	.comm	cap_connect_rights,4,4
	.comm	M_SONAME,4,4
	.comm	FNONBLOCK,4,4
	.comm	EISCONN,4,4
	.comm	AT_FDCWD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
