	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hl_fw_armcp_info_get           ## -- Begin function hl_fw_armcp_info_get
	.p2align	4, 0x90
_hl_fw_armcp_info_get:                  ## @hl_fw_armcp_info_get
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	$0, -56(%rbp)
	movq	(%rdi), %rax
	leaq	-36(%rbp), %rdx
	movl	$4, %esi
	callq	*16(%rax)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	xorl	%r15d, %r15d
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_ARMCP_PACKET_INFO_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
	movq	%rax, -48(%rbp)
	movl	-36(%rbp), %edi
	callq	_cpu_to_le64
	movl	%eax, -56(%rbp)
	movl	$4, %edi
	callq	_cpu_to_le32
	movq	%rax, -64(%rbp)
	movq	(%r12), %rax
	movq	_HL_ARMCP_INFO_TIMEOUT_USEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	-64(%rbp), %rsi
	leaq	-72(%rbp), %r8
	movq	%r12, %rdi
	movl	$24, %edx
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	8(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, %r15d
	jmp	LBB0_6
LBB0_1:
	movl	8(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_7
LBB0_4:
	leaq	12(%r12), %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	12(%r12), %esi
	movq	%r12, %rdi
	callq	_hl_build_hwmon_channel_info
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	8(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EFAULT@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_6:
	movq	(%r12), %rax
	movq	%r12, %rdi
	movl	$4, %esi
	movq	%r14, %rdx
	callq	*8(%rax)
LBB0_7:
	movl	%r15d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate DMA memory for ArmCP info packet\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ARMCP_PACKET_INFO_GET,4,2      ## @ARMCP_PACKET_INFO_GET
	.comm	_ARMCP_PKT_CTL_OPCODE_SHIFT,4,2 ## @ARMCP_PKT_CTL_OPCODE_SHIFT
	.comm	_HL_ARMCP_INFO_TIMEOUT_USEC,4,2 ## @HL_ARMCP_INFO_TIMEOUT_USEC
L_.str.1:                               ## @.str.1
	.asciz	"Failed to send ArmCP info pkt, error %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to build hwmon channel info, error %d\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hl_fw_armcp_info_get           ; -- Begin function hl_fw_armcp_info_get
	.p2align	2
_hl_fw_armcp_info_get:                  ; @hl_fw_armcp_info_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	str	xzr, [sp, #32]
	ldr	x8, [x0]
	ldr	x8, [x8, #16]
	add	x2, sp, #20
	mov	w1, #4
	blr	x8
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _ARMCP_PACKET_INFO_GET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARMCP_PACKET_INFO_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	x0, [sp, #40]
	ldr	w0, [sp, #20]
	bl	_cpu_to_le64
	str	w0, [sp, #32]
	mov	w0, #4
	bl	_cpu_to_le32
	str	x0, [sp, #24]
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _HL_ARMCP_INFO_TIMEOUT_USEC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HL_ARMCP_INFO_TIMEOUT_USEC@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x9]
	add	x1, sp, #24
	add	x4, sp, #8
	mov	x0, x19
	mov	w2, #24
	blr	x8
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
	ldr	w0, [x19, #8]
	str	x21, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_7
LBB0_3:
	ldr	w0, [x19, #8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_4:
	add	x0, x19, #12
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	ldr	w1, [x19, #12]
	mov	x0, x19
	bl	_hl_build_hwmon_channel_info
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w8, [x19, #8]
	str	x0, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x8
	bl	_dev_err
Lloh18:
	adrp	x8, _EFAULT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_6:
	mov	w21, #0
LBB0_7:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	w1, #4
	mov	x2, x20
	blr	x8
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate DMA memory for ArmCP info packet\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ARMCP_PACKET_INFO_GET,4,2      ; @ARMCP_PACKET_INFO_GET
	.comm	_ARMCP_PKT_CTL_OPCODE_SHIFT,4,2 ; @ARMCP_PKT_CTL_OPCODE_SHIFT
	.comm	_HL_ARMCP_INFO_TIMEOUT_USEC,4,2 ; @HL_ARMCP_INFO_TIMEOUT_USEC
l_.str.1:                               ; @.str.1
	.asciz	"Failed to send ArmCP info pkt, error %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to build hwmon channel info, error %d\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
.subsections_via_symbols
