	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_v11_0_check_fw_version
_smu_v11_0_check_fw_version:            ## @smu_v11_0_check_fw_version
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$255, -32(%rbp)
	movl	$255, -28(%rbp)
	leaq	-32(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	callq	_smu_get_smc_version
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movl	-28(%rbp), %r15d
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	leal	-128(%rsi), %eax
	cmpl	$4, %eax
	jae	LBB0_2
## %bb.3:
	cltq
	leaq	l_switch.table.smu_v11_0_check_fw_version(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_pr_err
	movq	_SMU11_DRIVER_IF_VERSION_INV@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movl	%esi, (%rbx)
	movl	-32(%rbp), %edx
	cmpl	%esi, %edx
	je	LBB0_6
## %bb.5:
	movl	%r15d, %ecx
	movzbl	%ch, %eax
	movl	%r15d, %ebx
	shrl	$16, %ebx
	movzbl	%cl, %edi
	movl	-28(%rbp), %ecx
	movl	%edi, (%rsp)
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %r8d
	movl	%eax, %r9d
	callq	_pr_info
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_warn
LBB0_6:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU11_DRIVER_IF_VERSION_VG20,4,2 ## @SMU11_DRIVER_IF_VERSION_VG20
	.comm	_SMU11_DRIVER_IF_VERSION_ARCT,4,2 ## @SMU11_DRIVER_IF_VERSION_ARCT
	.comm	_SMU11_DRIVER_IF_VERSION_NV10,4,2 ## @SMU11_DRIVER_IF_VERSION_NV10
	.comm	_SMU11_DRIVER_IF_VERSION_NV14,4,2 ## @SMU11_DRIVER_IF_VERSION_NV14
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"smu unsupported asic type:%d.\n"

	.comm	_SMU11_DRIVER_IF_VERSION_INV,4,2 ## @SMU11_DRIVER_IF_VERSION_INV
L_.str.1:                               ## @.str.1
	.asciz	"smu driver if version = 0x%08x, smu fw if version = 0x%08x, smu fw version = 0x%08x (%d.%d.%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"SMU driver if version not matched\n"

	.no_dead_strip	_smu_v11_0_check_fw_version
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.smu_v11_0_check_fw_version
l_switch.table.smu_v11_0_check_fw_version:
	.quad	_SMU11_DRIVER_IF_VERSION_VG20
	.quad	_SMU11_DRIVER_IF_VERSION_NV14
	.quad	_SMU11_DRIVER_IF_VERSION_NV10
	.quad	_SMU11_DRIVER_IF_VERSION_ARCT

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_v11_0_check_fw_version
_smu_v11_0_check_fw_version:            ; @smu_v11_0_check_fw_version
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	mov	w8, #255
	stp	w8, w8, [sp, #8]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_smu_get_smc_version
	mov	x19, x0
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w21, [sp, #8]
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	sub	w8, w1, #128
	cmp	w8, #4
	b.hs	LBB0_3
; %bb.2:
Lloh0:
	adrp	x9, l_switch.table.smu_v11_0_check_fw_version@PAGE
Lloh1:
	add	x9, x9, l_switch.table.smu_v11_0_check_fw_version@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh4:
	adrp	x8, _SMU11_DRIVER_IF_VERSION_INV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SMU11_DRIVER_IF_VERSION_INV@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	str	w1, [x20]
	ldr	w2, [sp, #12]
	cmp	w2, w1
	b.eq	LBB0_6
; %bb.5:
	lsr	w4, w21, #16
	ubfx	w5, w21, #8, #8
	and	w6, w21, #0xff
	ldr	w3, [sp, #8]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_warn
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU11_DRIVER_IF_VERSION_VG20,4,2 ; @SMU11_DRIVER_IF_VERSION_VG20
	.comm	_SMU11_DRIVER_IF_VERSION_ARCT,4,2 ; @SMU11_DRIVER_IF_VERSION_ARCT
	.comm	_SMU11_DRIVER_IF_VERSION_NV10,4,2 ; @SMU11_DRIVER_IF_VERSION_NV10
	.comm	_SMU11_DRIVER_IF_VERSION_NV14,4,2 ; @SMU11_DRIVER_IF_VERSION_NV14
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"smu unsupported asic type:%d.\n"

	.comm	_SMU11_DRIVER_IF_VERSION_INV,4,2 ; @SMU11_DRIVER_IF_VERSION_INV
l_.str.1:                               ; @.str.1
	.asciz	"smu driver if version = 0x%08x, smu fw if version = 0x%08x, smu fw version = 0x%08x (%d.%d.%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"SMU driver if version not matched\n"

	.no_dead_strip	_smu_v11_0_check_fw_version
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.smu_v11_0_check_fw_version
l_switch.table.smu_v11_0_check_fw_version:
	.quad	_SMU11_DRIVER_IF_VERSION_VG20
	.quad	_SMU11_DRIVER_IF_VERSION_NV14
	.quad	_SMU11_DRIVER_IF_VERSION_NV10
	.quad	_SMU11_DRIVER_IF_VERSION_ARCT

.subsections_via_symbols
