	.file	"extr_sbs.c_acpi_battery_set_alarm.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	acpi_battery_set_alarm, @function
acpi_battery_set_alarm:
.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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR 8[rbp], 0
	mov	edi, DWORD PTR 0[rbp]
	je	.L7
	lea	r13, 4[rsp]
	mov	edx, DWORD PTR ACPI_SBS_MANAGER[rip]
	mov	ecx, 1
	mov	r12d, DWORD PTR [rbx]
	mov	esi, DWORD PTR SMBUS_READ_WORD[rip]
	mov	r8, r13
	call	acpi_smbus_read@PLT
	test	eax, eax
	jne	.L1
	mov	edx, DWORD PTR 4[rsp]
	lea	ecx, 12[r12]
	mov	eax, 1
	mov	edi, DWORD PTR 0[rbp]
	sal	eax, cl
	mov	esi, DWORD PTR SMBUS_WRITE_WORD[rip]
	mov	ecx, edx
	and	ecx, 61440
	cmp	ecx, eax
	je	.L3
	and	edx, 4095
	mov	r9d, 2
	mov	r8, r13
	mov	ecx, 1
	or	eax, edx
	mov	edx, DWORD PTR ACPI_SBS_MANAGER[rip]
	mov	DWORD PTR 4[rsp], eax
	call	acpi_smbus_write@PLT
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR 0[rbp]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR SMBUS_WRITE_WORD[rip]
.L3:
	mov	edx, DWORD PTR ACPI_SBS_BATTERY[rip]
	mov	r9d, 2
	lea	r8, 4[rbx]
	mov	ecx, 1
	call	acpi_smbus_write@PLT
.L4:
	endbr64
.L1:
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.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
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	acpi_battery_set_alarm, .-acpi_battery_set_alarm
	.comm	SMBUS_WRITE_WORD,4,4
	.comm	SMBUS_READ_WORD,4,4
	.comm	ACPI_SBS_MANAGER,4,4
	.comm	ACPI_SBS_BATTERY,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_sbs.c_acpi_battery_set_alarm.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_battery_set_alarm, %function
acpi_battery_set_alarm:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L9
	ldr	r5, [r0, #8]
	sub	sp, sp, #20
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldm	r5, {r0, r3}
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L9+4
	ldr	r1, [r3]
.L3:
	mov	r2, #2
	ldr	r3, .L9+8
	add	r4, r4, #4
	str	r4, [sp]
	str	r2, [sp, #4]
	ldr	r2, [r3]
	mov	r3, #1
	bl	acpi_smbus_write
.L4:
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r3, .L9+12
	ldr	r7, .L9+16
	ldr	r1, [r3]
	add	r3, sp, #8
	str	r3, [sp]
	ldr	r2, [r7]
	mov	r3, #1
	ldr	r6, [r4]
	bl	acpi_smbus_read
	cmp	r0, #0
	bne	.L1
	mov	r3, #1
	ldr	ip, [sp, #8]
	add	r2, r6, #12
	and	r1, ip, #61440
	ldr	r6, .L9+4
	cmp	r1, r3, lsl r2
	ldr	r0, [r5]
	ldr	r1, [r6]
	lsl	r2, r3, r2
	beq	.L3
	mov	lr, #2
	lsl	ip, ip, #20
	lsr	ip, ip, #20
	orr	ip, ip, r2
	add	r2, sp, #8
	str	r2, [sp]
	str	lr, [sp, #4]
	ldr	r2, [r7]
	str	ip, [sp, #8]
	bl	acpi_smbus_write
	cmp	r0, #0
	bne	.L1
	ldr	r0, [r5]
	ldr	r1, [r6]
	b	.L3
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	SMBUS_WRITE_WORD
	.word	ACPI_SBS_BATTERY
	.word	SMBUS_READ_WORD
	.word	ACPI_SBS_MANAGER
	.size	acpi_battery_set_alarm, .-acpi_battery_set_alarm
	.comm	SMBUS_WRITE_WORD,4,4
	.comm	SMBUS_READ_WORD,4,4
	.comm	ACPI_SBS_MANAGER,4,4
	.comm	ACPI_SBS_BATTERY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
