	.file	"extr_rtc-pcf8523.c_pcf8523_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pcf8523_read, @function
pcf8523_read:
.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, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 112
	.cfi_def_cfa_offset 144
	mov	DWORD PTR 12[rsp], esi
	lea	r12, 32[rsp]
	lea	rdx, 12[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 4[rdi]
	mov	rdi, r12
	mov	QWORD PTR 40[rsp], rdx
	mov	DWORD PTR 28[rsp], 0
	mov	DWORD PTR 56[rsp], eax
	mov	DWORD PTR 88[rsp], eax
	mov	rax, QWORD PTR I2C_M_RD[rip]
	mov	QWORD PTR 48[rsp], 0
	mov	QWORD PTR 80[rsp], rax
	lea	rax, 28[rsp]
	mov	DWORD PTR 32[rsp], 4
	mov	DWORD PTR 64[rsp], 4
	mov	QWORD PTR 72[rsp], rax
	call	ARRAY_SIZE@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsi, r12
	mov	edx, eax
	call	i2c_transfer@PLT
	test	eax, eax
	js	.L1
	mov	eax, DWORD PTR 28[rsp]
	mov	DWORD PTR 0[rbp], eax
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 104[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L6
	add	rsp, 112
	.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
.L6:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pcf8523_read, .-pcf8523_read
	.comm	I2C_M_RD,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_rtc-pcf8523.c_pcf8523_read.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcf8523_read, %function
pcf8523_read:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #4
	push	{r4, r5, r6, lr}
	mov	r5, #0
	ldr	lr, .L7
	sub	sp, sp, #48
	mov	r4, r2
	ldr	r2, .L7+4
	ldr	ip, [r0, #4]
	ldr	lr, [lr]
	str	r1, [sp, #4]
	ldr	r2, [r2]
	str	r2, [sp, #44]
	mov	r2,#0
	ldr	r6, [r0]
	add	r2, sp, r3
	str	r3, [sp, #12]
	str	r3, [sp, #28]
	add	r0, sp, #12
	add	r3, sp, #8
	str	r3, [sp, #32]
	str	ip, [sp, #24]
	str	ip, [sp, #40]
	str	lr, [sp, #36]
	str	r2, [sp, #16]
	str	r5, [sp, #8]
	str	r5, [sp, #20]
	bl	ARRAY_SIZE
	add	r1, sp, #12
	mov	r2, r0
	mov	r0, r6
	bl	i2c_transfer
	cmp	r0, #0
	ldrge	r3, [sp, #8]
	movge	r0, r5
	strge	r3, [r4]
	ldr	r3, .L7+4
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L6
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, pc}
.L6:
	bl	__stack_chk_fail
.L8:
	.align	2
.L7:
	.word	I2C_M_RD
	.word	.LC0
	.size	pcf8523_read, .-pcf8523_read
	.comm	I2C_M_RD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
