	.file	"extr_outside_network.c_pick_outgoing_tcp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"no TCP outgoing interfaces of family"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"for addr"
.LC2:
	.string	"outgoing tcp: bind: %s"
.LC3:
	.string	"tcp bound to src"
	.text
	.p2align 4
	.type	pick_outgoing_tcp, @function
pick_outgoing_tcp:
.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	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdi]
	mov	r12d, DWORD PTR 4[rax]
	test	r12d, r12d
	je	.L10
	mov	edi, DWORD PTR 8[rax]
	mov	esi, r12d
	mov	rbx, QWORD PTR 16[rax]
	mov	r12d, 1
	call	ub_random_max@PLT
	lea	rbx, [rbx+rax*8]
	mov	rdi, rbx
	lea	r13, 4[rbx]
	call	log_assert@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdi, r13
	call	addr_is_any@PLT
	test	rax, rax
	je	.L11
	add	rsp, 8
	.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	esi, DWORD PTR [rbx]
	mov	rdi, r13
	call	addr_is_ip6@PLT
	mov	edx, DWORD PTR [rbx]
	mov	rsi, r13
	mov	edi, ebp
	mov	QWORD PTR 4[rbx], 0
	call	bind@PLT
	test	rax, rax
	jne	.L12
	mov	ecx, DWORD PTR [rbx]
	mov	edi, DWORD PTR VERB_ALGO[rip]
	mov	rdx, r13
	lea	rsi, .LC3[rip]
	mov	r12d, 1
	call	log_addr@PLT
	add	rsp, 8
	.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
.L10:
	.cfi_restore_state
	mov	rbx, rdi
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	log_err@PLT
	mov	ecx, DWORD PTR 8[rbx]
	lea	rdx, 12[rbx]
	mov	edi, DWORD PTR VERB_OPS[rip]
	lea	rsi, .LC1[rip]
	call	log_addr@PLT
	mov	edi, ebp
	call	close@PLT
	add	rsp, 8
	.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
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR errno[rip]
	xor	r12d, r12d
	call	strerror@PLT
	lea	rdi, .LC2[rip]
	mov	esi, eax
	xor	eax, eax
	call	log_err@PLT
	mov	edi, ebp
	call	close@PLT
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	pick_outgoing_tcp, .-pick_outgoing_tcp
	.comm	errno,4,4
	.comm	VERB_OPS,4,4
	.comm	VERB_ALGO,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_outside_network.c_pick_outgoing_tcp.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"no TCP outgoing interfaces of family\000"
	.align	2
.LC1:
	.ascii	"for addr\000"
	.align	2
.LC2:
	.ascii	"outgoing tcp: bind: %s\000"
	.align	2
.LC3:
	.ascii	"tcp bound to src\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pick_outgoing_tcp, %function
pick_outgoing_tcp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r4, [r3, #4]
	mov	r8, r1
	cmp	r4, #0
	beq	.L10
	mov	r1, r4
	ldr	r0, [r3, #8]
	ldr	r9, [r3, #12]
	bl	ub_random_max
	mov	r5, r0
	add	r6, r9, r0, lsl #3
	mov	r0, r6
	add	r7, r6, #4
	bl	log_assert
	mov	r0, r7
	ldr	r1, [r9, r5, lsl #3]
	bl	addr_is_any
	subs	r4, r0, #0
	movne	r4, #1
	beq	.L11
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	ldr	r1, [r9, r5, lsl #3]
	mov	r0, r7
	bl	addr_is_ip6
	mov	r1, r7
	mov	r0, r8
	ldr	r2, [r9, r5, lsl #3]
	str	r4, [r6, #4]
	bl	bind
	cmp	r0, #0
	bne	.L12
	mov	r4, #1
	ldr	r1, .L13
	mov	r2, r7
	ldr	r3, [r9, r5, lsl #3]
	ldr	r0, [r1]
	ldr	r1, .L13+4
	bl	log_addr
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	mov	r5, r0
	ldr	r0, .L13+8
	bl	log_err
	ldr	r2, .L13+12
	ldr	r3, [r5, #4]
	ldr	r1, .L13+16
	ldr	r0, [r2]
	add	r2, r5, #8
	bl	log_addr
	mov	r0, r8
	bl	close
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	ldr	r3, .L13+20
	ldr	r0, [r3]
	bl	strerror
	mov	r1, r0
	ldr	r0, .L13+24
	bl	log_err
	mov	r0, r8
	bl	close
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	.align	2
.L13:
	.word	VERB_ALGO
	.word	.LC3
	.word	.LC0
	.word	VERB_OPS
	.word	.LC1
	.word	errno
	.word	.LC2
	.size	pick_outgoing_tcp, .-pick_outgoing_tcp
	.comm	errno,4,4
	.comm	VERB_OPS,4,4
	.comm	VERB_ALGO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
