	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_falcon_v1_load_emem
_nvkm_falcon_v1_load_emem:              ## @nvkm_falcon_v1_load_emem
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movl	%ecx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r15
	leal	3(%rbx), %r14d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r14d
	movl	%r14d, %eax
	andl	$-4, %eax
	subl	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leal	2752(,%r8,8), %esi
	movl	%r8d, %r12d
	shll	$3, %r12d
	orl	$16777216, %edx                 ## imm = 0x1000000
	callq	_nvkm_falcon_wr32
	cmpl	$4, %ebx
	jl	LBB0_1
## %bb.2:
	sarl	$2, %r14d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leal	2756(%r12), %ebx
	movl	%r14d, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%r12,4), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_nvkm_falcon_wr32
	incq	%r12
	cmpq	%r12, %r14
	jne	LBB0_3
## %bb.4:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
LBB0_5:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	testl	%edi, %edi
	je	LBB0_6
## %bb.7:
	movl	(%r13,%r14,4), %ebx
	addl	$2756, %r12d                    ## imm = 0xAC4
	shll	$3, %edi
	callq	_BIT
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %edx
	andl	%ebx, %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_falcon_wr32               ## TAILCALL
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nvkm_falcon_v1_load_emem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_falcon_v1_load_emem
_nvkm_falcon_v1_load_emem:              ; @nvkm_falcon_v1_load_emem
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x20, x1
	mov	x19, x0
	add	w8, w3, #3
	cmp	w3, #0
	csel	w24, w8, w3, lt
	and	w8, w24, #0xfffffffc
	sub	w22, w3, w8
	lsl	w23, w4, #3
	add	w1, w23, #2752
	orr	w2, w2, #0x1000000
	bl	_nvkm_falcon_wr32
	cmp	w21, #4
	b.lt	LBB0_5
; %bb.1:
	asr	w24, w24, #2
	add	w21, w23, #2756
	mov	x25, x24
	mov	x26, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x26], #4
	mov	x0, x19
	mov	x1, x21
	bl	_nvkm_falcon_wr32
	subs	x25, x25, #1
	b.ne	LBB0_2
; %bb.3:
	cbz	w22, LBB0_6
LBB0_4:
	ldr	w21, [x20, x24, lsl #2]
	add	w20, w23, #2756
	lsl	w0, w22, #3
	bl	_BIT
	sub	w8, w0, #1
	and	w2, w8, w21
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_nvkm_falcon_wr32
LBB0_5:
	mov	x24, #0
	cbnz	w22, LBB0_4
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nvkm_falcon_v1_load_emem
.subsections_via_symbols
