	.file	"extr_unbound.c_perform_setup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Could not chdir to %s: %s"
.LC1:
	.string	"chdir to %s"
	.text
	.p2align 4
	.type	perform_setup, @function
perform_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	mov	rsi, QWORD PTR 32[rsi]
	test	rsi, rsi
	jne	.L22
.L2:
	test	ebp, ebp
	jne	.L3
	cmp	QWORD PTR 48[rbx], 0
	jne	.L23
.L3:
	mov	r12, QWORD PTR 24[rbx]
	test	r12, r12
	je	.L5
	cmp	BYTE PTR [r12], 0
	je	.L5
	mov	rdi, QWORD PTR 8[rbx]
	test	rdi, rdi
	je	.L7
	cmp	BYTE PTR [rdi], 0
	jne	.L24
.L7:
	mov	rdi, r12
	call	chdir@PLT
	test	rax, rax
	jne	.L25
.L9:
	mov	edi, DWORD PTR VERB_QUERY[rip]
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	verbose@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	QWORD PTR 32[rbx], 0
	je	.L26
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rdx, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 40[rbx]
	call	log_init@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdx, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 40[rbx]
	xor	esi, esi
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	log_init@PLT
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	xor	eax, eax
	call	detach@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L24:
	call	strlen@PLT
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, r12
	mov	edx, eax
	call	strncmp@PLT
	test	rax, rax
	je	.L27
.L8:
	cmp	BYTE PTR [r12], 0
	je	.L5
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	rsi, r12
	lea	rdi, .LC0[rip]
	mov	edx, eax
	xor	eax, eax
	call	fatal_exit@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdi, QWORD PTR 8[rbx]
	call	strlen@PLT
	cdqe
	add	r12, rax
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	perform_setup, .-perform_setup
	.comm	errno,4,4
	.comm	cfg_uid,8,8
	.comm	cfg_gid,8,8
	.comm	VERB_QUERY,4,4
	.comm	LOGIN_SETUSER,4,4
	.comm	LOGIN_SETGROUP,4,4
	.comm	LOGIN_SETALL,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_unbound.c_perform_setup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Could not chdir to %s: %s\000"
	.align	2
.LC1:
	.ascii	"chdir to %s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	perform_setup, %function
perform_setup:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r1, [r1, #16]
	mov	r5, r2
	cmp	r1, #0
	bne	.L34
.L2:
	cmp	r5, #0
	bne	.L3
	ldr	r3, [r4, #24]
	cmp	r3, #0
	bne	.L35
.L3:
	ldr	r5, [r4, #12]
	cmp	r5, #0
	beq	.L4
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L4
	ldr	r6, [r4, #4]
	cmp	r6, #0
	beq	.L5
	ldrb	r3, [r6]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L5
	mov	r0, r6
	bl	strlen
	mov	r1, r6
	mov	r2, r0
	mov	r7, r0
	mov	r0, r5
	bl	strncmp
	cmp	r0, #0
	beq	.L36
.L5:
	mov	r0, r5
	bl	chdir
	cmp	r0, #0
	bne	.L37
.L6:
	ldr	r3, .L38
	mov	r2, r5
	ldr	r0, [r3]
	ldr	r1, .L38+4
	bl	verbose
.L4:
	ldr	r1, [r4, #16]
	cmp	r1, #0
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r2, [r4, #4]
	ldr	r0, [r4, #20]
	pop	{r4, r5, r6, r7, r8, lr}
	b	log_init
.L34:
	ldr	r2, [r4, #4]
	ldr	r0, [r4, #20]
	bl	log_init
	b	.L2
.L35:
	bl	detach
	b	.L3
.L36:
	ldrb	r3, [r5, r7]!	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L4
	b	.L5
.L37:
	ldr	r3, .L38+8
	ldr	r0, [r3]
	bl	strerror
	mov	r1, r5
	mov	r2, r0
	ldr	r0, .L38+12
	bl	fatal_exit
	b	.L6
.L39:
	.align	2
.L38:
	.word	VERB_QUERY
	.word	.LC1
	.word	errno
	.word	.LC0
	.size	perform_setup, .-perform_setup
	.comm	errno,4,4
	.comm	cfg_uid,4,4
	.comm	cfg_gid,4,4
	.comm	VERB_QUERY,4,4
	.comm	LOGIN_SETUSER,4,4
	.comm	LOGIN_SETGROUP,4,4
	.comm	LOGIN_SETALL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
