	.file	"extr_journal-iterate-poll.c_wait_for_changes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	wait_for_changes
	.type	wait_for_changes, @function
wait_for_changes:
.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
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rsi, 8[rsp]
	call	sd_journal_get_timeout@PLT
	cmp	QWORD PTR 8[rsp], -1
	jne	.L9
	mov	r12d, -1
	lea	r13, 16[rsp]
.L2:
	mov	rdi, rbp
	call	sd_journal_get_fd@PLT
	mov	rdi, rbp
	mov	DWORD PTR 20[rsp], eax
	call	sd_journal_get_events@PLT
	mov	edx, r12d
	mov	esi, 1
	mov	rdi, r13
	mov	DWORD PTR 16[rsp], eax
	call	poll@PLT
	mov	rdi, rbp
	call	sd_journal_process@PLT
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 48
	.cfi_remember_state
	.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
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR CLOCK_MONOTONIC[rip]
	lea	r13, 16[rsp]
	xor	r12d, r12d
	mov	rsi, r13
	call	clock_gettime@PLT
	movsx	rax, DWORD PTR 16[rsp]
	imul	rcx, QWORD PTR 24[rsp], 1000000
	mov	rdx, rax
	imul	rax, rax, 274877907
	sar	edx, 31
	sar	rax, 38
	sub	eax, edx
	mov	rdx, QWORD PTR 8[rsp]
	cdqe
	add	rax, rcx
	cmp	rdx, rax
	jle	.L2
	sub	rdx, rax
	add	rdx, 999
	shr	rdx, 3
	mov	r12, rdx
	movabs	rdx, 2361183241434822607
	mov	rax, r12
	mul	rdx
	shr	rdx, 4
	mov	r12d, edx
	jmp	.L2
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wait_for_changes, .-wait_for_changes
	.comm	CLOCK_MONOTONIC,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_journal-iterate-poll.c_wait_for_changes.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	wait_for_changes
	.syntax unified
	.arm
	.fpu softvfp
	.type	wait_for_changes, %function
wait_for_changes:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L12
	sub	sp, sp, #16
	mov	r1, sp
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r5, r0
	bl	sd_journal_get_timeout
	ldr	r4, [sp]
	cmn	r4, #1
	addeq	r6, sp, #4
	beq	.L2
	ldr	r3, .L12+4
	add	r6, sp, #4
	mov	r1, r6
	ldr	r0, [r3]
	bl	clock_gettime
	ldr	r4, .L12+8
	ldr	r0, [sp, #4]
	ldr	r1, [sp, #8]
	smull	r2, r3, r4, r0
	rsb	ip, r1, r1, lsl #5
	rsb	ip, ip, ip, lsl #6
	asr	r0, r0, #31
	rsb	r0, r0, r3, asr #6
	add	r1, r1, ip, lsl #3
	ldr	r3, [sp]
	add	r0, r0, r1, lsl #6
	cmp	r3, r0
	movle	r4, #0
	subgt	r3, r3, r0
	addgt	r3, r3, #996
	addgt	r3, r3, #3
	umullgt	r2, r3, r4, r3
	lsrgt	r4, r3, #6
.L2:
	mov	r0, r5
	bl	sd_journal_get_fd
	mov	r3, r0
	mov	r0, r5
	str	r3, [sp, #8]
	bl	sd_journal_get_events
	mov	r3, r0
	mov	r2, r4
	mov	r1, #1
	mov	r0, r6
	str	r3, [sp, #4]
	bl	poll
	mov	r0, r5
	bl	sd_journal_process
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	CLOCK_MONOTONIC
	.word	274877907
	.size	wait_for_changes, .-wait_for_changes
	.comm	CLOCK_MONOTONIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
