	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atomctrl_read_efuse            ## -- Begin function atomctrl_read_efuse
	.p2align	4, 0x90
_atomctrl_read_efuse:                   ## @atomctrl_read_efuse
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	(%rdi), %r13
	leal	31(%rbx), %r14d
	testl	%esi, %esi
	cmovnsl	%esi, %r14d
	movl	%r14d, %edi
	sarl	$5, %edi
	shll	$2, %edi
	callq	_cpu_to_le16
	movl	%eax, -56(%rbp)
	andl	$-32, %r14d
	subl	%ebx, %r12d
	subl	%r14d, %ebx
	movslq	%ebx, %rax
	movq	%rax, -64(%rbp)
	incl	%r12d
	movslq	%r12d, %rax
	movq	%rax, -72(%rbp)
	movl	(%r13), %ebx
	movq	_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ReadEfuseValue@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	leaq	-80(%rbp), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_amdgpu_atom_execute_table
	movl	%eax, %ebx
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movl	-80(%rbp), %edi
	callq	_le32_to_cpu
	andl	-44(%rbp), %eax                 ## 4-byte Folded Reload
LBB0_2:
	movl	%eax, (%r15)
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMMAND,4,2                    ## @COMMAND
	.comm	_ReadEfuseValue,4,2             ## @ReadEfuseValue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atomctrl_read_efuse            ; -- Begin function atomctrl_read_efuse
	.p2align	2
_atomctrl_read_efuse:                   ; @atomctrl_read_efuse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	ldr	x23, [x0]
	add	w8, w1, #31
	cmp	w1, #0
	csel	w24, w8, w1, lt
	asr	w8, w24, #5
	lsl	w0, w8, #2
	bl	_cpu_to_le16
	str	w0, [sp, #24]
	and	w8, w24, #0xffffffe0
	sub	w8, w22, w8
	sxtw	x8, w8
	sub	w9, w21, w22
	add	w9, w9, #1
	sxtw	x9, w9
	stp	x9, x8, [sp, #8]
	ldr	w21, [x23]
Lloh0:
	adrp	x8, _COMMAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMMAND@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ReadEfuseValue@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ReadEfuseValue@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x1, x0
	mov	x2, sp
	mov	x0, x21
	bl	_amdgpu_atom_execute_table
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
	mov	w8, #0
	b	LBB0_3
LBB0_2:
	ldr	w0, [sp]
	bl	_le32_to_cpu
	and	w8, w0, w20
LBB0_3:
	str	w8, [x19]
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_COMMAND,4,2                    ; @COMMAND
	.comm	_ReadEfuseValue,4,2             ; @ReadEfuseValue
.subsections_via_symbols
