	.file	"extr_vc4_v3d.c_vc4_v3d_bind.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed to get V3D clock: %d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"V3D_IDENT0 read 0x%08x instead of 0x%08x\n"
	.align 8
.LC2:
	.string	"Failed to install IRQ handler\n"
	.section	.rodata.str1.1
.LC3:
	.string	"v3d_ident"
.LC4:
	.string	"v3d_regs"
	.text
	.p2align 4
	.type	vc4_v3d_bind, @function
vc4_v3d_bind:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	call	to_platform_device@PLT
	mov	rdi, r12
	mov	rbp, rax
	call	dev_get_drvdata@PLT
	mov	rdi, rax
	mov	r15, rax
	call	to_vc4_dev@PLT
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 48
	mov	rdi, rbp
	mov	r14, rax
	call	devm_kzalloc@PLT
	test	rax, rax
	je	.L14
	mov	r12, rax
	mov	rsi, rax
	mov	rdi, r13
	call	dev_set_drvdata@PLT
	mov	QWORD PTR 40[r12], rbp
	xor	esi, esi
	mov	rdi, rbp
	call	vc4_ioremap_regs@PLT
	mov	QWORD PTR 32[r12], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L15
	mov	edi, DWORD PTR v3d_regs[rip]
	mov	rax, QWORD PTR 32[r12]
	mov	DWORD PTR 4[r12], edi
	mov	QWORD PTR 8[r12], rax
	call	ARRAY_SIZE@PLT
	xor	esi, esi
	mov	rdi, r13
	mov	DWORD PTR [r12], eax
	mov	QWORD PTR [r14], r12
	mov	QWORD PTR 24[r12], r14
	call	devm_clk_get@PLT
	mov	QWORD PTR 16[r12], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	je	.L5
	mov	rdi, QWORD PTR 16[r12]
	call	PTR_ERR@PLT
	mov	r14d, eax
	add	eax, DWORD PTR ENOENT[rip]
	je	.L16
	mov	eax, r14d
	add	eax, DWORD PTR EPROBE_DEFER[rip]
	je	.L1
	mov	edx, r14d
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, QWORD PTR 32[r12]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	QWORD PTR 16[r12], 0
.L5:
	mov	edi, DWORD PTR V3D_IDENT0[rip]
	call	V3D_READ@PLT
	mov	r14, QWORD PTR V3D_EXPECTED_IDENT0[rip]
	cmp	rax, r14
	jne	.L17
	mov	rdi, QWORD PTR 16[r12]
	call	clk_prepare_enable@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR V3D_BPOA[rip]
	xor	esi, esi
	call	V3D_WRITE@PLT
	mov	edi, DWORD PTR V3D_BPOS[rip]
	xor	esi, esi
	call	V3D_WRITE@PLT
	mov	rdi, r15
	call	vc4_v3d_init_hw@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	platform_get_irq@PLT
	mov	rdi, r15
	mov	esi, eax
	call	drm_irq_install@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L18
	mov	rdi, r13
	call	pm_runtime_set_active@PLT
	mov	rdi, r13
	call	pm_runtime_use_autosuspend@PLT
	mov	esi, 40
	mov	rdi, r13
	call	pm_runtime_set_autosuspend_delay@PLT
	mov	rdi, r13
	call	pm_runtime_enable@PLT
	mov	edx, DWORD PTR vc4_v3d_debugfs_ident[rip]
	mov	rdi, r15
	xor	ecx, ecx
	lea	rsi, .LC3[rip]
	call	vc4_debugfs_add_file@PLT
	mov	rdx, r12
	lea	rsi, .LC4[rip]
	mov	rdi, r15
	call	vc4_debugfs_add_regset32@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r14d, DWORD PTR ENOMEM[rip]
	neg	r14d
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	edi, DWORD PTR V3D_IDENT0[rip]
	call	V3D_READ@PLT
	mov	rdx, r14
	lea	rdi, .LC1[rip]
	mov	rsi, rax
	xor	eax, eax
	call	DRM_ERROR@PLT
	mov	r14d, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	neg	r14d
	mov	eax, r14d
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	vc4_v3d_bind, .-vc4_v3d_bind
	.comm	vc4_v3d_debugfs_ident,4,4
	.comm	v3d_regs,4,4
	.comm	V3D_IDENT0,4,4
	.comm	V3D_EXPECTED_IDENT0,8,8
	.comm	V3D_BPOS,4,4
	.comm	V3D_BPOA,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EPROBE_DEFER,4,4
	.comm	ENOMEM,4,4
	.comm	ENOENT,4,4
	.comm	EINVAL,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_vc4_v3d.c_vc4_v3d_bind.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to get V3D clock: %d\012\000"
	.align	2
.LC1:
	.ascii	"V3D_IDENT0 read 0x%08x instead of 0x%08x\012\000"
	.align	2
.LC2:
	.ascii	"Failed to install IRQ handler\012\000"
	.align	2
.LC3:
	.ascii	"v3d_ident\000"
	.align	2
.LC4:
	.ascii	"v3d_regs\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vc4_v3d_bind, %function
vc4_v3d_bind:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r7, r0
	bl	to_platform_device
	mov	r6, r0
	mov	r0, r4
	bl	dev_get_drvdata
	mov	r9, r0
	bl	to_vc4_dev
	ldr	r2, .L18
	mov	r5, r0
	mov	r1, #28
	mov	r0, r6
	ldr	r2, [r2]
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L14
	mov	r1, r4
	mov	r0, r7
	bl	dev_set_drvdata
	mov	r1, #0
	mov	r0, r6
	str	r6, [r4, #24]
	bl	vc4_ioremap_regs
	str	r0, [r4, #20]
	bl	IS_ERR
	subs	r8, r0, #0
	bne	.L15
	ldr	r2, .L18+4
	ldr	r3, [r4, #20]
	ldr	r0, [r2]
	stmib	r4, {r0, r3}
	bl	ARRAY_SIZE
	mov	r1, r8
	str	r0, [r4]
	str	r4, [r5]
	mov	r0, r7
	str	r5, [r4, #16]
	bl	devm_clk_get
	str	r0, [r4, #12]
	bl	IS_ERR
	cmp	r0, #0
	beq	.L5
	ldr	r0, [r4, #12]
	bl	PTR_ERR
	ldr	r3, .L18+8
	mov	r5, r0
	ldr	r3, [r3]
	cmn	r0, r3
	streq	r8, [r4, #12]
	beq	.L5
	ldr	r3, .L18+12
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L1
	mov	r0, r7
	mov	r2, r5
	ldr	r1, .L18+16
	bl	dev_err
	b	.L1
.L15:
	ldr	r0, [r4, #20]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	PTR_ERR
.L5:
	ldr	r8, .L18+20
	ldr	r5, .L18+24
	ldr	r0, [r8]
	bl	V3D_READ
	ldr	r3, [r5]
	cmp	r0, r3
	bne	.L16
	ldr	r0, [r4, #12]
	bl	clk_prepare_enable
	subs	r5, r0, #0
	bne	.L1
	ldr	r3, .L18+28
	mov	r1, r5
	ldr	r0, [r3]
	bl	V3D_WRITE
	ldr	r3, .L18+32
	mov	r1, r5
	ldr	r0, [r3]
	bl	V3D_WRITE
	mov	r0, r9
	bl	vc4_v3d_init_hw
	mov	r1, r5
	mov	r0, r6
	bl	platform_get_irq
	mov	r1, r0
	mov	r0, r9
	bl	drm_irq_install
	subs	r5, r0, #0
	bne	.L17
	mov	r0, r7
	bl	pm_runtime_set_active
	mov	r0, r7
	bl	pm_runtime_use_autosuspend
	mov	r1, #40
	mov	r0, r7
	bl	pm_runtime_set_autosuspend_delay
	mov	r0, r7
	bl	pm_runtime_enable
	ldr	r2, .L18+36
	mov	r3, r5
	mov	r0, r9
	ldr	r2, [r2]
	ldr	r1, .L18+40
	bl	vc4_debugfs_add_file
	mov	r2, r4
	mov	r0, r9
	ldr	r1, .L18+44
	bl	vc4_debugfs_add_regset32
	b	.L1
.L14:
	ldr	r3, .L18+48
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	ldr	r0, [r8]
	bl	V3D_READ
	ldr	r2, [r5]
	mov	r1, r0
	ldr	r0, .L18+52
	bl	DRM_ERROR
	ldr	r3, .L18+56
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	ldr	r0, .L18+60
	bl	DRM_ERROR
	b	.L1
.L19:
	.align	2
.L18:
	.word	GFP_KERNEL
	.word	v3d_regs
	.word	ENOENT
	.word	EPROBE_DEFER
	.word	.LC0
	.word	V3D_IDENT0
	.word	V3D_EXPECTED_IDENT0
	.word	V3D_BPOA
	.word	V3D_BPOS
	.word	vc4_v3d_debugfs_ident
	.word	.LC3
	.word	.LC4
	.word	ENOMEM
	.word	.LC1
	.word	EINVAL
	.word	.LC2
	.size	vc4_v3d_bind, .-vc4_v3d_bind
	.comm	vc4_v3d_debugfs_ident,4,4
	.comm	v3d_regs,4,4
	.comm	V3D_IDENT0,4,4
	.comm	V3D_EXPECTED_IDENT0,4,4
	.comm	V3D_BPOS,4,4
	.comm	V3D_BPOA,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EPROBE_DEFER,4,4
	.comm	ENOMEM,4,4
	.comm	ENOENT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
