	.file	"extr_timedated.c_method_set_local_rtc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"local"
.LC1:
	.string	"UTC"
.LC2:
	.string	"bbb"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"org.freedesktop.timedate1.set-local-rtc"
	.section	.rodata.str1.1
.LC4:
	.string	"Failed to set RTC to %s: %m"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"Failed to tell kernel about timezone, ignoring: %m"
	.align 8
.LC6:
	.string	"Failed to get hardware clock, ignoring: %m"
	.align 8
.LC7:
	.string	"Failed to update system clock, ignoring: %m"
	.align 8
.LC8:
	.string	"Failed to sync time to hardware clock, ignoring: %m"
	.section	.rodata.str1.1
.LC9:
	.string	"RTC configured to %s time."
.LC10:
	.string	"LocalRTC"
.LC11:
	.string	"org.freedesktop.timedate1"
.LC12:
	.string	"/org/freedesktop/timedate1"
	.text
	.p2align 4
	.type	method_set_local_rtc, @function
method_set_local_rtc:
.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
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	assert@PLT
	mov	rdi, rbx
	call	assert@PLT
	lea	rcx, 8[rsp]
	mov	rdi, rbp
	lea	rdx, 4[rsp]
	lea	r8, 12[rsp]
	lea	rsi, .LC2[rip]
	call	sd_bus_message_read@PLT
	test	eax, eax
	js	.L1
	mov	eax, DWORD PTR 4[rsp]
	cmp	DWORD PTR [rbx], eax
	je	.L26
	lea	rax, 4[rbx]
	push	r12
	.cfi_def_cfa_offset 88
	mov	r9d, DWORD PTR UID_INVALID[rip]
	xor	ecx, ecx
	push	rax
	.cfi_def_cfa_offset 96
	mov	esi, DWORD PTR CAP_SYS_TIME[rip]
	lea	rdx, .LC3[rip]
	mov	rdi, rbp
	mov	r8d, DWORD PTR 28[rsp]
	call	bus_verify_polkit_async@PLT
	pop	r13
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	test	eax, eax
	js	.L1
	mov	eax, 1
	je	.L1
	mov	eax, DWORD PTR 4[rsp]
	mov	rdi, rbx
	mov	DWORD PTR [rbx], eax
	call	context_write_data_local_rtc@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L28
	xor	edi, edi
	call	clock_set_timezone@PLT
	test	eax, eax
	js	.L29
.L7:
	mov	edi, DWORD PTR CLOCK_REALTIME[rip]
	lea	r12, 16[rsp]
	lea	r13, 20[rsp]
	mov	rsi, r12
	call	clock_gettime@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	assert_se@PLT
	mov	r9d, DWORD PTR 8[rsp]
	mov	rsi, r13
	mov	rdi, r12
	test	r9d, r9d
	je	.L8
	mov	r8d, DWORD PTR [rbx]
	test	r8d, r8d
	jne	.L30
	call	gmtime_r@PLT
.L10:
	mov	rdi, r13
	call	clock_get_hwclock@PLT
	test	eax, eax
	js	.L31
	mov	ecx, DWORD PTR [rbx]
	mov	rdi, r13
	test	ecx, ecx
	je	.L13
	call	mktime@PLT
	mov	DWORD PTR 16[rsp], eax
.L14:
	mov	edi, DWORD PTR CLOCK_REALTIME[rip]
	mov	rsi, r12
	call	clock_settime@PLT
	test	rax, rax
	jns	.L15
	mov	edi, DWORD PTR errno[rip]
	lea	rsi, .LC7[rip]
	call	log_debug_errno@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	jne	.L32
	call	gmtime_r@PLT
.L17:
	mov	rdi, r13
	call	clock_set_hwclock@PLT
	test	eax, eax
	js	.L33
.L15:
	mov	eax, DWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	lea	rdi, .LC9[rip]
	test	eax, eax
	lea	rax, .LC1[rip]
	cmove	rsi, rax
	call	log_info@PLT
	mov	rdi, rbp
	call	sd_bus_message_get_bus@PLT
	xor	r8d, r8d
	lea	rcx, .LC10[rip]
	lea	rdx, .LC11[rip]
	mov	edi, eax
	lea	rsi, .LC12[rip]
	call	sd_bus_emit_properties_changed@PLT
.L26:
	xor	esi, esi
	mov	rdi, rbp
	call	sd_bus_reply_method_return@PLT
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L34
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.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
.L28:
	.cfi_restore_state
	mov	r10d, DWORD PTR 4[rsp]
	lea	rbp, .LC1[rip]
	lea	rbx, .LC0[rip]
	mov	edi, eax
	mov	rdx, rbp
	lea	rsi, .LC4[rip]
	test	r10d, r10d
	cmovne	rdx, rbx
	call	log_error_errno@PLT
	mov	r11d, DWORD PTR 4[rsp]
	mov	rcx, rbp
	mov	esi, r13d
	lea	rdx, .LC4[rip]
	mov	rdi, r12
	test	r11d, r11d
	cmovne	rcx, rbx
	call	sd_bus_error_set_errnof@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	call	localtime_r@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L30:
	call	localtime_r@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L29:
	lea	rsi, .LC5[rip]
	mov	edi, eax
	call	log_debug_errno@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	call	timegm@PLT
	mov	DWORD PTR 16[rsp], eax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L31:
	lea	rsi, .LC6[rip]
	mov	edi, eax
	call	log_debug_errno@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L33:
	lea	rsi, .LC8[rip]
	mov	edi, eax
	call	log_debug_errno@PLT
	jmp	.L15
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	method_set_local_rtc, .-method_set_local_rtc
	.comm	errno,4,4
	.comm	UID_INVALID,4,4
	.comm	CLOCK_REALTIME,4,4
	.comm	CAP_SYS_TIME,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_timedated.c_method_set_local_rtc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"local\000"
	.align	2
.LC1:
	.ascii	"UTC\000"
	.align	2
.LC2:
	.ascii	"bbb\000"
	.align	2
.LC3:
	.ascii	"org.freedesktop.timedate1.set-local-rtc\000"
	.align	2
.LC4:
	.ascii	"Failed to set RTC to %s: %m\000"
	.align	2
.LC5:
	.ascii	"Failed to tell kernel about timezone, ignoring: %m\000"
	.align	2
.LC6:
	.ascii	"Failed to get hardware clock, ignoring: %m\000"
	.align	2
.LC7:
	.ascii	"Failed to update system clock, ignoring: %m\000"
	.align	2
.LC8:
	.ascii	"Failed to sync time to hardware clock, ignoring: %m"
	.ascii	"\000"
	.align	2
.LC9:
	.ascii	"RTC configured to %s time.\000"
	.align	2
.LC10:
	.ascii	"LocalRTC\000"
	.align	2
.LC11:
	.ascii	"org.freedesktop.timedate1\000"
	.align	2
.LC12:
	.ascii	"/org/freedesktop/timedate1\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	method_set_local_rtc, %function
method_set_local_rtc:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r1
	mov	r5, r0
	ldr	r3, .L35
	sub	sp, sp, #44
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	assert
	mov	r0, r4
	bl	assert
	add	r3, sp, #24
	str	r3, [sp]
	mov	r0, r5
	ldr	r1, .L35+4
	add	r3, sp, #20
	add	r2, sp, #16
	bl	sd_bus_message_read
	cmp	r0, #0
	blt	.L1
	ldr	r2, [r4]
	ldr	r3, [sp, #16]
	cmp	r2, r3
	beq	.L27
	ldr	r3, .L35+8
	ldr	r2, [sp, #24]
	ldr	r0, [r3]
	ldr	r1, .L35+12
	str	r0, [sp, #4]
	add	r3, r4, #4
	str	r6, [sp, #12]
	ldr	r1, [r1]
	mov	r0, r5
	str	r2, [sp]
	str	r3, [sp, #8]
	ldr	r2, .L35+16
	mov	r3, #0
	bl	bus_verify_polkit_async
	cmp	r0, #0
	blt	.L1
	moveq	r0, #1
	beq	.L1
	ldr	r3, [sp, #16]
	mov	r0, r4
	str	r3, [r4]
	bl	context_write_data_local_rtc
	subs	r7, r0, #0
	blt	.L28
	mov	r0, #0
	bl	clock_set_timezone
	cmp	r0, #0
	blt	.L29
.L7:
	ldr	r7, .L35+20
	add	r1, sp, #28
	ldr	r0, [r7]
	bl	clock_gettime
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert_se
	ldr	r3, [sp, #20]
	add	r6, sp, #32
	cmp	r3, #0
	ldr	r3, [r4]
	beq	.L8
	cmp	r3, #0
	mov	r1, r6
	add	r0, sp, #28
	bne	.L30
	bl	gmtime_r
.L10:
	mov	r0, r6
	bl	clock_get_hwclock
	cmp	r0, #0
	blt	.L31
	ldr	r3, [r4]
	mov	r0, r6
	cmp	r3, #0
	beq	.L13
	bl	mktime
	str	r0, [sp, #28]
.L14:
	ldr	r0, [r7]
	add	r1, sp, #28
	bl	clock_settime
	cmp	r0, #0
	bge	.L15
	ldr	r3, .L35+24
	ldr	r1, .L35+28
	ldr	r0, [r3]
	bl	log_debug_errno
	b	.L15
.L8:
	cmp	r3, #0
	mov	r1, r6
	add	r0, sp, #28
	bne	.L32
	bl	gmtime_r
.L17:
	mov	r0, r6
	bl	clock_set_hwclock
	cmp	r0, #0
	blt	.L33
.L15:
	mov	r6, #0
	ldr	r1, [r4]
	ldr	r2, .L35+32
	ldr	r3, .L35+36
	cmp	r1, r6
	movne	r1, r2
	moveq	r1, r3
	ldr	r0, .L35+40
	bl	log_info
	mov	r0, r5
	bl	sd_bus_message_get_bus
	ldr	r1, .L35+44
	ldr	r3, .L35+48
	ldr	r2, .L35+52
	str	r6, [sp]
	bl	sd_bus_emit_properties_changed
	mov	r1, r6
	mov	r0, r5
	bl	sd_bus_reply_method_return
.L1:
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L34
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L28:
	ldr	r2, [sp, #16]
	ldr	r5, .L35+32
	ldr	r4, .L35+36
	cmp	r2, #0
	movne	r2, r5
	moveq	r2, r4
	ldr	r1, .L35+56
	bl	log_error_errno
	ldr	r3, [sp, #16]
	mov	r1, r7
	cmp	r3, #0
	mov	r0, r6
	movne	r3, r5
	moveq	r3, r4
	ldr	r2, .L35+56
	bl	sd_bus_error_set_errnof
	b	.L1
.L27:
	mov	r0, r5
	mov	r1, #0
	bl	sd_bus_reply_method_return
	b	.L1
.L32:
	bl	localtime_r
	b	.L17
.L30:
	bl	localtime_r
	b	.L10
.L29:
	ldr	r1, .L35+60
	bl	log_debug_errno
	b	.L7
.L13:
	bl	timegm
	str	r0, [sp, #28]
	b	.L14
.L31:
	ldr	r1, .L35+64
	bl	log_debug_errno
	b	.L15
.L33:
	ldr	r1, .L35+68
	bl	log_debug_errno
	b	.L15
.L34:
	bl	__stack_chk_fail
.L36:
	.align	2
.L35:
	.word	.LC13
	.word	.LC2
	.word	UID_INVALID
	.word	CAP_SYS_TIME
	.word	.LC3
	.word	CLOCK_REALTIME
	.word	errno
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC9
	.word	.LC12
	.word	.LC10
	.word	.LC11
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC8
	.size	method_set_local_rtc, .-method_set_local_rtc
	.comm	errno,4,4
	.comm	UID_INVALID,4,4
	.comm	CLOCK_REALTIME,4,4
	.comm	CAP_SYS_TIME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
