	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bw_calcs_version_from_asic_id
_bw_calcs_version_from_asic_id:         ## @bw_calcs_version_from_asic_id
	.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
	shrq	$32, %rbx
	cmpl	$128, %edi
	je	LBB0_7
## %bb.1:
	cmpl	$130, %edi
	je	LBB0_2
## %bb.3:
	cmpl	$129, %edi
	jne	LBB0_15
## %bb.4:
	movl	%ebx, %edi
	callq	_ASIC_REV_IS_STONEY
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:
	movq	_BW_CALCS_VERSION_CARRIZO@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_7:
	movl	%ebx, %edi
	callq	_ASIC_REV_IS_POLARIS12_V
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	_BW_CALCS_VERSION_POLARIS12@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_2:
	movq	_BW_CALCS_VERSION_VEGA10@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_5:
	movq	_BW_CALCS_VERSION_STONEY@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_9:
	movl	%ebx, %edi
	callq	_ASIC_REV_IS_POLARIS10_P
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	_BW_CALCS_VERSION_POLARIS10@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_11:
	movl	%ebx, %edi
	callq	_ASIC_REV_IS_POLARIS11_M
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movq	_BW_CALCS_VERSION_POLARIS11@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_13:
	movl	%ebx, %edi
	callq	_ASIC_REV_IS_VEGAM
	testl	%eax, %eax
	jne	LBB0_14
LBB0_15:
	movq	_BW_CALCS_VERSION_INVALID@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_14:
	movq	_BW_CALCS_VERSION_VEGAM@GOTPCREL(%rip), %rax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_BW_CALCS_VERSION_STONEY,4,2    ## @BW_CALCS_VERSION_STONEY
	.comm	_BW_CALCS_VERSION_CARRIZO,4,2   ## @BW_CALCS_VERSION_CARRIZO
	.comm	_BW_CALCS_VERSION_POLARIS12,4,2 ## @BW_CALCS_VERSION_POLARIS12
	.comm	_BW_CALCS_VERSION_POLARIS10,4,2 ## @BW_CALCS_VERSION_POLARIS10
	.comm	_BW_CALCS_VERSION_POLARIS11,4,2 ## @BW_CALCS_VERSION_POLARIS11
	.comm	_BW_CALCS_VERSION_VEGAM,4,2     ## @BW_CALCS_VERSION_VEGAM
	.comm	_BW_CALCS_VERSION_INVALID,4,2   ## @BW_CALCS_VERSION_INVALID
	.comm	_BW_CALCS_VERSION_VEGA10,4,2    ## @BW_CALCS_VERSION_VEGA10
	.no_dead_strip	_bw_calcs_version_from_asic_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bw_calcs_version_from_asic_id
_bw_calcs_version_from_asic_id:         ; @bw_calcs_version_from_asic_id
	.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
	lsr	x19, x0, #32
	cmp	w0, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w0, #130
	b.eq	LBB0_7
; %bb.2:
	cmp	w0, #129
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x19
	bl	_ASIC_REV_IS_STONEY
Lloh0:
	adrp	x8, _BW_CALCS_VERSION_STONEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BW_CALCS_VERSION_STONEY@GOTPAGEOFF]
Lloh2:
	adrp	x9, _BW_CALCS_VERSION_CARRIZO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BW_CALCS_VERSION_CARRIZO@GOTPAGEOFF]
LBB0_4:
	cmp	w0, #0
	csel	x8, x9, x8, eq
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_ASIC_REV_IS_POLARIS12_V
	cbz	w0, LBB0_10
; %bb.6:
Lloh4:
	adrp	x8, _BW_CALCS_VERSION_POLARIS12@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BW_CALCS_VERSION_POLARIS12@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x8, _BW_CALCS_VERSION_VEGA10@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BW_CALCS_VERSION_VEGA10@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x8, _BW_CALCS_VERSION_INVALID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BW_CALCS_VERSION_INVALID@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x19
	bl	_ASIC_REV_IS_POLARIS10_P
	cbz	w0, LBB0_12
; %bb.11:
Lloh10:
	adrp	x8, _BW_CALCS_VERSION_POLARIS10@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BW_CALCS_VERSION_POLARIS10@GOTPAGEOFF]
	b	LBB0_9
LBB0_12:
	mov	x0, x19
	bl	_ASIC_REV_IS_POLARIS11_M
	cbz	w0, LBB0_14
; %bb.13:
Lloh12:
	adrp	x8, _BW_CALCS_VERSION_POLARIS11@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BW_CALCS_VERSION_POLARIS11@GOTPAGEOFF]
	b	LBB0_9
LBB0_14:
	mov	x0, x19
	bl	_ASIC_REV_IS_VEGAM
Lloh14:
	adrp	x8, _BW_CALCS_VERSION_VEGAM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BW_CALCS_VERSION_VEGAM@GOTPAGEOFF]
Lloh16:
	adrp	x9, _BW_CALCS_VERSION_INVALID@GOTPAGE
Lloh17:
	ldr	x9, [x9, _BW_CALCS_VERSION_INVALID@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_BW_CALCS_VERSION_STONEY,4,2    ; @BW_CALCS_VERSION_STONEY
	.comm	_BW_CALCS_VERSION_CARRIZO,4,2   ; @BW_CALCS_VERSION_CARRIZO
	.comm	_BW_CALCS_VERSION_POLARIS12,4,2 ; @BW_CALCS_VERSION_POLARIS12
	.comm	_BW_CALCS_VERSION_POLARIS10,4,2 ; @BW_CALCS_VERSION_POLARIS10
	.comm	_BW_CALCS_VERSION_POLARIS11,4,2 ; @BW_CALCS_VERSION_POLARIS11
	.comm	_BW_CALCS_VERSION_VEGAM,4,2     ; @BW_CALCS_VERSION_VEGAM
	.comm	_BW_CALCS_VERSION_INVALID,4,2   ; @BW_CALCS_VERSION_INVALID
	.comm	_BW_CALCS_VERSION_VEGA10,4,2    ; @BW_CALCS_VERSION_VEGA10
	.no_dead_strip	_bw_calcs_version_from_asic_id
.subsections_via_symbols
