	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_get_firmware_version
_amdgpu_get_firmware_version:           ## @amdgpu_get_firmware_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $esi killed $esi def $rsi
	xorl	%ebx, %ebx
	leal	-128(%rsi), %eax
	cmpl	$9, %eax
	ja	LBB0_9
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movq	_adev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax), %ebx
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_DRM_ERROR
	jmp	LBB0_10
LBB0_3:
	movq	_adev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%rax), %rax
	movl	4(%rax), %ebx
	jmp	LBB0_10
LBB0_2:
	movq	_adev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%rax), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_8:
	movq	_adev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_5:
	movq	_adev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	12(%rax), %ebx
	jmp	LBB0_10
LBB0_4:
	movq	_adev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	16(%rax), %ebx
	jmp	LBB0_10
LBB0_6:
	movq	_adev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_CGS_FUNC_ADEV,4,2              ## @CGS_FUNC_ADEV
	.comm	_adev,8,3                       ## @adev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"firmware type %d do not have version\n"

	.no_dead_strip	_amdgpu_get_firmware_version
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_get_firmware_version
_amdgpu_get_firmware_version:           ; @amdgpu_get_firmware_version
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	w8, w1, #128
	cmp	w8, #9
	b.hi	LBB0_3
; %bb.1:
	mov	w0, #0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _adev@GOTPAGE
Lloh3:
	ldr	x8, [x8, _adev@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh7:
	adrp	x8, _adev@GOTPAGE
Lloh8:
	ldr	x8, [x8, _adev@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x8, [x8, #24]
LBB0_6:
	ldr	w0, [x8, #4]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh10:
	adrp	x8, _adev@GOTPAGE
Lloh11:
	ldr	x8, [x8, _adev@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x8, [x8, #24]
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x8, _adev@GOTPAGE
Lloh14:
	ldr	x8, [x8, _adev@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh16:
	adrp	x8, _adev@GOTPAGE
Lloh17:
	ldr	x8, [x8, _adev@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	w0, [x8, #12]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh19:
	adrp	x8, _adev@GOTPAGE
Lloh20:
	ldr	x8, [x8, _adev@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	w0, [x8, #16]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh22:
	adrp	x8, _adev@GOTPAGE
Lloh23:
	ldr	x8, [x8, _adev@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldr	w0, [x8, #8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_CGS_FUNC_ADEV,4,2              ; @CGS_FUNC_ADEV
	.comm	_adev,8,3                       ; @adev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"firmware type %d do not have version\n"

	.no_dead_strip	_amdgpu_get_firmware_version
.subsections_via_symbols
