	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function malidp500_query_hw
_malidp500_query_hw:                    ## @malidp500_query_hw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_MALIDP500_CONFIG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_malidp_hw_read
	andl	$16, %eax
	cmpl	$1, %eax
	movl	$2, %eax
	sbbl	$0, %eax
	movl	$2, (%rbx)
	movq	_SZ_2K@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	%eax, %ecx
	movl	%ecx, 4(%rbx)
	movq	_SZ_1K@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	shll	$6, %eax
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	$0, 4(%rcx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MALIDP500_CONFIG_ID,4,2        ## @MALIDP500_CONFIG_ID
	.comm	_SZ_2K,4,2                      ## @SZ_2K
	.comm	_SZ_1K,4,2                      ## @SZ_1K
	.no_dead_strip	_malidp500_query_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function malidp500_query_hw
_malidp500_query_hw:                    ; @malidp500_query_hw
	.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	x19, x0
Lloh0:
	adrp	x8, _MALIDP500_CONFIG_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MALIDP500_CONFIG_ID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_malidp_hw_read
	tst	w0, #0x10
	mov	w8, #1
	cinc	w8, w8, ne
	mov	w9, #2
	str	w9, [x19]
Lloh3:
	adrp	x9, _SZ_2K@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SZ_2K@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mul	w9, w8, w9
	str	w9, [x19, #4]
Lloh6:
	adrp	x9, _SZ_1K@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SZ_1K@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mul	w8, w8, w9
	lsl	w8, w8, #6
	ldr	x9, [x19, #8]
	stp	w8, wzr, [x9]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MALIDP500_CONFIG_ID,4,2        ; @MALIDP500_CONFIG_ID
	.comm	_SZ_2K,4,2                      ; @SZ_2K
	.comm	_SZ_1K,4,2                      ; @SZ_1K
	.no_dead_strip	_malidp500_query_hw
.subsections_via_symbols
