	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_disp_base_init
_nv50_disp_base_init:                   ## @nv50_disp_base_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, %r14
	movq	(%rdi), %r15
	addq	$4, %rdi
	callq	_nouveau_parent_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movq	%r15, %rdi
	movl	$6373380, %esi                  ## imm = 0x614004
	callq	_nv_rd32
	movq	%r15, %rdi
	movl	$6357380, %esi                  ## imm = 0x610184
	movl	%eax, %edx
	callq	_nv_wr32
	cmpl	$0, 8(%r15)
	jle	LBB0_4
## %bb.2:
	xorl	%r13d, %r13d
	movl	$6381824, %r12d                 ## imm = 0x616100
	movl	$6357392, %ebx                  ## imm = 0x610190
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_nv_rd32
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_nv_wr32
	leal	4(%r12), %esi
	movq	%r15, %rdi
	callq	_nv_rd32
	leal	4(%rbx), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_nv_wr32
	leal	8(%r12), %esi
	movq	%r15, %rdi
	callq	_nv_rd32
	leal	8(%rbx), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_nv_wr32
	leal	12(%r12), %esi
	movq	%r15, %rdi
	callq	_nv_rd32
	leal	12(%rbx), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_nv_wr32
	incl	%r13d
	addl	$2048, %r12d                    ## imm = 0x800
	addl	$16, %ebx
	cmpl	8(%r15), %r13d
	jl	LBB0_3
LBB0_4:
	cmpl	$0, 4(%r15)
	jle	LBB0_7
## %bb.5:
	xorl	%r13d, %r13d
	movl	$6357456, %r12d                 ## imm = 0x6101D0
	movl	$6397952, %ebx                  ## imm = 0x61A000
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_nv_rd32
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_nv_wr32
	incl	%r13d
	addl	$4, %r12d
	addl	$2048, %ebx                     ## imm = 0x800
	cmpl	4(%r15), %r13d
	jl	LBB0_6
LBB0_7:
	cmpl	$0, (%r15)
	jle	LBB0_10
## %bb.8:
	xorl	%r13d, %r13d
	movl	$6357472, %r12d                 ## imm = 0x6101E0
	movl	$6406144, %ebx                  ## imm = 0x61C000
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_nv_rd32
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_nv_wr32
	incl	%r13d
	addl	$4, %r12d
	addl	$2048, %ebx                     ## imm = 0x800
	cmpl	(%r15), %r13d
	jl	LBB0_9
LBB0_10:
	movq	%r15, %rdi
	movl	$6414336, %esi                  ## imm = 0x61E000
	callq	_nv_rd32
	movq	%r15, %rdi
	movl	$6357488, %esi                  ## imm = 0x6101F0
	movl	%eax, %edx
	callq	_nv_wr32
	movq	%r15, %rdi
	movl	$6416384, %esi                  ## imm = 0x61E800
	callq	_nv_rd32
	movq	%r15, %rdi
	movl	$6357492, %esi                  ## imm = 0x6101F4
	movl	%eax, %edx
	callq	_nv_wr32
	movq	%r15, %rdi
	movl	$6418432, %esi                  ## imm = 0x61F000
	callq	_nv_rd32
	movq	%r15, %rdi
	movl	$6357496, %esi                  ## imm = 0x6101F8
	movl	%eax, %edx
	callq	_nv_wr32
	movq	%r15, %rdi
	movl	$6357028, %esi                  ## imm = 0x610024
	callq	_nv_rd32
	testl	$256, %eax                      ## imm = 0x100
	je	LBB0_13
## %bb.11:
	movq	%r15, %rdi
	movl	$6357028, %esi                  ## imm = 0x610024
	movl	$256, %edx                      ## imm = 0x100
	callq	_nv_wr32
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	$6395112, %esi                  ## imm = 0x6194E8
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_nv_mask
	movq	%r15, %rdi
	movl	$6395112, %esi                  ## imm = 0x6194E8
	movl	$2, %edx
	xorl	%ecx, %ecx
	callq	_nv_wait
	testl	%eax, %eax
	je	LBB0_12
LBB0_13:
	movl	(%r14), %edi
	callq	_nv_gpuobj
	movl	(%rax), %edx
	sarl	$8, %edx
	orl	$9, %edx
	movq	%r15, %rdi
	movl	$6357008, %esi                  ## imm = 0x610010
	callq	_nv_wr32
	movq	%r15, %rdi
	movl	$6357036, %esi                  ## imm = 0x61002C
	movl	$880, %edx                      ## imm = 0x370
	callq	_nv_wr32
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	$6357032, %esi                  ## imm = 0x610028
	xorl	%edx, %edx
	callq	_nv_wr32
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_nv_error
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timeout acquiring display\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_nv50_disp_base_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_disp_base_init
_nv50_disp_base_init:                   ; @nv50_disp_base_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	x20, x0
	ldr	x19, [x0], #4
	bl	_nouveau_parent_init
	cbnz	w0, LBB0_14
; %bb.1:
	mov	w23, #36
	movk	w23, #97, lsl #16
	mov	x0, x19
	mov	w1, #16388
	movk	w1, #97, lsl #16
	bl	_nv_rd32
	mov	x2, x0
	add	w1, w23, #352
	mov	x0, x19
	bl	_nv_wr32
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w24, #0
	add	w21, w23, #364
	mov	w22, #24832
	movk	w22, #97, lsl #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_nv_rd32
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_nv_wr32
	add	w1, w22, #4
	mov	x0, x19
	bl	_nv_rd32
	mov	x2, x0
	add	w1, w21, #4
	mov	x0, x19
	bl	_nv_wr32
	add	w1, w22, #8
	mov	x0, x19
	bl	_nv_rd32
	mov	x2, x0
	add	w1, w21, #8
	mov	x0, x19
	bl	_nv_wr32
	add	w1, w22, #12
	mov	x0, x19
	bl	_nv_rd32
	mov	x2, x0
	add	w1, w21, #12
	mov	x0, x19
	bl	_nv_wr32
	add	w24, w24, #1
	ldr	w8, [x19, #8]
	add	w22, w22, #2048
	add	w21, w21, #16
	cmp	w24, w8
	b.lt	LBB0_3
LBB0_4:
	mov	w8, #38120
	movk	w8, #97, lsl #16
	ldr	w9, [x19, #4]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.5:
	mov	w24, #0
	add	w21, w23, #428
	add	w22, w8, #2840
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_nv_rd32
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_nv_wr32
	add	w24, w24, #1
	ldr	w8, [x19, #4]
	add	w21, w21, #4
	add	w22, w22, #2048
	cmp	w24, w8
	b.lt	LBB0_6
LBB0_7:
	mov	w24, #49152
	movk	w24, #97, lsl #16
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	w25, #0
	add	w21, w23, #444
	mov	w22, #49152
	movk	w22, #97, lsl #16
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_nv_rd32
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_nv_wr32
	add	w25, w25, #1
	ldr	w8, [x19]
	add	w21, w21, #4
	add	w22, w22, #2048
	cmp	w25, w8
	b.lt	LBB0_9
LBB0_10:
	add	w1, w24, #2, lsl #12            ; =8192
	mov	x0, x19
	bl	_nv_rd32
	mov	x2, x0
	add	w1, w23, #460
	mov	x0, x19
	bl	_nv_wr32
	mov	w21, #59392
	movk	w21, #97, lsl #16
	mov	x0, x19
	mov	w1, #59392
	movk	w1, #97, lsl #16
	bl	_nv_rd32
	mov	x2, x0
	add	w1, w23, #464
	mov	x0, x19
	bl	_nv_wr32
	add	w1, w21, #2048
	mov	x0, x19
	bl	_nv_rd32
	mov	x2, x0
	add	w1, w23, #468
	mov	x0, x19
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #36
	movk	w1, #97, lsl #16
	bl	_nv_rd32
	tbz	w0, #8, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	w1, #36
	movk	w1, #97, lsl #16
	mov	w2, #256
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #38120
	movk	w1, #97, lsl #16
	mov	w2, #1
	mov	w3, #0
	bl	_nv_mask
	mov	x0, x19
	mov	w1, #38120
	movk	w1, #97, lsl #16
	mov	w2, #2
	mov	w3, #0
	bl	_nv_wait
	cbz	w0, LBB0_13
LBB0_12:
	ldr	w0, [x20]
	bl	_nv_gpuobj
	ldr	w8, [x0]
	mov	w9, #9
	orr	w2, w9, w8, asr #8
	sub	w1, w23, #20
	mov	x0, x19
	bl	_nv_wr32
	add	w1, w23, #8
	mov	x0, x19
	mov	w2, #880
	bl	_nv_wr32
	add	w1, w23, #4
	mov	x0, x19
	mov	w2, #0
	bl	_nv_wr32
	mov	w0, #0
	b	LBB0_14
LBB0_13:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nv_error
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timeout acquiring display\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_nv50_disp_base_init
.subsections_via_symbols
