	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atomfirmware_get_gfx_info ## -- Begin function amdgpu_atomfirmware_get_gfx_info
	.p2align	4, 0x90
_amdgpu_atomfirmware_get_gfx_info:      ## @amdgpu_atomfirmware_get_gfx_info
	.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, %r14
	movq	_atom_master_list_of_data_tables_v2_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_gfx_info@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_get_index_into_master_table
	movq	88(%r14), %rdi
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %rcx
	leaq	-28(%rbp), %r8
	leaq	-40(%rbp), %r9
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_amdgpu_atom_parse_data_header
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	cmpl	$4, -28(%rbp)
	jne	LBB0_3
## %bb.2:
	movq	88(%r14), %rax
	movq	(%rax), %r15
	movq	-40(%rbp), %rbx
	movl	52(%rbx,%r15), %eax
	movl	%eax, 80(%r14)
	movl	48(%rbx,%r15), %eax
	movl	%eax, 76(%r14)
	movl	44(%rbx,%r15), %eax
	movl	%eax, 72(%r14)
	movl	40(%rbx,%r15), %eax
	movl	%eax, 68(%r14)
	movl	36(%rbx,%r15), %eax
	movl	%eax, 64(%r14)
	movl	32(%rbx,%r15), %edi
	callq	_le16_to_cpu
	movq	%rax, 56(%r14)
	movl	28(%rbx,%r15), %eax
	movl	%eax, 52(%r14)
	movl	24(%rbx,%r15), %eax
	movl	%eax, 48(%r14)
	movl	20(%rbx,%r15), %edi
	callq	_le16_to_cpu
	movq	%rax, 40(%r14)
	movl	16(%rbx,%r15), %eax
	movl	%eax, 32(%r14)
	movl	12(%rbx,%r15), %edi
	callq	_le16_to_cpu
	movq	%rax, 24(%r14)
	movl	8(%rbx,%r15), %edi
	callq	_le16_to_cpu
	movq	%rax, 16(%r14)
	movl	4(%rbx,%r15), %eax
	movl	%eax, 8(%r14)
	movl	(%rbx,%r15), %edi
	callq	_le16_to_cpu
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_atom_master_list_of_data_tables_v2_1,4,2 ## @atom_master_list_of_data_tables_v2_1
	.comm	_gfx_info,4,2                   ## @gfx_info
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atomfirmware_get_gfx_info ; -- Begin function amdgpu_atomfirmware_get_gfx_info
	.p2align	2
_amdgpu_atomfirmware_get_gfx_info:      ; @amdgpu_atomfirmware_get_gfx_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, _atom_master_list_of_data_tables_v2_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _atom_master_list_of_data_tables_v2_1@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _gfx_info@GOTPAGE
Lloh4:
	ldr	x8, [x8, _gfx_info@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_get_index_into_master_table
	mov	x1, x0
	ldr	x0, [x19, #88]
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x5, sp
	mov	x2, #0
	bl	_amdgpu_atom_parse_data_header
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [sp, #8]
	cmp	w8, #4
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x19, #88]
	ldr	x8, [x8]
	ldr	x9, [sp]
	add	x20, x9, x8
	ldr	w8, [x20, #52]
	str	w8, [x19, #80]
	ldr	w8, [x20, #48]
	str	w8, [x19, #76]
	ldr	w8, [x20, #44]
	str	w8, [x19, #72]
	ldr	w8, [x20, #40]
	str	w8, [x19, #68]
	ldr	w8, [x20, #36]
	str	w8, [x19, #64]
	ldr	w0, [x20, #32]
	bl	_le16_to_cpu
	str	x0, [x19, #56]
	ldr	w8, [x20, #28]
	str	w8, [x19, #52]
	ldr	w8, [x20, #24]
	str	w8, [x19, #48]
	ldr	w0, [x20, #20]
	bl	_le16_to_cpu
	str	x0, [x19, #40]
	ldr	w8, [x20, #16]
	str	w8, [x19, #32]
	ldr	w0, [x20, #12]
	bl	_le16_to_cpu
	str	x0, [x19, #24]
	ldr	w0, [x20, #8]
	bl	_le16_to_cpu
	str	x0, [x19, #16]
	ldr	w8, [x20, #4]
	str	w8, [x19, #8]
	ldr	w0, [x20]
	bl	_le16_to_cpu
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_atom_master_list_of_data_tables_v2_1,4,2 ; @atom_master_list_of_data_tables_v2_1
	.comm	_gfx_info,4,2                   ; @gfx_info
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
