	.file	"extr_swap.c_swap_add_extras.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	swap_add_extras, @function
swap_add_extras:
.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
	call	assert@PLT
	mov	rdi, rbp
	call	UNIT@PLT
	cmp	QWORD PTR 8[rax], 0
	je	.L2
	mov	DWORD PTR 0[rbp], 1
.L2:
	mov	rdi, QWORD PTR 8[rbp]
	test	rdi, rdi
	je	.L15
.L3:
	xor	esi, esi
	call	path_simplify@PLT
	mov	rdi, rbp
	call	UNIT@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L10
	mov	r12, QWORD PTR 8[rbp]
	mov	rdi, rbp
	call	UNIT@PLT
	mov	rdi, rax
	mov	rsi, r12
	call	unit_set_description@PLT
	test	eax, eax
	js	.L1
.L10:
	mov	r13d, DWORD PTR UNIT_DEPENDENCY_IMPLICIT[rip]
	mov	r12, QWORD PTR 8[rbp]
	mov	rdi, rbp
	call	UNIT@PLT
	mov	rdi, rax
	mov	edx, r13d
	mov	rsi, r12
	call	unit_require_mounts_for@PLT
	test	eax, eax
	js	.L1
	mov	rdi, rbp
	call	swap_add_device_dependencies@PLT
	test	eax, eax
	js	.L1
	mov	rdi, rbp
	call	swap_load_devnode@PLT
	test	eax, eax
	js	.L1
	mov	rdi, rbp
	call	UNIT@PLT
	mov	rdi, rax
	call	unit_patch_contexts@PLT
	test	eax, eax
	js	.L1
	mov	rdi, rbp
	call	UNIT@PLT
	lea	rsi, 4[rbp]
	mov	rdi, rax
	call	unit_add_exec_dependencies@PLT
	test	eax, eax
	js	.L1
	mov	rdi, rbp
	call	UNIT@PLT
	mov	rdi, rax
	call	unit_set_default_slice@PLT
	test	eax, eax
	js	.L1
	mov	rdi, rbp
	call	swap_add_default_dependencies@PLT
	mov	edx, 0
	test	eax, eax
	cmovg	eax, edx
.L1:
	pop	rbp
	.cfi_remember_state
	.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
.L15:
	.cfi_restore_state
	mov	rdi, QWORD PTR 24[rbp]
	test	rdi, rdi
	jne	.L13
	mov	rdi, QWORD PTR 16[rbp]
	test	rdi, rdi
	je	.L6
.L13:
	call	strdup@PLT
	mov	QWORD PTR 8[rbp], rax
	mov	rdi, rax
.L5:
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	test	rdi, rdi
	jne	.L3
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbp
	call	UNIT@PLT
	lea	rsi, 8[rbp]
	mov	edi, DWORD PTR 4[rax]
	call	unit_name_to_path@PLT
	test	eax, eax
	js	.L1
	mov	rdi, QWORD PTR 8[rbp]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	swap_add_extras, .-swap_add_extras
	.comm	UNIT_DEPENDENCY_IMPLICIT,4,4
	.comm	ENOMEM,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_swap.c_swap_add_extras.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	swap_add_extras, %function
swap_add_extras:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	assert
	mov	r0, r4
	bl	UNIT
	ldr	r3, [r0, #8]
	ldr	r0, [r4, #8]
	cmp	r3, #0
	movne	r3, #1
	strne	r3, [r4]
	cmp	r0, #0
	beq	.L20
.L3:
	mov	r1, #0
	bl	path_simplify
	mov	r0, r4
	bl	UNIT
	ldr	r3, [r0]
	cmp	r3, #0
	bne	.L10
	mov	r0, r4
	bl	UNIT
	ldr	r1, [r4, #8]
	bl	unit_set_description
	cmp	r0, #0
	poplt	{r4, pc}
.L10:
	mov	r0, r4
	bl	UNIT
	ldr	r3, .L21
	ldr	r1, [r4, #8]
	ldr	r2, [r3]
	bl	unit_require_mounts_for
	cmp	r0, #0
	poplt	{r4, pc}
	mov	r0, r4
	bl	swap_add_device_dependencies
	cmp	r0, #0
	poplt	{r4, pc}
	mov	r0, r4
	bl	swap_load_devnode
	cmp	r0, #0
	poplt	{r4, pc}
	mov	r0, r4
	bl	UNIT
	bl	unit_patch_contexts
	cmp	r0, #0
	poplt	{r4, pc}
	mov	r0, r4
	bl	UNIT
	add	r1, r4, #4
	bl	unit_add_exec_dependencies
	cmp	r0, #0
	poplt	{r4, pc}
	mov	r0, r4
	bl	UNIT
	bl	unit_set_default_slice
	cmp	r0, #0
	poplt	{r4, pc}
	mov	r0, r4
	bl	swap_add_default_dependencies
	and	r0, r0, r0, asr #31
	pop	{r4, pc}
.L20:
	ldr	r0, [r4, #16]
	cmp	r0, #0
	bne	.L18
	ldr	r0, [r4, #12]
	cmp	r0, #0
	beq	.L6
.L18:
	bl	strdup
	str	r0, [r4, #8]
.L5:
	cmp	r0, #0
	bne	.L3
	ldr	r3, .L21+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L6:
	mov	r0, r4
	bl	UNIT
	add	r1, r4, #8
	ldr	r0, [r0, #4]
	bl	unit_name_to_path
	cmp	r0, #0
	poplt	{r4, pc}
	ldr	r0, [r4, #8]
	b	.L5
.L22:
	.align	2
.L21:
	.word	UNIT_DEPENDENCY_IMPLICIT
	.word	ENOMEM
	.size	swap_add_extras, .-swap_add_extras
	.comm	UNIT_DEPENDENCY_IMPLICIT,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
