	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v10_0_rlc_backdoor_autoload_copy_ucode
_gfx_v10_0_rlc_backdoor_autoload_copy_ucode: ## @gfx_v10_0_rlc_backdoor_autoload_copy_ucode
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FIRMWARE_ID_INVALID@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jae	LBB0_3
## %bb.1:
	movq	_FIRMWARE_ID_MAX@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jbe	LBB0_3
## %bb.2:
	movq	%rcx, %rbx
	movq	(%rdi), %r14
	movq	_rlc_autoload_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$4, %rsi
	movq	8(%rax,%rsi), %r15
	testq	%rcx, %rcx
	cmoveq	%r15, %rbx
	cmpq	%r15, %rbx
	movq	%r15, %r12
	cmovlq	%rbx, %r12
	addq	(%rax,%rsi), %r14
	movq	%r14, %rdi
	movq	%rdx, %rsi
	movq	%r12, %rdx
	callq	_memcpy
	cmpq	%rbx, %r15
	jle	LBB0_3
## %bb.4:
	addq	%r12, %r14
	subq	%r12, %r15
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIRMWARE_ID_INVALID,8,3        ## @FIRMWARE_ID_INVALID
	.comm	_FIRMWARE_ID_MAX,8,3            ## @FIRMWARE_ID_MAX
	.comm	_rlc_autoload_info,8,3          ## @rlc_autoload_info
	.no_dead_strip	_gfx_v10_0_rlc_backdoor_autoload_copy_ucode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v10_0_rlc_backdoor_autoload_copy_ucode
_gfx_v10_0_rlc_backdoor_autoload_copy_ucode: ; @gfx_v10_0_rlc_backdoor_autoload_copy_ucode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _FIRMWARE_ID_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FIRMWARE_ID_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _FIRMWARE_ID_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FIRMWARE_ID_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x1
	ccmp	x9, x1, #0, lo
	b.ls	LBB0_3
; %bb.1:
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _rlc_autoload_info@GOTPAGE
Lloh7:
	ldr	x9, [x9, _rlc_autoload_info@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x9, x9, x1, lsl #4
	ldp	x10, x21, [x9]
	cmp	x3, #0
	csel	x22, x21, x3, eq
	cmp	x22, x21
	csel	x19, x22, x21, lt
	add	x20, x8, x10
	mov	x0, x20
	mov	x1, x2
	mov	x2, x19
	bl	_memcpy
	cmp	x21, x22
	b.le	LBB0_3
; %bb.2:
	add	x0, x20, x19
	sub	x2, x21, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_memset
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FIRMWARE_ID_INVALID,8,3        ; @FIRMWARE_ID_INVALID
	.comm	_FIRMWARE_ID_MAX,8,3            ; @FIRMWARE_ID_MAX
	.comm	_rlc_autoload_info,8,3          ; @rlc_autoload_info
	.no_dead_strip	_gfx_v10_0_rlc_backdoor_autoload_copy_ucode
.subsections_via_symbols
