	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_hwmon_reg_map_rd
_xgene_hwmon_reg_map_rd:                ## @xgene_hwmon_reg_map_rd
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_SENSOR_RD_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	%esi, %edi
	callq	_SENSOR_RD_EN_ADDR
	movl	%eax, -32(%rbp)
	movl	$0, -28(%rbp)
	movq	_acpi_disabled@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_xgene_hwmon_rd
	testl	%eax, %eax
	jns	LBB0_4
	jmp	LBB0_7
LBB0_2:
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_xgene_hwmon_pcc_rd
	testl	%eax, %eax
	js	LBB0_7
LBB0_4:
	movl	-32(%rbp), %ecx
	movq	_SENSOR_INVALID_DATA@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_6
## %bb.5:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_6:
	movl	%ecx, (%r14)
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SENSOR_RD_MSG,4,2              ## @SENSOR_RD_MSG
	.comm	_acpi_disabled,8,3              ## @acpi_disabled
	.comm	_SENSOR_INVALID_DATA,4,2        ## @SENSOR_INVALID_DATA
	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_xgene_hwmon_reg_map_rd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_hwmon_reg_map_rd
_xgene_hwmon_reg_map_rd:                ; @xgene_hwmon_reg_map_rd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _SENSOR_RD_MSG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SENSOR_RD_MSG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	mov	x0, x1
	bl	_SENSOR_RD_EN_ADDR
	stp	w0, wzr, [sp, #16]
Lloh6:
	adrp	x8, _acpi_disabled@GOTPAGE
Lloh7:
	ldr	x8, [x8, _acpi_disabled@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	add	x1, sp, #12
	mov	x0, x20
	bl	_xgene_hwmon_rd
	tbz	w0, #31, LBB0_3
	b	LBB0_6
LBB0_2:
	add	x1, sp, #12
	mov	x0, x20
	bl	_xgene_hwmon_pcc_rd
	tbnz	w0, #31, LBB0_6
LBB0_3:
	ldr	w8, [sp, #16]
Lloh9:
	adrp	x9, _SENSOR_INVALID_DATA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SENSOR_INVALID_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _ENODATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	str	w8, [x19]
LBB0_6:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SENSOR_RD_MSG,4,2              ; @SENSOR_RD_MSG
	.comm	_acpi_disabled,8,3              ; @acpi_disabled
	.comm	_SENSOR_INVALID_DATA,4,2        ; @SENSOR_INVALID_DATA
	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_xgene_hwmon_reg_map_rd
.subsections_via_symbols
