	.file	"extr_ds2760_battery.c_ds2760_battery_write_status.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ds2760_battery_write_status, @function
ds2760_battery_write_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rdx, QWORD PTR [rdi]
	mov	rax, QWORD PTR DS2760_STATUS_REG[rip]
	mov	BYTE PTR 12[rsp], sil
	cmp	BYTE PTR [rdx+rax], sil
	je	.L1
	mov	rbx, rdi
	mov	edx, DWORD PTR DS2760_STATUS_WRITE_REG[rip]
	mov	edi, DWORD PTR 8[rdi]
	lea	rsi, 12[rsp]
	mov	ecx, 1
	call	w1_ds2760_write@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR DS2760_EEPROM_BLOCK1[rip]
	call	w1_ds2760_store_eeprom@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR DS2760_EEPROM_BLOCK1[rip]
	call	w1_ds2760_recall_eeprom@PLT
.L1:
	add	rsp, 16
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ds2760_battery_write_status, .-ds2760_battery_write_status
	.comm	DS2760_STATUS_WRITE_REG,4,4
	.comm	DS2760_STATUS_REG,8,8
	.comm	DS2760_EEPROM_BLOCK1,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_ds2760_battery.c_ds2760_battery_write_status.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ds2760_battery_write_status, %function
ds2760_battery_write_status:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L5
	ldr	r2, [r0]
	ldr	r3, [r3]
	sub	sp, sp, #12
	strb	r1, [sp, #7]
	ldrb	r2, [r2, r3]	@ zero_extendqisi2
	and	r3, r1, #255
	cmp	r2, r3
	beq	.L1
	mov	r4, r0
	ldr	r3, .L5+4
	ldr	r5, .L5+8
	ldr	r2, [r3]
	add	r1, sp, #7
	mov	r3, #1
	ldr	r0, [r0, #4]
	bl	w1_ds2760_write
	ldr	r1, [r5]
	ldr	r0, [r4, #4]
	bl	w1_ds2760_store_eeprom
	ldr	r1, [r5]
	ldr	r0, [r4, #4]
	bl	w1_ds2760_recall_eeprom
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L6:
	.align	2
.L5:
	.word	DS2760_STATUS_REG
	.word	DS2760_STATUS_WRITE_REG
	.word	DS2760_EEPROM_BLOCK1
	.size	ds2760_battery_write_status, .-ds2760_battery_write_status
	.comm	DS2760_STATUS_WRITE_REG,4,4
	.comm	DS2760_STATUS_REG,4,4
	.comm	DS2760_EEPROM_BLOCK1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
