	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_hwmon_pcc_rx_cb
_xgene_hwmon_pcc_rx_cb:                 ## @xgene_hwmon_pcc_rx_cb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_to_xgene_hwmon_dev
	movq	%rax, %rbx
	movq	48(%rax), %r14
	leaq	-24(%rbp), %rsi
	movq	%rax, %rdi
	callq	_xgene_hwmon_rx_ready
	testq	%rax, %rax
	js	LBB0_12
## %bb.1:
	movq	_PCCS_SCI_DOORBEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_xgene_word_tst_and_clr
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	cmpq	$0, 40(%rbx)
	je	LBB0_11
## %bb.3:
	movq	4(%r14), %rdi
	callq	_MSG_TYPE
	movq	_MSG_TYPE_ERR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_9:
	movq	_PCCS_CMD_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_xgene_word_tst_and_clr
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	4(%r14), %rax
	movq	%rax, 32(%rbx)
	movq	12(%r14), %rax
	movq	%rax, 24(%rbx)
	movq	20(%r14), %rax
	movq	%rax, 16(%rbx)
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_complete
	jmp	LBB0_12
LBB0_4:
	movq	4(%r14), %rdi
	callq	_MSG_TYPE
	movq	_MSG_TYPE_DBG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	4(%r14), %rdi
	callq	_MSG_SUBTYPE
	movq	_DBG_SUBTYPE_SENSOR_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
LBB0_6:
	movq	4(%r14), %rdi
	callq	_MSG_TYPE
	movq	_MSG_TYPE_PWRMGMT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.7:
	movq	4(%r14), %rdi
	callq	_MSG_SUBTYPE
	movq	_PWRMGMT_SUBTYPE_TPC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.8:
	movq	4(%r14), %rdi
	callq	_TPC_CMD
	movq	_TPC_ALARM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
LBB0_11:
	leaq	8(%rbx), %rdi
	movq	%rbx, %rcx
	addq	$4, %rcx
	leaq	-24(%rbp), %rsi
	movl	$4, %edx
	callq	_kfifo_in_spinlocked
	movq	%rbx, %rdi
	callq	_schedule_work
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCCS_SCI_DOORBEL,4,2           ## @PCCS_SCI_DOORBEL
	.comm	_MSG_TYPE_ERR,8,3               ## @MSG_TYPE_ERR
	.comm	_MSG_TYPE_DBG,8,3               ## @MSG_TYPE_DBG
	.comm	_DBG_SUBTYPE_SENSOR_READ,8,3    ## @DBG_SUBTYPE_SENSOR_READ
	.comm	_MSG_TYPE_PWRMGMT,8,3           ## @MSG_TYPE_PWRMGMT
	.comm	_PWRMGMT_SUBTYPE_TPC,8,3        ## @PWRMGMT_SUBTYPE_TPC
	.comm	_TPC_ALARM,8,3                  ## @TPC_ALARM
	.comm	_PCCS_CMD_COMPLETE,4,2          ## @PCCS_CMD_COMPLETE
	.no_dead_strip	_xgene_hwmon_pcc_rx_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_hwmon_pcc_rx_cb
_xgene_hwmon_pcc_rx_cb:                 ; @xgene_hwmon_pcc_rx_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_to_xgene_hwmon_dev
	mov	x19, x0
	ldr	x20, [x0, #48]
	add	x1, sp, #8
	bl	_xgene_hwmon_rx_ready
	tbnz	x0, #63, LBB0_12
; %bb.1:
Lloh0:
	adrp	x8, _PCCS_SCI_DOORBEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCCS_SCI_DOORBEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_xgene_word_tst_and_clr
	cbz	x0, LBB0_12
; %bb.2:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_11
; %bb.3:
	ldur	x0, [x20, #4]
	bl	_MSG_TYPE
Lloh3:
	adrp	x8, _MSG_TYPE_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_TYPE_ERR@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _PCCS_CMD_COMPLETE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCCS_CMD_COMPLETE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_xgene_word_tst_and_clr
	cbz	x0, LBB0_11
; %bb.5:
	ldur	x8, [x20, #4]
	str	x8, [x19, #32]
	ldur	x8, [x20, #12]
	str	x8, [x19, #24]
	ldur	x8, [x20, #20]
	str	x8, [x19, #16]
	add	x0, x19, #12
	bl	_complete
	b	LBB0_12
LBB0_6:
	ldur	x0, [x20, #4]
	bl	_MSG_TYPE
Lloh9:
	adrp	x8, _MSG_TYPE_DBG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_TYPE_DBG@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
	ldur	x0, [x20, #4]
	bl	_MSG_SUBTYPE
Lloh12:
	adrp	x8, _DBG_SUBTYPE_SENSOR_READ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DBG_SUBTYPE_SENSOR_READ@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
LBB0_8:
	ldur	x0, [x20, #4]
	bl	_MSG_TYPE
Lloh15:
	adrp	x8, _MSG_TYPE_PWRMGMT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_TYPE_PWRMGMT@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.9:
	ldur	x0, [x20, #4]
	bl	_MSG_SUBTYPE
Lloh18:
	adrp	x8, _PWRMGMT_SUBTYPE_TPC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PWRMGMT_SUBTYPE_TPC@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
	ldur	x0, [x20, #4]
	bl	_TPC_CMD
Lloh21:
	adrp	x8, _TPC_ALARM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TPC_ALARM@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
LBB0_11:
	add	x0, x19, #8
	add	x3, x19, #4
	add	x1, sp, #8
	mov	w2, #4
	bl	_kfifo_in_spinlocked
	mov	x0, x19
	bl	_schedule_work
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PCCS_SCI_DOORBEL,4,2           ; @PCCS_SCI_DOORBEL
	.comm	_MSG_TYPE_ERR,8,3               ; @MSG_TYPE_ERR
	.comm	_MSG_TYPE_DBG,8,3               ; @MSG_TYPE_DBG
	.comm	_DBG_SUBTYPE_SENSOR_READ,8,3    ; @DBG_SUBTYPE_SENSOR_READ
	.comm	_MSG_TYPE_PWRMGMT,8,3           ; @MSG_TYPE_PWRMGMT
	.comm	_PWRMGMT_SUBTYPE_TPC,8,3        ; @PWRMGMT_SUBTYPE_TPC
	.comm	_TPC_ALARM,8,3                  ; @TPC_ALARM
	.comm	_PCCS_CMD_COMPLETE,4,2          ; @PCCS_CMD_COMPLETE
	.no_dead_strip	_xgene_hwmon_pcc_rx_cb
.subsections_via_symbols
