	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_instobj_ctor
_nv50_instobj_ctor:                     ## @nv50_instobj_ctor
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movl	%r8d, %ebx
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_nouveau_fb
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addl	$4095, %ebx                     ## imm = 0xFFF
	andl	$-4096, %ebx                    ## imm = 0xF000
	movl	%ebx, %edi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_max
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	addl	$4095, %r12d                    ## imm = 0xFFF
	andl	$-4096, %r12d                   ## imm = 0xF000
	movl	%r12d, %edi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_max
	movl	%eax, %r12d
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_nouveau_instobj_create
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	callq	_nv_object
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.1:
	movq	-48(%rbp), %r9
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	movl	$2048, %r8d                     ## imm = 0x800
	callq	*(%rdi)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rax
	movq	(%rax), %rcx
	movl	8(%rcx), %edx
	movl	%edx, 12(%rax)
	movl	(%rcx), %edx
	shll	$12, %edx
	movl	%edx, 8(%rax)
	movl	$12, 4(%rcx)
	xorl	%ebx, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv50_instobj_ctor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_instobj_ctor
_nv50_instobj_ctor:                     ; @nv50_instobj_ctor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x23, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x24, x1
	mov	x25, x0
	bl	_nouveau_fb
	mov	x19, x0
	add	w8, w20, #4095
	and	w0, w8, #0xfffff000
	mov	w1, #4096
	bl	_max
	mov	x20, x0
	add	w8, w21, #4095
	and	w0, w8, #0xfffff000
	mov	w1, #4096
	bl	_max
	mov	x21, x0
	add	x3, sp, #8
	mov	x0, x25
	mov	x1, x24
	mov	x2, x22
	bl	_nouveau_instobj_create
	mov	x22, x0
	ldr	x0, [sp, #8]
	bl	_nv_object
	str	x0, [x23]
	cbnz	w22, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	ldr	x5, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w3, #0
	mov	w4, #2048
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	x9, [x8]
	ldr	w10, [x9, #8]
	ldr	w11, [x9]
	lsl	w11, w11, #12
	stp	w11, w10, [x8, #8]
	mov	w8, #12
	str	w8, [x9, #4]
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nv50_instobj_ctor
.subsections_via_symbols
