	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf117_grctx_generate_rop_mapping ## -- Begin function gf117_grctx_generate_rop_mapping
	.p2align	4, 0x90
_gf117_grctx_generate_rop_mapping:      ## @gf117_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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r8
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movq	(%rdi), %rax
	xorl	%edx, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%sil, %ecx
	imull	$171, %ecx, %edi
	shrl	$10, %edi
	movl	%edi, %ebx
	shll	$5, %ebx
	subl	%edi, %ebx
	subl	%edi, %ebx
	movl	%edx, %ecx
	subb	%bl, %cl
	movl	(%rax,%rsi,4), %ebx
	andl	$7, %ebx
	shll	%cl, %ebx
	orl	%ebx, -80(%rbp,%rdi,4)
	incq	%rsi
	addb	$5, %dl
	cmpq	$32, %rsi
	jne	LBB0_1
## %bb.2:
	movl	8(%r8), %ecx
	xorl	%r14d, %r14d
	movl	%ecx, %ebx
	testb	$16, %cl
	jne	LBB0_5
## %bb.3:
	xorl	%r14d, %r14d
	movl	%ecx, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rax,%rax), %ebx
	addl	$2097152, %r14d                 ## imm = 0x200000
	testb	$8, %al
	movl	%ebx, %eax
	je	LBB0_4
LBB0_5:
	movl	%ebx, %r15d
	shll	$16, %r15d
	movl	$32, %eax
	xorl	%edx, %edx
	idivl	%ebx
	movl	%edx, -128(%rbp)                ## 4-byte Spill
	movl	$128, %eax
	xorl	%edx, %edx
	idivl	%ebx
	shll	$5, %edx
	movl	%edx, -124(%rbp)                ## 4-byte Spill
	movl	$256, %eax                      ## imm = 0x100
	xorl	%edx, %edx
	idivl	%ebx
	shll	$10, %edx
	movl	%edx, -120(%rbp)                ## 4-byte Spill
	movl	$512, %eax                      ## imm = 0x200
	xorl	%edx, %edx
	idivl	%ebx
	shll	$15, %edx
	movl	%edx, -100(%rbp)                ## 4-byte Spill
	movl	$1024, %eax                     ## imm = 0x400
	xorl	%edx, %edx
	idivl	%ebx
	shll	$20, %edx
	movl	%edx, -96(%rbp)                 ## 4-byte Spill
	movl	$2048, %eax                     ## imm = 0x800
	xorl	%edx, %edx
	idivl	%ebx
	shll	$25, %edx
	movl	%edx, -92(%rbp)                 ## 4-byte Spill
	shll	$8, %ecx
	orl	12(%r8), %ecx
	movq	%r13, %rdi
	movl	$4295608, %esi                  ## imm = 0x418BB8
	movl	%ecx, %edx
	movq	%r8, -136(%rbp)                 ## 8-byte Spill
	callq	_nvkm_wr32
	movl	-80(%rbp), %edx
	movl	%edx, -116(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	movl	$4295432, %esi                  ## imm = 0x418B08
	callq	_nvkm_wr32
	movl	-76(%rbp), %edx
	movl	%edx, -112(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	movl	$4295436, %esi                  ## imm = 0x418B0C
	callq	_nvkm_wr32
	movl	-72(%rbp), %edx
	movl	%edx, -108(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	movl	$4295440, %esi                  ## imm = 0x418B10
	callq	_nvkm_wr32
	movl	-68(%rbp), %edx
	movl	%edx, -104(%rbp)                ## 4-byte Spill
	movq	%r13, %rdi
	movl	$4295444, %esi                  ## imm = 0x418B14
	callq	_nvkm_wr32
	movl	-64(%rbp), %edx
	movl	%edx, -88(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	$4295448, %esi                  ## imm = 0x418B18
	callq	_nvkm_wr32
	movl	-60(%rbp), %edx
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	$4295452, %esi                  ## imm = 0x418B1C
	callq	_nvkm_wr32
	movl	$64, %eax
	xorl	%edx, %edx
	idivl	%ebx
	movl	%edx, %r12d
	orl	-124(%rbp), %r12d               ## 4-byte Folded Reload
	movl	-100(%rbp), %eax                ## 4-byte Reload
	orl	-120(%rbp), %eax                ## 4-byte Folded Reload
	orl	%eax, %r12d
	movl	-92(%rbp), %eax                 ## 4-byte Reload
	orl	-96(%rbp), %eax                 ## 4-byte Folded Reload
	orl	%eax, %r12d
	movl	-128(%rbp), %edx                ## 4-byte Reload
	shll	$24, %edx
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movl	8(%rcx), %eax
	shll	$8, %eax
	orl	%r14d, %r15d
	orl	%edx, %r15d
	orl	12(%rcx), %r15d
	orl	%eax, %r15d
	movq	%r13, %rdi
	movl	$4308944, %esi                  ## imm = 0x41BFD0
	movl	%r15d, %edx
	callq	_nvkm_wr32
	movq	%r13, %rdi
	movl	$4308964, %esi                  ## imm = 0x41BFE4
	movl	%r12d, %edx
	callq	_nvkm_wr32
	movq	%r13, %rdi
	movl	$4308736, %esi                  ## imm = 0x41BF00
	movl	-116(%rbp), %ebx                ## 4-byte Reload
	movl	%ebx, %edx
	callq	_nvkm_wr32
	movq	%r13, %rdi
	movl	$4308740, %esi                  ## imm = 0x41BF04
	movl	-112(%rbp), %r15d               ## 4-byte Reload
	movl	%r15d, %edx
	callq	_nvkm_wr32
	movq	%r13, %rdi
	movl	$4308744, %esi                  ## imm = 0x41BF08
	movl	-108(%rbp), %r12d               ## 4-byte Reload
	movl	%r12d, %edx
	callq	_nvkm_wr32
	movq	%r13, %rdi
	movl	$4308748, %esi                  ## imm = 0x41BF0C
	movl	-104(%rbp), %r14d               ## 4-byte Reload
	movl	%r14d, %edx
	callq	_nvkm_wr32
	movq	%r13, %rdi
	movl	$4308752, %esi                  ## imm = 0x41BF10
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	callq	_nvkm_wr32
	movq	%r13, %rdi
	movl	$4308756, %esi                  ## imm = 0x41BF14
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	callq	_nvkm_wr32
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movl	8(%rax), %edx
	shll	$8, %edx
	orl	12(%rax), %edx
	movq	%r13, %rdi
	movl	$4225212, %esi                  ## imm = 0x4078BC
	callq	_nvkm_wr32
	movq	%r13, %rdi
	movl	$4225036, %esi                  ## imm = 0x40780C
	movl	%ebx, %edx
	callq	_nvkm_wr32
	movq	%r13, %rdi
	movl	$4225040, %esi                  ## imm = 0x407810
	movl	%r15d, %edx
	callq	_nvkm_wr32
	movq	%r13, %rdi
	movl	$4225044, %esi                  ## imm = 0x407814
	movl	%r12d, %edx
	callq	_nvkm_wr32
	movq	%r13, %rdi
	movl	$4225048, %esi                  ## imm = 0x407818
	movl	%r14d, %edx
	callq	_nvkm_wr32
	movq	%r13, %rdi
	movl	$4225052, %esi                  ## imm = 0x40781C
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	callq	_nvkm_wr32
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.7:
	movq	%r13, %rdi
	movl	$4225056, %esi                  ## imm = 0x407820
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_wr32                      ## TAILCALL
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf117_grctx_generate_rop_mapping ; -- Begin function gf117_grctx_generate_rop_mapping
	.p2align	2
_gf117_grctx_generate_rop_mapping:      ; @gf117_grctx_generate_rop_mapping
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x0
	mov	x8, #0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	str	x9, [sp, #56]
	ldr	x19, [x0, #16]
	stp	xzr, xzr, [sp, #32]
	str	xzr, [sp, #48]
	ldr	x9, [x0]
	mov	w10, #171
	mov	w11, #6
	add	x12, sp, #32
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x9, x8, lsl #2]
	and	w13, w13, #0x7
	and	w14, w8, #0xff
	mul	w14, w14, w10
	lsr	w14, w14, #10
	msub	w15, w14, w11, w8
	add	w15, w15, w15, lsl #2
	lsl	x14, x14, #2
	ldr	w16, [x12, x14]
	lsl	w13, w13, w15
	orr	w13, w13, w16
	str	w13, [x12, x14]
	add	x8, x8, #1
	cmp	x8, #32
	b.ne	LBB0_1
; %bb.2:
	ldp	w8, w9, [x20, #8]
	and	w10, w8, #0xf
	clz	w10, w10
	sub	w10, w10, #27
	lsl	w11, w8, w10
	lsl	w10, w10, #21
	tst	w8, #0x10
	csel	w10, wzr, w10, ne
	str	w10, [sp, #24]                  ; 4-byte Folded Spill
	csel	w28, w8, w11, ne
	mov	w10, #32
	sdiv	w11, w10, w28
	msub	w10, w11, w28, w10
	str	w10, [sp, #20]                  ; 4-byte Folded Spill
	mov	w10, #128
	sdiv	w11, w10, w28
	msub	w10, w11, w28, w10
	str	w10, [sp, #16]                  ; 4-byte Folded Spill
	mov	w10, #256
	sdiv	w11, w10, w28
	msub	w10, w11, w28, w10
	str	w10, [sp, #12]                  ; 4-byte Folded Spill
	mov	w10, #512
	sdiv	w11, w10, w28
	msub	w10, w11, w28, w10
	str	w10, [sp, #8]                   ; 4-byte Folded Spill
	mov	w10, #1024
	sdiv	w11, w10, w28
	msub	w10, w11, w28, w10
	str	w10, [sp, #4]                   ; 4-byte Folded Spill
	mov	w10, #2048
	sdiv	w11, w10, w28
	msub	w21, w11, w28, w10
	orr	w2, w9, w8, lsl #8
	mov	w8, #176
	mov	w27, #35592
	movk	w27, #65, lsl #16
	orr	w1, w27, w8
	mov	x0, x19
	bl	_nvkm_wr32
	ldr	w26, [sp, #32]
	mov	x0, x19
	mov	w1, #35592
	movk	w1, #65, lsl #16
	mov	x2, x26
	bl	_nvkm_wr32
	ldr	w25, [sp, #36]
	orr	w1, w27, #0x4
	mov	x0, x19
	mov	x2, x25
	bl	_nvkm_wr32
	ldr	w2, [sp, #40]
	str	w2, [sp, #28]                   ; 4-byte Folded Spill
	add	w1, w27, #8
	mov	x0, x19
	bl	_nvkm_wr32
	ldr	w23, [sp, #44]
	add	w1, w27, #12
	mov	x0, x19
	mov	x2, x23
	bl	_nvkm_wr32
	ldr	w24, [sp, #48]
	orr	w1, w27, #0x10
	mov	x0, x19
	mov	x2, x24
	bl	_nvkm_wr32
	ldr	w22, [sp, #52]
	mov	w8, #20
	orr	w1, w27, w8
	mov	x0, x19
	mov	x2, x22
	bl	_nvkm_wr32
	mov	w8, #64
	sdiv	w9, w8, w28
	msub	w8, w9, w28, w8
	ldp	w9, w11, [sp, #16]              ; 8-byte Folded Reload
	orr	w8, w8, w9, lsl #5
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	orr	w8, w8, w9, lsl #10
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	orr	w8, w8, w9, lsl #15
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	orr	w8, w8, w9, lsl #20
	orr	w27, w8, w21, lsl #25
	ldp	w8, w9, [x20, #8]
	ldr	w10, [sp, #24]                  ; 4-byte Folded Reload
	orr	w10, w10, w28, lsl #16
	orr	w10, w10, w11, lsl #24
	orr	w9, w10, w9
	orr	w2, w9, w8, lsl #8
	mov	w8, #208
	mov	w21, #48896
	movk	w21, #65, lsl #16
	orr	w1, w21, w8
	mov	x0, x19
	bl	_nvkm_wr32
	mov	w8, #228
	orr	w1, w21, w8
	mov	x0, x19
	mov	x2, x27
	bl	_nvkm_wr32
	mov	x0, x19
	mov	w1, #48896
	movk	w1, #65, lsl #16
	mov	x2, x26
	bl	_nvkm_wr32
	orr	w1, w21, #0x4
	mov	x0, x19
	mov	x2, x25
	bl	_nvkm_wr32
	orr	w1, w21, #0x8
	mov	x0, x19
	ldr	w27, [sp, #28]                  ; 4-byte Folded Reload
	mov	x2, x27
	bl	_nvkm_wr32
	orr	w1, w21, #0xc
	mov	x0, x19
	mov	x2, x23
	bl	_nvkm_wr32
	orr	w1, w21, #0x10
	mov	x0, x19
	mov	x2, x24
	bl	_nvkm_wr32
	mov	w8, #20
	orr	w1, w21, w8
	mov	x0, x19
	mov	x2, x22
	bl	_nvkm_wr32
	ldp	w8, w9, [x20, #8]
	orr	w2, w9, w8, lsl #8
	mov	w20, #30732
	movk	w20, #64, lsl #16
	mov	w8, #176
	orr	w1, w20, w8
	mov	x0, x19
	bl	_nvkm_wr32
	mov	x0, x19
	mov	w1, #30732
	movk	w1, #64, lsl #16
	mov	x2, x26
	bl	_nvkm_wr32
	add	w1, w20, #4
	mov	x0, x19
	mov	x2, x25
	bl	_nvkm_wr32
	add	w1, w20, #8
	mov	x0, x19
	mov	x2, x27
	bl	_nvkm_wr32
	add	w1, w20, #12
	mov	x0, x19
	mov	x2, x23
	bl	_nvkm_wr32
	orr	w1, w20, #0x10
	mov	x0, x19
	mov	x2, x24
	bl	_nvkm_wr32
	ldr	x8, [sp, #56]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	add	w1, w20, #20
	mov	x0, x19
	mov	x2, x22
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_nvkm_wr32
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
