	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_hwmon_rx_cb
_xgene_hwmon_rx_cb:                     ## @xgene_hwmon_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_to_xgene_hwmon_dev
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_xgene_hwmon_rx_ready
	testq	%rax, %rax
	js	LBB0_9
## %bb.1:
	cmpq	$0, 40(%rbx)
	je	LBB0_8
## %bb.2:
	movq	(%r14), %rdi
	callq	_MSG_TYPE
	movq	_MSG_TYPE_ERR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_10:
	movq	(%r14), %rax
	movq	%rax, 32(%rbx)
	movq	8(%r14), %rax
	movq	%rax, 24(%rbx)
	movq	16(%r14), %rax
	movq	%rax, 16(%rbx)
	addq	$12, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_complete                       ## TAILCALL
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	(%r14), %rdi
	callq	_MSG_TYPE
	movq	_MSG_TYPE_DBG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	(%r14), %rdi
	callq	_MSG_SUBTYPE
	movq	_DBG_SUBTYPE_SENSOR_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
LBB0_5:
	movq	(%r14), %rdi
	callq	_MSG_TYPE
	movq	_MSG_TYPE_PWRMGMT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	movq	(%r14), %rdi
	callq	_MSG_SUBTYPE
	movq	_PWRMGMT_SUBTYPE_TPC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	(%r14), %rdi
	callq	_TPC_CMD
	movq	_TPC_ALARM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
LBB0_8:
	leaq	8(%rbx), %rdi
	movq	%rbx, %rcx
	addq	$4, %rcx
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_kfifo_in_spinlocked
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_schedule_work                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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
	.no_dead_strip	_xgene_hwmon_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_rx_cb
_xgene_hwmon_rx_cb:                     ; @xgene_hwmon_rx_cb
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_to_xgene_hwmon_dev
	mov	x19, x0
	mov	x1, x20
	bl	_xgene_hwmon_rx_ready
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_10
; %bb.2:
	ldr	x0, [x20]
	bl	_MSG_TYPE
Lloh0:
	adrp	x8, _MSG_TYPE_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_TYPE_ERR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
LBB0_3:
	ldr	x8, [x20]
	str	x8, [x19, #32]
	ldr	x8, [x20, #8]
	str	x8, [x19, #24]
	ldr	x8, [x20, #16]
	str	x8, [x19, #16]
	add	x0, x19, #12
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_complete
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x0, [x20]
	bl	_MSG_TYPE
Lloh3:
	adrp	x8, _MSG_TYPE_DBG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_TYPE_DBG@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
	ldr	x0, [x20]
	bl	_MSG_SUBTYPE
Lloh6:
	adrp	x8, _DBG_SUBTYPE_SENSOR_READ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DBG_SUBTYPE_SENSOR_READ@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
LBB0_7:
	ldr	x0, [x20]
	bl	_MSG_TYPE
Lloh9:
	adrp	x8, _MSG_TYPE_PWRMGMT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_TYPE_PWRMGMT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.8:
	ldr	x0, [x20]
	bl	_MSG_SUBTYPE
Lloh12:
	adrp	x8, _PWRMGMT_SUBTYPE_TPC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PWRMGMT_SUBTYPE_TPC@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:
	ldr	x0, [x20]
	bl	_TPC_CMD
Lloh15:
	adrp	x8, _TPC_ALARM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TPC_ALARM@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
LBB0_10:
	add	x0, x19, #8
	add	x3, x19, #4
	mov	x1, x20
	mov	w2, #4
	bl	_kfifo_in_spinlocked
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_schedule_work
	.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
	.cfi_endproc
                                        ; -- End function
	.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
	.no_dead_strip	_xgene_hwmon_rx_cb
.subsections_via_symbols
