	.file	"extr_rtc-pcap.c_pcap_rtc_read_time.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pcap_rtc_read_time, @function
pcap_rtc_read_time:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	to_platform_device@PLT
	mov	rdi, rax
	call	platform_get_drvdata@PLT
	mov	esi, DWORD PTR PCAP_REG_RTC_TOD[rip]
	lea	rdx, 8[rsp]
	mov	edi, DWORD PTR [rax]
	mov	rbx, rax
	call	ezx_pcap_read@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR PCAP_REG_RTC_DAY[rip]
	lea	rdx, 16[rsp]
	and	rdi, QWORD PTR PCAP_RTC_TOD_MASK[rip]
	mov	r12, rdi
	mov	edi, DWORD PTR [rbx]
	call	ezx_pcap_read@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	rsi, rbp
	and	rdi, QWORD PTR PCAP_RTC_DAY_MASK[rip]
	imul	rdi, QWORD PTR SEC_PER_DAY[rip]
	add	rdi, r12
	call	rtc_time_to_tm@PLT
	mov	rdi, rbp
	call	rtc_valid_tm@PLT
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L5
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pcap_rtc_read_time, .-pcap_rtc_read_time
	.comm	SEC_PER_DAY,8,8
	.comm	PCAP_RTC_TOD_MASK,8,8
	.comm	PCAP_RTC_DAY_MASK,8,8
	.comm	PCAP_REG_RTC_TOD,4,4
	.comm	PCAP_REG_RTC_DAY,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_rtc-pcap.c_pcap_rtc_read_time.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcap_rtc_read_time, %function
pcap_rtc_read_time:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L6
	sub	sp, sp, #20
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	to_platform_device
	bl	platform_get_drvdata
	mov	r5, r0
	ldr	r3, .L6+4
	add	r2, sp, #4
	ldr	r1, [r3]
	ldr	r0, [r0]
	bl	ezx_pcap_read
	ldr	r3, .L6+8
	ldr	r2, .L6+12
	ldr	ip, [r3]
	ldr	r3, [sp, #4]
	ldr	r1, [r2]
	ldr	r0, [r5]
	add	r2, sp, #8
	and	r5, r3, ip
	bl	ezx_pcap_read
	ldr	r3, .L6+16
	ldr	r1, .L6+20
	ldr	r2, [r3]
	ldr	r3, [sp, #8]
	ldr	r0, [r1]
	and	r3, r3, r2
	mla	r0, r3, r0, r5
	mov	r1, r4
	bl	rtc_time_to_tm
	mov	r0, r4
	bl	rtc_valid_tm
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	PCAP_REG_RTC_TOD
	.word	PCAP_RTC_TOD_MASK
	.word	PCAP_REG_RTC_DAY
	.word	PCAP_RTC_DAY_MASK
	.word	SEC_PER_DAY
	.size	pcap_rtc_read_time, .-pcap_rtc_read_time
	.comm	SEC_PER_DAY,4,4
	.comm	PCAP_RTC_TOD_MASK,4,4
	.comm	PCAP_RTC_DAY_MASK,4,4
	.comm	PCAP_REG_RTC_TOD,4,4
	.comm	PCAP_REG_RTC_DAY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
