	.file	"extr_pidfile.c_write_pidfile.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"wb"
.LC1:
	.string	"%s: %s"
	.text
	.p2align 4
	.type	write_pidfile, @function
write_pidfile:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	rdx, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	lea	rbp, 4[rsp]
	mov	rdi, rbp
	mov	r13, QWORD PTR [rax]
	mov	r14, QWORD PTR 8[rax]
	mov	rsi, r13
	call	hc_fopen@PLT
	test	eax, eax
	je	.L7
	mov	rcx, rbp
	mov	edx, 1
	mov	esi, 4
	mov	rdi, r14
	call	hc_fwrite@PLT
	mov	rdi, rbp
	call	hc_fflush@PLT
	mov	rdi, rbp
	call	hc_fclose@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	rdx, r13
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	mov	ecx, eax
	call	event_log_error@PLT
	mov	eax, -1
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	write_pidfile, .-write_pidfile
	.comm	errno,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_pidfile.c_write_pidfile.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"wb\000"
	.align	2
.LC1:
	.ascii	"%s: %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_pidfile, %function
write_pidfile:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, [r0]
	sub	sp, sp, #8
	ldr	r5, [r3]
	ldr	ip, .L9
	mov	r4, r0
	mov	r1, r5
	mov	r0, sp
	ldr	r2, .L9+4
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	ldr	r6, [r3, #4]
	bl	hc_fopen
	cmp	r0, #0
	beq	.L7
	mov	r3, sp
	mov	r2, #1
	mov	r1, #4
	mov	r0, r6
	bl	hc_fwrite
	mov	r0, sp
	bl	hc_fflush
	mov	r0, sp
	bl	hc_fclose
	mov	r0, #0
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r3, .L9+8
	ldr	r0, [r3]
	bl	strerror
	mov	r2, r5
	mov	r3, r0
	ldr	r1, .L9+12
	mov	r0, r4
	bl	event_log_error
	mvn	r0, #0
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC2
	.word	.LC0
	.word	errno
	.word	.LC1
	.size	write_pidfile, .-write_pidfile
	.comm	errno,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
