	.file	"extr_xgene-hwmon.c_xgene_hwmon_pcc_rx_cb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xgene_hwmon_pcc_rx_cb, @function
xgene_hwmon_pcc_rx_cb:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r12, 4[rsp]
	call	to_xgene_hwmon_dev@PLT
	mov	rsi, r12
	mov	rdi, rax
	mov	rbx, QWORD PTR 48[rax]
	mov	rbp, rax
	call	xgene_hwmon_rx_ready@PLT
	test	rax, rax
	js	.L1
	mov	esi, DWORD PTR PCCS_SCI_DOORBEL[rip]
	mov	rdi, rbx
	call	xgene_word_tst_and_clr@PLT
	test	rax, rax
	je	.L1
	cmp	QWORD PTR 40[rbp], 0
	je	.L3
	mov	rdi, QWORD PTR 4[rbx]
	call	MSG_TYPE@PLT
	cmp	rax, QWORD PTR MSG_TYPE_ERR[rip]
	je	.L8
	mov	rdi, QWORD PTR 4[rbx]
	call	MSG_TYPE@PLT
	cmp	rax, QWORD PTR MSG_TYPE_DBG[rip]
	je	.L6
.L9:
	mov	rdi, QWORD PTR 4[rbx]
	call	MSG_TYPE@PLT
	cmp	rax, QWORD PTR MSG_TYPE_PWRMGMT[rip]
	je	.L18
.L3:
	lea	rdi, 8[rbp]
	lea	rcx, 4[rbp]
	mov	edx, 4
	mov	rsi, r12
	call	kfifo_in_spinlocked@PLT
	mov	rdi, rbp
	call	schedule_work@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 16
	.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
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rdi, QWORD PTR 4[rbx]
	call	MSG_SUBTYPE@PLT
	cmp	rax, QWORD PTR PWRMGMT_SUBTYPE_TPC[rip]
	jne	.L3
	mov	rdi, QWORD PTR 4[rbx]
	call	TPC_CMD@PLT
	cmp	rax, QWORD PTR TPC_ALARM[rip]
	jne	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR PCCS_CMD_COMPLETE[rip]
	mov	rdi, rbx
	call	xgene_word_tst_and_clr@PLT
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR 4[rbx]
	lea	rdi, 12[rbp]
	mov	QWORD PTR 32[rbp], rax
	mov	rax, QWORD PTR 12[rbx]
	mov	QWORD PTR 24[rbp], rax
	mov	rax, QWORD PTR 20[rbx]
	mov	QWORD PTR 16[rbp], rax
	call	complete@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, QWORD PTR 4[rbx]
	call	MSG_SUBTYPE@PLT
	cmp	rax, QWORD PTR DBG_SUBTYPE_SENSOR_READ[rip]
	jne	.L9
	jmp	.L8
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	xgene_hwmon_pcc_rx_cb, .-xgene_hwmon_pcc_rx_cb
	.comm	TPC_ALARM,8,8
	.comm	PWRMGMT_SUBTYPE_TPC,8,8
	.comm	PCCS_SCI_DOORBEL,4,4
	.comm	PCCS_CMD_COMPLETE,4,4
	.comm	MSG_TYPE_PWRMGMT,8,8
	.comm	MSG_TYPE_ERR,8,8
	.comm	MSG_TYPE_DBG,8,8
	.comm	DBG_SUBTYPE_SENSOR_READ,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_xgene-hwmon.c_xgene_hwmon_pcc_rx_cb.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xgene_hwmon_pcc_rx_cb, %function
xgene_hwmon_pcc_rx_cb:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L23
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	to_xgene_hwmon_dev
	mov	r1, sp
	mov	r4, r0
	ldr	r5, [r0, #32]
	bl	xgene_hwmon_rx_ready
	cmp	r0, #0
	blt	.L1
	ldr	r3, .L23+4
	mov	r0, r5
	ldr	r1, [r3]
	bl	xgene_word_tst_and_clr
	cmp	r0, #0
	beq	.L1
	ldr	r3, [r4, #28]
	cmp	r3, #0
	beq	.L3
	ldr	r0, [r5, #4]
	bl	MSG_TYPE
	ldr	r3, .L23+8
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L8
	ldr	r0, [r5, #4]
	bl	MSG_TYPE
	ldr	r3, .L23+12
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L6
.L9:
	ldr	r0, [r5, #4]
	bl	MSG_TYPE
	ldr	r3, .L23+16
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L21
.L3:
	mov	r1, sp
	mov	r2, #4
	add	r3, r4, #4
	add	r0, r4, #8
	bl	kfifo_in_spinlocked
	mov	r0, r4
	bl	schedule_work
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L21:
	ldr	r0, [r5, #4]
	bl	MSG_SUBTYPE
	ldr	r3, .L23+20
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L3
	ldr	r0, [r5, #4]
	bl	TPC_CMD
	ldr	r3, .L23+24
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L3
.L8:
	ldr	r3, .L23+28
	mov	r0, r5
	ldr	r1, [r3]
	bl	xgene_word_tst_and_clr
	cmp	r0, #0
	beq	.L3
	ldr	r3, [r5, #4]
	add	r0, r4, #12
	str	r3, [r4, #24]
	ldr	r3, [r5, #8]
	str	r3, [r4, #20]
	ldr	r3, [r5, #12]
	str	r3, [r4, #16]
	bl	complete
	b	.L1
.L6:
	ldr	r0, [r5, #4]
	bl	MSG_SUBTYPE
	ldr	r3, .L23+32
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L9
	b	.L8
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	PCCS_SCI_DOORBEL
	.word	MSG_TYPE_ERR
	.word	MSG_TYPE_DBG
	.word	MSG_TYPE_PWRMGMT
	.word	PWRMGMT_SUBTYPE_TPC
	.word	TPC_ALARM
	.word	PCCS_CMD_COMPLETE
	.word	DBG_SUBTYPE_SENSOR_READ
	.size	xgene_hwmon_pcc_rx_cb, .-xgene_hwmon_pcc_rx_cb
	.comm	TPC_ALARM,4,4
	.comm	PWRMGMT_SUBTYPE_TPC,4,4
	.comm	PCCS_SCI_DOORBEL,4,4
	.comm	PCCS_CMD_COMPLETE,4,4
	.comm	MSG_TYPE_PWRMGMT,4,4
	.comm	MSG_TYPE_ERR,4,4
	.comm	MSG_TYPE_DBG,4,4
	.comm	DBG_SUBTYPE_SENSOR_READ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
