	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pramin_read
_pramin_read:                           ## @pramin_read
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $esi killed $esi def $rsi
	leal	(%rdx,%rsi), %ecx
	xorl	%eax, %eax
	cmpl	$1048576, %ecx                  ## imm = 0x100000
	jg	LBB0_6
## %bb.1:
	testl	%edx, %edx
	jle	LBB0_2
## %bb.3:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %r12
	movslq	%esi, %rbx
	movslq	%ecx, %r14
	leal	7340032(%rbx), %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_nvkm_rd32
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	addq	$4, %rbx
	addl	$4, %r13d
	cmpq	%r14, %rbx
	jl	LBB0_4
## %bb.5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	jmp	LBB0_6
LBB0_2:
	movl	%edx, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pramin_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pramin_read
_pramin_read:                           ; @pramin_read
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	add	w8, w2, w1
	cmp	w8, #256, lsl #12               ; =1048576
	b.gt	LBB0_4
; %bb.1:
	mov	x19, x2
	cmp	w2, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x20, x3
	ldr	x21, [x3, #8]
	sxtw	x23, w1
	sxtw	x24, w8
	add	w22, w1, #1792, lsl #12         ; =7340032
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_nvkm_rd32
	ldr	x8, [x20]
	str	w0, [x8, x23, lsl #2]
	add	x23, x23, #4
	add	w22, w22, #4
	cmp	x23, x24
	b.lt	LBB0_3
	b	LBB0_5
LBB0_4:
	mov	w19, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pramin_read
.subsections_via_symbols
