	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gm107_grctx_generate_bundle    ## -- Begin function gm107_grctx_generate_bundle
	.p2align	4, 0x90
_gm107_grctx_generate_bundle:           ## @gm107_grctx_generate_bundle
	.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	%rdi, %r12
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movl	(%rbx), %eax
	movl	8(%rbx), %edi
	leal	31(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$5, %esi
	callq	_min
	movl	%eax, %r14d
	movl	(%rbx), %esi
	shll	$16, %r14d
	orl	4(%rbx), %r14d
	movq	%r12, %rdi
	movl	$256, %edx                      ## imm = 0x100
	movl	$1, %ecx
	callq	_mmio_vram
	movl	%eax, %r15d
	movq	%r12, %rdi
	movl	$4227076, %esi                  ## imm = 0x408004
	xorl	%edx, %edx
	movl	$8, %ecx
	movl	%eax, %r8d
	callq	_mmio_refn
	movl	(%rbx), %edx
	sarl	$8, %edx
	orl	$-2147483648, %edx              ## imm = 0x80000000
	movq	%r12, %rdi
	movl	$4227080, %esi                  ## imm = 0x408008
	callq	_mmio_wr32
	movq	%r12, %rdi
	movl	$4296228, %esi                  ## imm = 0x418E24
	xorl	%edx, %edx
	movl	$8, %ecx
	movl	%r15d, %r8d
	callq	_mmio_refn
	movl	(%rbx), %edx
	sarl	$8, %edx
	orl	$-2147483648, %edx              ## imm = 0x80000000
	movq	%r12, %rdi
	movl	$4296232, %esi                  ## imm = 0x418E28
	callq	_mmio_wr32
	movq	%r12, %rdi
	movl	$4220104, %esi                  ## imm = 0x4064C8
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmio_wr32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gm107_grctx_generate_bundle    ; -- Begin function gm107_grctx_generate_bundle
	.p2align	2
_gm107_grctx_generate_bundle:           ; @gm107_grctx_generate_bundle
	.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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x22, [x8]
	ldr	w0, [x22, #8]
	ldr	w8, [x22]
	add	w9, w8, #31
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w1, w8, #5
	bl	_min
	mov	x20, x0
	ldp	w1, w23, [x22]
	mov	x0, x19
	mov	w2, #256
	mov	w3, #1
	bl	_mmio_vram
	mov	x21, x0
	mov	w24, #32772
	movk	w24, #64, lsl #16
	mov	x0, x19
	mov	w1, #32772
	movk	w1, #64, lsl #16
	mov	w2, #0
	mov	w3, #8
	mov	x4, x21
	bl	_mmio_refn
	ldr	w8, [x22]
	asr	w8, w8, #8
	orr	w2, w8, #0x80000000
	add	w1, w24, #4
	mov	x0, x19
	bl	_mmio_wr32
	mov	w24, #36388
	movk	w24, #65, lsl #16
	mov	x0, x19
	mov	w1, #36388
	movk	w1, #65, lsl #16
	mov	w2, #0
	mov	w3, #8
	mov	x4, x21
	bl	_mmio_refn
	ldr	w8, [x22]
	asr	w8, w8, #8
	orr	w2, w8, #0x80000000
	add	w1, w24, #4
	mov	x0, x19
	bl	_mmio_wr32
	orr	w2, w23, w20, lsl #16
	mov	x0, x19
	mov	w1, #25800
	movk	w1, #64, lsl #16
	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
	b	_mmio_wr32
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
