	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_graph_init
_nv50_graph_init:                       ## @nv50_graph_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	addq	$4, %rdi
	callq	_nouveau_graph_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.1:
	movq	%r15, %rdi
	movl	$4194444, %esi                  ## imm = 0x40008C
	movl	$4, %edx
	callq	_nv_wr32
	movq	%r15, %rdi
	movl	$4196356, %esi                  ## imm = 0x400804
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	movq	%r15, %rdi
	movl	$4220928, %esi                  ## imm = 0x406800
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	movq	%r15, %rdi
	movl	$4197380, %esi                  ## imm = 0x400C04
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	movq	%r15, %rdi
	movl	$4200448, %esi                  ## imm = 0x401800
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	movq	%r15, %rdi
	movl	$4214808, %esi                  ## imm = 0x405018
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	movq	%r15, %rdi
	movl	$4202496, %esi                  ## imm = 0x402000
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	movq	%r15, %rdi
	movl	$5440, %esi                     ## imm = 0x1540
	callq	_nv_rd32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	movl	$4229376, %ebx                  ## imm = 0x408900
	movl	$4227868, %r14d                 ## imm = 0x40831C
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	740(%r14), %esi
	movq	%r15, %rdi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	leal	1004(%r14), %esi
	movq	%r15, %rdi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	movl	%r14d, %r12d
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	addl	$4096, %ebx                     ## imm = 0x1000
	addl	$2048, %r14d                    ## imm = 0x800
	cmpl	$4294912, %ebx                  ## imm = 0x418900
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	btl	%r13d, %eax
	jae	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_nv_device
	cmpl	$159, (%rax)
	jg	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %r12d
	shll	$12, %r12d
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	leal	1288(%rbx), %esi
	movq	%r15, %rdi
	movl	$-1073741824, %edx              ## imm = 0xC0000000
	callq	_nv_wr32
	addl	$4227860, %r12d                 ## imm = 0x408314
	jmp	LBB0_6
LBB0_8:
	movq	%r15, %rdi
	movl	$4194568, %esi                  ## imm = 0x400108
	movl	$-1, %edx
	callq	_nv_wr32
	movq	%r15, %rdi
	movl	$4194616, %esi                  ## imm = 0x400138
	movl	$-1, %edx
	callq	_nv_wr32
	movq	%r15, %rdi
	movl	$4194560, %esi                  ## imm = 0x400100
	movl	$-1, %edx
	callq	_nv_wr32
	movq	%r15, %rdi
	movl	$4194620, %esi                  ## imm = 0x40013C
	movl	$-1, %edx
	callq	_nv_wr32
	movq	%r15, %rdi
	movl	$4195584, %esi                  ## imm = 0x400500
	movl	$65537, %edx                    ## imm = 0x10001
	callq	_nv_wr32
	movq	%r15, %rdi
	callq	_nv_device
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_nv50_grctx_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.9:
	movq	%r15, %rdi
	movl	$4196388, %esi                  ## imm = 0x400824
	xorl	%edx, %edx
	callq	_nv_wr32
	movq	%r15, %rdi
	movl	$4196392, %esi                  ## imm = 0x400828
	xorl	%edx, %edx
	callq	_nv_wr32
	movq	%r15, %rdi
	movl	$4196396, %esi                  ## imm = 0x40082C
	xorl	%edx, %edx
	callq	_nv_wr32
	movq	%r15, %rdi
	movl	$4196400, %esi                  ## imm = 0x400830
	xorl	%edx, %edx
	callq	_nv_wr32
	movq	%r15, %rdi
	movl	$4195116, %esi                  ## imm = 0x40032C
	xorl	%edx, %edx
	callq	_nv_wr32
	movq	%r15, %rdi
	movl	$4195120, %esi                  ## imm = 0x400330
	xorl	%edx, %edx
	callq	_nv_wr32
	movq	%r15, %rdi
	callq	_nv_device
	movl	$240, %ecx
	andl	(%rax), %ecx
	addl	$-80, %ecx
	shrl	$4, %ecx
	cmpl	$4, %ecx
	ja	LBB0_11
## %bb.10:
	movl	$2048, %ebx                     ## imm = 0x800
	movl	$25, %eax
	btl	%ecx, %eax
	jae	LBB0_11
LBB0_15:
	movq	%r15, %rdi
	movl	$4205736, %esi                  ## imm = 0x402CA8
	movl	%ebx, %edx
	callq	_nv_wr32
	movl	$4205600, %ebx                  ## imm = 0x402C20
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_nv_wr32
	leal	4(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_nv_wr32
	leal	8(%rbx), %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_nv_wr32
	addl	$12, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_nv_wr32
	movl	%r12d, %ebx
	cmpl	$4205664, %r12d                 ## imm = 0x402C60
	jne	LBB0_16
LBB0_17:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r15, %rdi
	movl	$4205760, %esi                  ## imm = 0x402CC0
	xorl	%edx, %edx
	callq	_nv_wr32
	movq	%r15, %rdi
	callq	_nv_device
	movl	$2050, %ebx                     ## imm = 0x802
	cmpl	$160, (%rax)
	je	LBB0_15
## %bb.12:
	movq	%r15, %rdi
	callq	_nv_device
	cmpl	$170, (%rax)
	je	LBB0_15
## %bb.13:
	movq	%r15, %rdi
	callq	_nv_device
	cmpl	$172, (%rax)
	je	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	movl	$4205760, %esi                  ## imm = 0x402CC0
	xorl	%edx, %edx
	callq	_nv_wr32
	movl	$2, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv50_graph_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_graph_init
_nv50_graph_init:                       ; @nv50_graph_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
	mov	x19, x0
	add	x0, x0, #4
	bl	_nouveau_graph_init
	cbnz	w0, LBB0_19
; %bb.1:
	mov	w23, #33556
	movk	w23, #64, lsl #16
	mov	w22, #140
	movk	w22, #64, lsl #16
	mov	x0, x19
	mov	w1, #140
	movk	w1, #64, lsl #16
	mov	w2, #4
	bl	_nv_wr32
	add	w1, w22, #1912
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #26624
	movk	w1, #64, lsl #16
	mov	w2, #-1073741824
	bl	_nv_wr32
	add	w1, w22, #2936
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nv_wr32
	mov	w20, #6144
	movk	w20, #64, lsl #16
	mov	x0, x19
	mov	w1, #6144
	movk	w1, #64, lsl #16
	mov	w2, #-1073741824
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #20504
	movk	w1, #64, lsl #16
	mov	w2, #-1073741824
	bl	_nv_wr32
	add	w1, w20, #2048
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #5440
	bl	_nv_rd32
	mov	x20, x0
	mov	w24, #0
	orr	w25, w23, #0x8
	add	w21, w23, #2804
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w1, w25, #740
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nv_wr32
	add	w1, w25, #1004
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nv_wr32
	mov	x1, x25
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nv_wr32
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w24, w24, #1
	add	w25, w25, #2048
	add	w21, w21, #1, lsl #12           ; =4096
	cmp	w24, #16
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w20, w24
	tbz	w8, #0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_nv_device
	ldr	w8, [x0]
	cmp	w8, #159
	b.gt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w1, w21, #1288
	mov	x0, x19
	mov	w2, #-1073741824
	bl	_nv_wr32
	mov	x0, x19
	mov	x1, x21
	mov	w2, #-1073741824
	bl	_nv_wr32
	add	w1, w23, w24, lsl #12
	b	LBB0_3
LBB0_8:
	add	w1, w22, #124
	mov	x0, x19
	mov	w2, #-1
	bl	_nv_wr32
	add	w1, w22, #172
	mov	x0, x19
	mov	w2, #-1
	bl	_nv_wr32
	add	w1, w22, #116
	mov	x0, x19
	mov	w2, #-1
	bl	_nv_wr32
	add	w1, w22, #176
	mov	x0, x19
	mov	w2, #-1
	bl	_nv_wr32
	add	w1, w22, #1140
	mov	x0, x19
	mov	w2, #65537
	bl	_nv_wr32
	mov	x0, x19
	bl	_nv_device
	mov	x1, x19
	bl	_nv50_grctx_init
	cbnz	w0, LBB0_19
; %bb.9:
	mov	w21, #11304
	movk	w21, #64, lsl #16
	add	w1, w22, #1944
	mov	x0, x19
	mov	w2, #0
	bl	_nv_wr32
	add	w1, w22, #1948
	mov	x0, x19
	mov	w2, #0
	bl	_nv_wr32
	add	w1, w22, #1952
	mov	x0, x19
	mov	w2, #0
	bl	_nv_wr32
	add	w1, w22, #1956
	mov	x0, x19
	mov	w2, #0
	bl	_nv_wr32
	add	w1, w22, #672
	mov	x0, x19
	mov	w2, #0
	bl	_nv_wr32
	add	w1, w22, #676
	mov	x0, x19
	mov	w2, #0
	bl	_nv_wr32
	mov	x0, x19
	bl	_nv_device
	ldr	w8, [x0]
	and	w8, w8, #0xf0
	sub	w8, w8, #80
	lsr	w8, w8, #4
	cmp	w8, #4
	b.hi	LBB0_12
; %bb.10:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #25
	tst	w8, w9
	b.eq	LBB0_12
; %bb.11:
	mov	w2, #2048
	b	LBB0_16
LBB0_12:
	add	w1, w21, #152
	mov	x0, x19
	mov	w2, #0
	bl	_nv_wr32
	mov	x0, x19
	bl	_nv_device
	ldr	w8, [x0]
	cmp	w8, #160
	b.eq	LBB0_15
; %bb.13:
	mov	x0, x19
	bl	_nv_device
	ldr	w8, [x0]
	cmp	w8, #170
	b.eq	LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_nv_device
	ldr	w8, [x0]
	cmp	w8, #172
	b.ne	LBB0_20
LBB0_15:
	mov	w2, #2050
LBB0_16:
	add	w1, w21, #128
	mov	x0, x19
	bl	_nv_wr32
	mov	w22, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	add	w20, w22, w21
	sub	w1, w20, #8
	mov	x0, x19
	mov	w2, #0
	bl	_nv_wr32
	sub	w1, w20, #4
	mov	x0, x19
	mov	w2, #0
	bl	_nv_wr32
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_nv_wr32
	add	w1, w20, #4
	mov	x0, x19
	mov	w2, #0
	bl	_nv_wr32
	add	w22, w22, #8
	cmp	w22, #64
	b.ne	LBB0_17
; %bb.18:
	mov	w0, #0
LBB0_19:
	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
LBB0_20:
	add	w1, w21, #152
	mov	x0, x19
	mov	w2, #0
	bl	_nv_wr32
	mov	w2, #2
	b	LBB0_16
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nv50_graph_init
.subsections_via_symbols
