	.file	"extr_fpm_env.c_fpm_env_init_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"master process (%s)"
	.text
	.p2align 4
	.globl	fpm_env_init_main
	.type	fpm_env_init_main, @function
fpm_env_init_main:
.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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rbx, QWORD PTR fpm_worker_all_pools[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rbx, rbx
	jne	.L2
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rbx, QWORD PTR [rbx]
	test	rbx, rbx
	je	.L7
.L2:
	mov	rdi, rbx
	call	fpm_env_conf_wp@PLT
	test	rax, rax
	jns	.L5
.L21:
	mov	eax, -1
.L1:
	mov	rsi, QWORD PTR 8[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L72
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR fpm_globals[rip]
	test	eax, eax
	jle	.L73
	xor	ebp, ebp
	xor	eax, eax
	lea	r13, fpm_globals[rip]
	xor	ebx, ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	add	rbp, 1
	cmp	DWORD PTR 0[r13], ebp
	jle	.L74
.L3:
	mov	rdx, QWORD PTR fpm_globals[rip+8]
	test	rbx, rbx
	mov	r12, QWORD PTR [rdx+rbp*8]
	cmove	rbx, r12
	test	rax, rax
	je	.L9
	lea	rdx, 1[rax]
	cmp	r12, rdx
	jne	.L10
.L9:
	mov	rdi, r12
	add	rbp, 1
	call	strlen@PLT
	cdqe
	add	rax, r12
	cmp	DWORD PTR 0[r13], ebp
	jg	.L3
.L74:
	mov	rdx, QWORD PTR environ[rip]
	test	rdx, rdx
	je	.L11
	mov	rbp, QWORD PTR [rdx]
	test	rbp, rbp
	je	.L11
.L26:
	mov	r12d, 8
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rbp, QWORD PTR [rdx+r12]
	add	r12, 8
	test	rbp, rbp
	je	.L16
.L15:
	test	rbx, rbx
	cmove	rbx, rbp
	test	rax, rax
	je	.L13
	lea	rcx, 1[rax]
	cmp	rbp, rcx
	jne	.L14
.L13:
	mov	rdi, rbp
	call	strlen@PLT
	mov	rdx, QWORD PTR environ[rip]
	cdqe
	add	rax, rbp
	mov	rbp, QWORD PTR [rdx+r12]
	add	r12, 8
	test	rbp, rbp
	jne	.L15
.L16:
	sub	rax, rbx
	mov	DWORD PTR fpm_env_argv_len[rip], eax
	mov	rax, QWORD PTR fpm_globals[rip+8]
	mov	QWORD PTR fpm_env_argv[rip], rax
	test	rdx, rdx
	je	.L18
	cmp	QWORD PTR [rdx], 0
	je	.L19
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L20:
	lea	eax, 1[rbp]
	mov	ebx, ebp
	cmp	QWORD PTR [rdx+rax*8], 0
	mov	rbp, rax
	lea	r13, 0[0+rax*8]
	jne	.L20
	lea	edi, 16[0+rbx*8]
	call	malloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L21
	mov	QWORD PTR [rax+r13], 0
	test	ebp, ebp
	je	.L22
	mov	rbp, QWORD PTR environ[rip]
	sal	rbx, 3
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, QWORD PTR 0[rbp+rbx]
	call	strdup@PLT
	mov	QWORD PTR [r12+rbx], rax
	sub	rbx, 8
	cmp	rbx, -8
	jne	.L23
.L22:
	mov	QWORD PTR environ[rip], r12
.L18:
	mov	ecx, DWORD PTR fpm_globals[rip+16]
	mov	rdi, rsp
	lea	rdx, .LC0[rip]
	xor	esi, esi
	call	spprintf@PLT
	mov	rdi, QWORD PTR [rsp]
	call	fpm_env_setproctitle@PLT
	mov	rdi, QWORD PTR [rsp]
	call	efree@PLT
.L70:
	xor	eax, eax
	jmp	.L1
.L73:
	mov	rdx, QWORD PTR environ[rip]
	test	rdx, rdx
	je	.L70
	mov	rbp, QWORD PTR [rdx]
	xor	eax, eax
	xor	ebx, ebx
	test	rbp, rbp
	jne	.L26
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	test	rbx, rbx
	je	.L70
	test	rax, rax
	jne	.L16
	xor	eax, eax
	jmp	.L1
.L19:
	mov	edi, 8
	call	malloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L21
	mov	QWORD PTR [r12], 0
	jmp	.L22
.L72:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fpm_env_init_main, .-fpm_env_init_main
	.comm	fpm_worker_all_pools,8,8
	.comm	fpm_globals,24,16
	.comm	fpm_env_argv_len,4,4
	.comm	fpm_env_argv,8,8
	.comm	environ,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_fpm_env.c_fpm_env_init_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"master process (%s)\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fpm_env_init_main
	.syntax unified
	.arm
	.fpu softvfp
	.type	fpm_env_init_main, %function
fpm_env_init_main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L71
	ldr	r2, .L71+4
	ldr	r4, [r3]
	sub	sp, sp, #12
	cmp	r4, #0
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	bne	.L2
	b	.L7
.L5:
	ldr	r4, [r4]
	cmp	r4, #0
	beq	.L7
.L2:
	mov	r0, r4
	bl	fpm_env_conf_wp
	cmp	r0, #0
	bge	.L5
.L24:
	mvn	r0, #0
.L1:
	ldr	r3, .L71+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L64
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r7, .L71+8
	ldr	r8, .L71+12
	ldr	fp, [r7]
	ldr	r6, [r8]
	cmp	fp, #0
	ble	.L65
	mov	r0, #0
	ldr	r10, [r7, #4]
	mov	r4, r0
	sub	r9, r10, #4
	add	fp, r9, fp, lsl #2
	b	.L11
.L67:
	add	r3, r0, #1
	cmp	r5, r3
	beq	.L9
	cmp	fp, r9
	beq	.L66
.L11:
	ldr	r5, [r9, #4]!
	cmp	r4, #0
	moveq	r4, r5
	cmp	r0, #0
	bne	.L67
.L9:
	mov	r0, r5
	bl	strlen
	cmp	fp, r9
	add	r0, r5, r0
	bne	.L11
.L66:
	cmp	r6, #0
	beq	.L12
	ldr	r10, [r6]
	cmp	r10, #0
	beq	.L68
.L29:
	mov	r5, r6
	b	.L17
.L70:
	add	r3, r0, #1
	cmp	r10, r3
	beq	.L15
	ldr	r10, [r5, #4]!
	cmp	r10, #0
	beq	.L69
.L17:
	cmp	r4, #0
	moveq	r4, r10
	cmp	r0, #0
	bne	.L70
.L15:
	mov	r0, r10
	bl	strlen
	add	r0, r10, r0
	ldr	r10, [r5, #4]!
	cmp	r10, #0
	bne	.L17
.L69:
	ldr	r1, .L71+16
	sub	r3, r0, r4
	str	r3, [r1]
	mov	r0, r10
	mov	r3, r6
	ldr	r2, .L71+20
	ldr	r1, [r7, #4]
	str	r1, [r2]
.L19:
	ldr	r4, [r3, #4]!
	mov	r2, r0
	cmp	r4, #0
	add	r0, r0, #1
	lsl	r5, r0, #2
	bne	.L19
	add	r0, r2, #2
	lsl	r0, r0, #2
	bl	malloc
	subs	r9, r0, #0
	strne	r4, [r9, r5]
	addne	r4, r6, r5
	addne	r5, r9, r5
	beq	.L24
.L21:
	ldr	r0, [r4, #-4]!
	bl	strdup
	cmp	r6, r4
	str	r0, [r5, #-4]!
	bne	.L21
.L28:
	str	r9, [r8]
.L22:
	mov	r1, #0
	ldr	r3, [r7, #8]
	ldr	r2, .L71+24
	mov	r0, sp
	bl	spprintf
	ldr	r0, [sp]
	bl	fpm_env_setproctitle
	ldr	r0, [sp]
	bl	efree
.L62:
	mov	r0, #0
	b	.L1
.L65:
	cmp	r6, #0
	beq	.L62
	ldr	r10, [r6]
	cmp	r10, #0
	movne	r4, #0
	movne	r0, r4
	bne	.L29
	mov	r0, r10
	b	.L1
.L12:
	cmp	r4, #0
	beq	.L62
	ldr	r2, .L71+16
	ldr	r3, .L71+20
	sub	r0, r0, r4
	str	r0, [r2]
	str	r10, [r3]
	b	.L22
.L68:
	cmp	r4, #0
	beq	.L62
	ldr	r2, .L71+16
	sub	r0, r0, r4
	str	r0, [r2]
	ldr	r3, .L71+20
	ldr	r2, [r7, #4]
	mov	r0, #4
	str	r2, [r3]
	bl	malloc
	subs	r9, r0, #0
	strne	r10, [r9]
	bne	.L28
	b	.L24
.L64:
	bl	__stack_chk_fail
.L72:
	.align	2
.L71:
	.word	fpm_worker_all_pools
	.word	.LC1
	.word	fpm_globals
	.word	environ
	.word	fpm_env_argv_len
	.word	fpm_env_argv
	.word	.LC0
	.size	fpm_env_init_main, .-fpm_env_init_main
	.comm	fpm_worker_all_pools,4,4
	.comm	fpm_globals,12,4
	.comm	fpm_env_argv_len,4,4
	.comm	fpm_env_argv,4,4
	.comm	environ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
