	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hl_get_fan_speed               ## -- Begin function hl_get_fan_speed
	.p2align	4, 0x90
_hl_get_fan_speed:                      ## @hl_get_fan_speed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_ARMCP_PACKET_FAN_SPEED_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ARMCP_PKT_CTL_OPCODE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	callq	_cpu_to_le32
	movl	%eax, -48(%rbp)
	movl	%r14d, %edi
	callq	___cpu_to_le16
	movq	%rax, -56(%rbp)
	movl	%r12d, %edi
	callq	___cpu_to_le16
	movq	%rax, -64(%rbp)
	movq	8(%rbx), %rax
	movq	_SENSORS_PKT_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-40(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$24, %edx
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_dev_err
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	-40(%rbp), %rax
LBB0_3:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARMCP_PACKET_FAN_SPEED_GET,4,2 ## @ARMCP_PACKET_FAN_SPEED_GET
	.comm	_ARMCP_PKT_CTL_OPCODE_SHIFT,4,2 ## @ARMCP_PKT_CTL_OPCODE_SHIFT
	.comm	_SENSORS_PKT_TIMEOUT,4,2        ## @SENSORS_PKT_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get fan speed from sensor %d, error %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hl_get_fan_speed               ; -- Begin function hl_get_fan_speed
	.p2align	2
_hl_get_fan_speed:                      ; @hl_get_fan_speed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _ARMCP_PACKET_FAN_SPEED_GET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARMCP_PACKET_FAN_SPEED_GET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ARMCP_PKT_CTL_OPCODE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARMCP_PKT_CTL_OPCODE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w0, w8, w9
	bl	_cpu_to_le32
	str	w0, [sp, #24]
	mov	x0, x19
	bl	___cpu_to_le16
	str	x0, [sp, #16]
	mov	x0, x21
	bl	___cpu_to_le16
	str	x0, [sp, #8]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _SENSORS_PKT_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SENSORS_PKT_TIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x9]
	add	x1, sp, #8
	mov	x4, sp
	mov	x0, x20
	mov	w2, #24
	blr	x8
	cbz	w0, LBB0_2
; %bb.1:
	mov	x3, x0
	ldr	w0, [x20]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
	mov	x0, #0
	b	LBB0_3
LBB0_2:
	ldr	x0, [sp]
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ARMCP_PACKET_FAN_SPEED_GET,4,2 ; @ARMCP_PACKET_FAN_SPEED_GET
	.comm	_ARMCP_PKT_CTL_OPCODE_SHIFT,4,2 ; @ARMCP_PKT_CTL_OPCODE_SHIFT
	.comm	_SENSORS_PKT_TIMEOUT,4,2        ; @SENSORS_PKT_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get fan speed from sensor %d, error %d\n"

.subsections_via_symbols
