	.file	"extr_file_ops.c_remove_target_file.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s/%s"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"could not remove file \"%s\": %m"
	.text
	.p2align 4
	.globl	remove_target_file
	.type	remove_target_file, @function
remove_target_file:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAXPGPATH[rip]
	mov	rcx, rsp
	mov	r12, rsp
	mov	rsi, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L22:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L22
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L23
	cmp	QWORD PTR dry_run[rip], 0
	mov	r13, rsp
	je	.L24
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	mov	rsp, r12
	jne	.L25
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	rcx, QWORD PTR datadir_target[rip]
	mov	r8, rdi
	lea	rdx, .LC0[rip]
	mov	rdi, rsp
	call	snprintf@PLT
	mov	rdi, rsp
	call	unlink@PLT
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR ENOENT[rip]
	cmp	QWORD PTR errno[rip], rax
	jne	.L10
	test	ebx, ebx
	jne	.L5
.L10:
	mov	rsi, r13
	lea	rdi, .LC1[rip]
	call	pg_fatal@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L23:
	or	QWORD PTR -8[rsp+rdx], 0
	cmp	QWORD PTR dry_run[rip], 0
	mov	r13, rsp
	jne	.L5
	jmp	.L24
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	remove_target_file, .-remove_target_file
	.comm	errno,8,8
	.comm	dry_run,8,8
	.comm	datadir_target,8,8
	.comm	MAXPGPATH,4,4
	.comm	ENOENT,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_file_ops.c_remove_target_file.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s/%s\000"
	.align	2
.LC1:
	.ascii	"could not remove file \"%s\": %m\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	remove_target_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	remove_target_file, %function
remove_target_file:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #20
	ldr	r2, .L13
	ldr	r3, .L13+4
	ldr	r2, [r2]
	ldr	ip, [r3]
	add	r3, r2, #7
	bic	r3, r3, #7
	mov	r5, sp
	sub	sp, sp, r3
	ldr	r3, .L13+8
	cmp	ip, #0
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	beq	.L11
.L2:
	ldr	r3, .L13+8
	mov	sp, r5
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L11:
	ldr	r3, .L13+12
	add	r4, sp, #8
	ldr	r3, [r3]
	mov	r6, r1
	str	r0, [sp]
	mov	r1, r2
	mov	r0, r4
	ldr	r2, .L13+16
	bl	snprintf
	mov	r0, r4
	bl	unlink
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L13+20
	ldr	r2, .L13+24
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r6, #0
	sub	r3, r3, r2
	clz	r3, r3
	lsr	r3, r3, #5
	moveq	r3, #0
	cmp	r3, #0
	bne	.L2
	mov	r1, r4
	ldr	r0, .L13+28
	bl	pg_fatal
	b	.L2
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	MAXPGPATH
	.word	dry_run
	.word	.LC2
	.word	datadir_target
	.word	.LC0
	.word	errno
	.word	ENOENT
	.word	.LC1
	.size	remove_target_file, .-remove_target_file
	.comm	errno,4,4
	.comm	dry_run,4,4
	.comm	datadir_target,4,4
	.comm	MAXPGPATH,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
