	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function gv100_grctx_generate_rop_mapping
LCPI0_0:
	.long	1024                            ## 0x400
	.long	32768                           ## 0x8000
	.long	1048576                         ## 0x100000
	.long	33554432                        ## 0x2000000
LCPI0_1:
	.long	31744                           ## 0x7c00
	.long	1015808                         ## 0xf8000
	.long	32505856                        ## 0x1f00000
	.long	1040187392                      ## 0x3e000000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_gv100_grctx_generate_rop_mapping:      ## @gv100_grctx_generate_rop_mapping
	.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	%rdi, %r14
	movq	16(%rdi), %r15
	movl	(%rdi), %edx
	shll	$8, %edx
	orl	4(%rdi), %edx
	movq	%r15, %rdi
	movl	$4295608, %esi                  ## imm = 0x418BB8
	callq	_nvkm_wr32
	movl	$4308736, %r12d                 ## imm = 0x41BF00
	movl	$2, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	-8(%rax,%r13,4), %ecx
	movl	-4(%rax,%r13,4), %edx
	andl	$31, %ecx
	andl	$31, %edx
	shll	$5, %edx
	orl	%ecx, %edx
	movdqu	(%rax,%r13,4), %xmm0
	pmulld	LCPI0_0(%rip), %xmm0
	pand	LCPI0_1(%rip), %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %ebx
	orl	%edx, %ebx
	leal	-13304(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_nvkm_wr32
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_nvkm_wr32
	leal	-83700(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_nvkm_wr32
	addl	$4, %r12d
	addq	$6, %r13
	cmpq	$68, %r13
	jne	LBB0_1
## %bb.2:
	movl	(%r14), %edx
	shll	$8, %edx
	orl	4(%r14), %edx
	movq	%r15, %rdi
	movl	$4308944, %esi                  ## imm = 0x41BFD0
	callq	_nvkm_wr32
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	movl	(%r14), %r9d
	cltd
	idivl	%r9d
	movl	%edx, %r8d
	movl	$2, %eax
	shll	%cl, %eax
	movl	$4, %edi
	shll	%cl, %edi
	cltd
	idivl	%r9d
	movl	%edx, %esi
	movl	%edi, %eax
	cltd
	idivl	%r9d
	movl	%edx, %edi
	movl	$8, %eax
	shll	%cl, %eax
	cltd
	idivl	%r9d
	shll	$24, %edx
	shll	$16, %edi
	orl	%edi, %edx
	shll	$8, %esi
	orl	%r8d, %esi
	orl	%esi, %edx
	leal	4308911(%rbx), %esi
	movq	%r15, %rdi
	callq	_nvkm_wr32
	leal	4(%rbx), %eax
	cmpl	$17, %ebx
	movl	%eax, %ebx
	jne	LBB0_3
## %bb.4:
	movl	(%r14), %edx
	shll	$8, %edx
	orl	4(%r14), %edx
	movq	%r15, %rdi
	movl	$4225212, %esi                  ## imm = 0x4078BC
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_wr32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gv100_grctx_generate_rop_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function gv100_grctx_generate_rop_mapping
lCPI0_0:
	.long	10                              ; 0xa
	.long	15                              ; 0xf
	.long	20                              ; 0x14
	.long	25                              ; 0x19
lCPI0_1:
	.long	31744                           ; 0x7c00
	.long	1015808                         ; 0xf8000
	.long	32505856                        ; 0x1f00000
	.long	1040187392                      ; 0x3e000000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_gv100_grctx_generate_rop_mapping:      ; @gv100_grctx_generate_rop_mapping
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	mov	w26, #48896
	movk	w26, #65, lsl #16
	mov	w21, #35592
	movk	w21, #65, lsl #16
	ldr	x20, [x0, #16]
	ldp	w8, w9, [x0]
	orr	w2, w9, w8, lsl #8
	mov	w8, #176
	orr	w1, w21, w8
	mov	x0, x20
	bl	_nvkm_wr32
	mov	x27, #0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
Lloh2:
	adrp	x8, lCPI0_1@PAGE
Lloh3:
	ldr	q0, [x8, lCPI0_1@PAGEOFF]
	str	q0, [sp]                        ; 16-byte Folded Spill
	mov	w22, #30732
	movk	w22, #64, lsl #16
	mov	w23, #48896
	movk	w23, #65, lsl #16
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x27
	ldp	w9, w10, [x8]
	and	w9, w9, #0x1f
	ubfiz	w10, w10, #5, #5
	ldur	q0, [x8, #8]
	ldr	q1, [sp, #16]                   ; 16-byte Folded Reload
	ushl.4s	v0, v0, v1
	ldr	q1, [sp]                        ; 16-byte Folded Reload
	and.16b	v0, v0, v1
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	mov.s	w8, v0[1]
	fmov	w11, s0
	orr	w8, w11, w8
	orr	w8, w8, w10
	orr	w24, w8, w9
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	bl	_nvkm_wr32
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	bl	_nvkm_wr32
	mov	x0, x20
	mov	x1, x22
	mov	x2, x24
	bl	_nvkm_wr32
	add	w21, w21, #4
	add	w23, w23, #4
	add	w22, w22, #4
	add	x27, x27, #24
	cmp	x27, #264
	b.ne	LBB0_1
; %bb.2:
	ldp	w8, w9, [x19]
	orr	w2, w9, w8, lsl #8
	add	w1, w26, #208
	mov	x0, x20
	bl	_nvkm_wr32
	mov	w21, #1
	mov	w22, #2
	mov	w23, #4
	mov	w24, #8
	mov	w27, #16644
	movk	w27, #65470, lsl #16
	mov	w28, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w8, w21, w28
	ldr	w9, [x19]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	lsl	w10, w22, w28
	sdiv	w11, w10, w9
	msub	w10, w11, w9, w10
	lsl	w11, w23, w28
	sdiv	w12, w11, w9
	msub	w11, w12, w9, w11
	lsl	w12, w24, w28
	sdiv	w13, w12, w9
	msub	w9, w13, w9, w12
	orr	w8, w8, w10, lsl #8
	orr	w8, w8, w11, lsl #16
	orr	w2, w8, w9, lsl #24
	add	w25, w26, w28
	add	w1, w25, #175
	mov	x0, x20
	bl	_nvkm_wr32
	add	w8, w25, w27
	cmp	w28, #17
	mov	x28, x8
	b.ne	LBB0_3
; %bb.4:
	ldp	w8, w9, [x19]
	orr	w2, w9, w8, lsl #8
	mov	w8, #30732
	movk	w8, #64, lsl #16
	add	w1, w8, #176
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_nvkm_wr32
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gv100_grctx_generate_rop_mapping
.subsections_via_symbols
