	.file	"extr_sbshc.c_smbus_alarm.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	smbus_alarm, @function
smbus_alarm:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 56
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR ACPI_SMB_STATUS[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rdx, 16[rsp]
	call	smb_hc_read@PLT
	test	rax, rax
	jne	.L3
	cmp	QWORD PTR 32[rsp], 0
	je	.L4
	mov	rax, QWORD PTR SMBUS_OK[rip]
	cmp	QWORD PTR 16[rsp], rax
	je	.L10
.L4:
	cmp	QWORD PTR 24[rsp], 0
	jne	.L11
.L3:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	rbp, 4[r12]
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	esi, DWORD PTR ACPI_SMB_ALARM_ADDRESS[rip]
	lea	rdx, 12[rsp]
	mov	rdi, r12
	call	smb_hc_read@PLT
	mov	edx, DWORD PTR 16[rsp]
	mov	esi, DWORD PTR ACPI_SMB_STATUS[rip]
	mov	rdi, r12
	mov	QWORD PTR 24[rsp], 0
	call	smb_hc_write@PLT
	mov	eax, DWORD PTR 12[rsp]
	sar	eax
	add	eax, -128
	cmp	eax, 2
	jbe	.L13
.L6:
	mov	rdi, rbp
	call	mutex_unlock@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	mov	DWORD PTR [r12], 1
	lea	rdi, 8[r12]
	call	wake_up@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, DWORD PTR acpi_smbus_callback[rip]
	mov	edi, DWORD PTR OSL_NOTIFY_HANDLER[rip]
	mov	rdx, r12
	call	acpi_os_execute@PLT
	jmp	.L6
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	smbus_alarm, .-smbus_alarm
	.comm	acpi_smbus_callback,4,4
	.comm	SMBUS_OK,8,8
	.comm	OSL_NOTIFY_HANDLER,4,4
	.comm	ACPI_SMB_STATUS,4,4
	.comm	ACPI_SMB_ALARM_ADDRESS,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_sbshc.c_smbus_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	smbus_alarm, %function
smbus_alarm:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L20
	sub	sp, sp, #24
	ldr	r3, .L20+4
	ldr	r1, [r5]
	add	r2, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r4, r0
	bl	smb_hc_read
	cmp	r0, #0
	bne	.L3
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L20+8
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L16
.L4:
	ldr	r3, [sp, #12]
	cmp	r3, #0
	bne	.L17
.L3:
	ldr	r3, .L20+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	mov	r0, #0
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L17:
	add	r6, r4, #4
	mov	r0, r6
	bl	mutex_lock
	ldr	r3, .L20+12
	add	r2, sp, #4
	ldr	r1, [r3]
	mov	r0, r4
	bl	smb_hc_read
	mov	r3, #0
	mov	r0, r4
	ldr	r1, [r5]
	ldr	r2, [sp, #8]
	str	r3, [sp, #12]
	bl	smb_hc_write
	ldr	r3, [sp, #4]
	asr	r3, r3, #1
	sub	r3, r3, #128
	cmp	r3, #2
	bls	.L19
.L6:
	mov	r0, r6
	bl	mutex_unlock
	b	.L3
.L16:
	mov	r3, #1
	mov	r0, r4
	str	r3, [r0], #8
	bl	wake_up
	b	.L4
.L19:
	ldr	r3, .L20+16
	ldr	r1, .L20+20
	mov	r2, r4
	ldr	r1, [r1]
	ldr	r0, [r3]
	bl	acpi_os_execute
	b	.L6
.L18:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	ACPI_SMB_STATUS
	.word	.LC0
	.word	SMBUS_OK
	.word	ACPI_SMB_ALARM_ADDRESS
	.word	OSL_NOTIFY_HANDLER
	.word	acpi_smbus_callback
	.size	smbus_alarm, .-smbus_alarm
	.comm	acpi_smbus_callback,4,4
	.comm	SMBUS_OK,4,4
	.comm	OSL_NOTIFY_HANDLER,4,4
	.comm	ACPI_SMB_STATUS,4,4
	.comm	ACPI_SMB_ALARM_ADDRESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
