	.file	"extr_nvd0.c_nvd0_disp_mast_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"init: 0x%08x\n"
	.text
	.p2align 4
	.type	nvd0_disp_mast_init, @function
nvd0_disp_mast_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	r12, QWORD PTR [rdi]
	add	rdi, 4
	call	nv50_disp_chan_init@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L5
.L1:
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	ecx, 1
	mov	edx, 1
	mov	esi, 6357136
	mov	rdi, r12
	call	nv_mask@PLT
	mov	ecx, 1
	mov	edx, 1
	mov	rdi, r12
	mov	esi, 6357152
	call	nv_mask@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	esi, 6358164
	mov	rdi, r12
	call	nv_wr32@PLT
	mov	edx, 65536
	mov	esi, 6358168
	mov	rdi, r12
	call	nv_wr32@PLT
	mov	edx, 1
	mov	esi, 6358172
	mov	rdi, r12
	call	nv_wr32@PLT
	mov	ecx, 16
	mov	edx, 16
	mov	rdi, r12
	mov	esi, 6358160
	call	nv_mask@PLT
	xor	edx, edx
	mov	esi, 6553600
	mov	rdi, r12
	call	nv_wr32@PLT
	mov	edx, 16777235
	mov	esi, 6358160
	mov	rdi, r12
	call	nv_wr32@PLT
	xor	ecx, ecx
	mov	edx, -2147483648
	mov	rdi, r12
	mov	esi, 6358160
	call	nv_wait@PLT
	test	eax, eax
	jne	.L1
	mov	esi, 6358160
	mov	rdi, r12
	call	nv_rd32@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	nv_error@PLT
	mov	r13d, DWORD PTR EBUSY[rip]
	neg	r13d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	nvd0_disp_mast_init, .-nvd0_disp_mast_init
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_nvd0.c_nvd0_disp_mast_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"init: 0x%08x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nvd0_disp_mast_init, %function
nvd0_disp_mast_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	ldr	r5, [r0], #4
	bl	nv50_disp_chan_init
	subs	r4, r0, #0
	beq	.L5
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L5:
	mov	r3, #1
	ldr	r1, .L6
	mov	r2, r3
	mov	r0, r5
	bl	nv_mask
	mov	r3, #1
	ldr	r1, .L6+4
	mov	r2, r3
	mov	r0, r5
	bl	nv_mask
	ldr	r2, [r6]
	ldr	r1, .L6+8
	mov	r0, r5
	bl	nv_wr32
	mov	r2, #65536
	ldr	r1, .L6+12
	mov	r0, r5
	bl	nv_wr32
	mov	r2, #1
	ldr	r1, .L6+16
	mov	r0, r5
	bl	nv_wr32
	mov	r3, #16
	ldr	r1, .L6+20
	mov	r2, r3
	mov	r0, r5
	bl	nv_mask
	mov	r2, r4
	mov	r1, #6553600
	mov	r0, r5
	bl	nv_wr32
	ldr	r2, .L6+24
	ldr	r1, .L6+20
	mov	r0, r5
	bl	nv_wr32
	mov	r3, r4
	mov	r2, #-2147483648
	mov	r0, r5
	ldr	r1, .L6+20
	bl	nv_wait
	cmp	r0, #0
	bne	.L1
	ldr	r1, .L6+20
	mov	r0, r5
	bl	nv_rd32
	ldr	r1, .L6+28
	mov	r2, r0
	mov	r0, r6
	bl	nv_error
	ldr	r3, .L6+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L7:
	.align	2
.L6:
	.word	6357136
	.word	6357152
	.word	6358164
	.word	6358168
	.word	6358172
	.word	6358160
	.word	16777235
	.word	.LC0
	.word	EBUSY
	.size	nvd0_disp_mast_init, .-nvd0_disp_mast_init
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
