	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv30_fb_init                   ## -- Begin function nv30_fb_init
	.p2align	4, 0x90
_nv30_fb_init:                          ## @nv30_fb_init
	.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
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rax, %r12
	movl	(%rax), %eax
	cmpq	$53, %rax
	ja	LBB0_4
## %bb.1:
	movabsq	$9851624184872960, %rcx         ## imm = 0x23000000000000
	btq	%rax, %rcx
	jae	LBB0_4
## %bb.2:
	xorl	%ecx, %ecx
	cmpl	$49, %eax
	setne	%cl
	leal	(%rcx,%rcx), %ebx
	addl	$2, %ebx
	movq	%r12, %rdi
	movl	$1049552, %esi                  ## imm = 0x1003D0
	callq	_nvkm_rd32
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	$1049520, %r14d                 ## imm = 0x1003B0
	movl	$1049476, %r15d                 ## imm = 0x100384
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	leal	-8(%r15), %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_calc_ref
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_nvkm_wr32
	leal	-4(%r15), %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_calc_ref
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_nvkm_wr32
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	$2, %ecx
	callq	_calc_ref
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_nvkm_wr32
	leal	-4(%r14), %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_calc_ref
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movq	%r12, %r13
	movl	%eax, %edx
	callq	_nvkm_wr32
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	$1, %edx
	movl	$1, %ecx
	callq	_calc_ref
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_nvkm_wr32
	addl	$8, %r14d
	addl	$12, %r15d
	decl	%ebx
	jne	LBB0_3
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv30_fb_init                   ; -- Begin function nv30_fb_init
	.p2align	2
_nv30_fb_init:                          ; @nv30_fb_init
	.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
	ldr	x20, [x0]
	ldr	w8, [x20]
	cmp	w8, #53
	mov	w9, #1
	lsl	x9, x9, x8
	mov	x10, #9851624184872960
	and	x9, x9, x10
	ccmp	x9, #0, #4, ls
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
	mov	w21, #900
	movk	w21, #16, lsl #16
	mov	w9, #4
	mov	w10, #2
	cmp	w8, #49
	csel	w25, w10, w9, eq
	add	w1, w21, #76
	mov	x0, x20
	bl	_nvkm_rd32
	mov	x22, x0
	add	w23, w21, #44
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w24, w21, #8
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	mov	w3, #0
	bl	_calc_ref
	mov	x2, x0
	mov	x0, x20
	mov	x1, x24
	bl	_nvkm_wr32
	sub	w24, w21, #4
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	mov	w3, #1
	bl	_calc_ref
	mov	x2, x0
	mov	x0, x20
	mov	x1, x24
	bl	_nvkm_wr32
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	mov	w3, #2
	bl	_calc_ref
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_nvkm_wr32
	sub	w24, w23, #4
	mov	x0, x19
	mov	x1, x22
	mov	w2, #1
	mov	w3, #0
	bl	_calc_ref
	mov	x2, x0
	mov	x0, x20
	mov	x1, x24
	bl	_nvkm_wr32
	mov	x0, x19
	mov	x1, x22
	mov	w2, #1
	mov	w3, #1
	bl	_calc_ref
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_nvkm_wr32
	add	w23, w23, #8
	add	w21, w21, #12
	subs	w25, w25, #1
	b.ne	LBB0_2
LBB0_3:
	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
.subsections_via_symbols
