	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_v3d_bind
_vc4_v3d_bind:                          ## @vc4_v3d_bind
	.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	%rsi, %rbx
	movq	%rdi, %r15
	callq	_to_platform_device
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_to_vc4_dev
	movq	%rax, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	movq	%r12, 40(%rbx)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vc4_ioremap_regs
	movq	%rax, 32(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	32(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
LBB0_4:
	subl	(%rax), %r13d
LBB0_5:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rdi, 8(%rbx)
	movq	_v3d_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, (%rbx)
	movq	%rbx, (%r13)
	movq	%r13, 24(%rbx)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	16(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	jne	LBB0_14
## %bb.8:
	movq	$0, 16(%rbx)
LBB0_9:
	movq	_V3D_IDENT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_V3D_READ
	movq	_V3D_EXPECTED_IDENT0@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_13
## %bb.10:
	movq	16(%rbx), %rdi
	callq	_clk_prepare_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.11:
	movq	_V3D_BPOA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	_V3D_WRITE
	movq	_V3D_BPOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_V3D_WRITE
	movq	%r14, %rdi
	callq	_vc4_v3d_init_hw
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_drm_irq_install
	testl	%eax, %eax
	je	LBB0_16
## %bb.12:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movl	%r12d, %r13d
	jmp	LBB0_5
LBB0_13:
	movq	_V3D_IDENT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_V3D_READ
	movq	(%r13), %rdx
	leaq	L_.str.1(%rip), %rdi
	xorl	%r13d, %r13d
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_14:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	je	LBB0_5
## %bb.15:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_dev_err
	jmp	LBB0_5
LBB0_16:
	movq	%r15, %rdi
	callq	_pm_runtime_set_active
	movq	%r15, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	%r15, %rdi
	movl	$40, %esi
	callq	_pm_runtime_set_autosuspend_delay
	movq	%r15, %rdi
	callq	_pm_runtime_enable
	movq	_vc4_v3d_debugfs_ident@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_vc4_debugfs_add_file
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_vc4_debugfs_add_regset32
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_v3d_regs,4,2                   ## @v3d_regs
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get V3D clock: %d\n"

	.comm	_V3D_IDENT0,4,2                 ## @V3D_IDENT0
	.comm	_V3D_EXPECTED_IDENT0,8,3        ## @V3D_EXPECTED_IDENT0
L_.str.1:                               ## @.str.1
	.asciz	"V3D_IDENT0 read 0x%08x instead of 0x%08x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V3D_BPOA,4,2                   ## @V3D_BPOA
	.comm	_V3D_BPOS,4,2                   ## @V3D_BPOS
L_.str.2:                               ## @.str.2
	.asciz	"Failed to install IRQ handler\n"

L_.str.3:                               ## @.str.3
	.asciz	"v3d_ident"

	.comm	_vc4_v3d_debugfs_ident,4,2      ## @vc4_v3d_debugfs_ident
L_.str.4:                               ## @.str.4
	.asciz	"v3d_regs"

	.no_dead_strip	_vc4_v3d_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_v3d_bind
_vc4_v3d_bind:                          ; @vc4_v3d_bind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_to_platform_device
	mov	x22, x0
	mov	x0, x20
	bl	_dev_get_drvdata
	mov	x20, x0
	bl	_to_vc4_dev
	mov	x23, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_dev_set_drvdata
	str	x22, [x21, #40]
	mov	x0, x22
	mov	w1, #0
	bl	_vc4_ioremap_regs
	str	x0, [x21, #32]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x21, #32]
	cbz	x8, LBB0_6
; %bb.2:
	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
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_5:
	mov	x0, x23
	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
	add	sp, sp, #80
	ret
LBB0_6:
	str	x0, [x21, #8]
Lloh5:
	adrp	x8, _v3d_regs@GOTPAGE
Lloh6:
	ldr	x8, [x8, _v3d_regs@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	str	w0, [x21, #4]
	bl	_ARRAY_SIZE
	str	w0, [x21]
	str	x21, [x23]
	str	x23, [x21, #24]
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	x0, [x21, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x0, [x21, #16]
	bl	_PTR_ERR
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_14
; %bb.8:
	str	xzr, [x21, #16]
LBB0_9:
Lloh11:
	adrp	x23, _V3D_IDENT0@GOTPAGE
Lloh12:
	ldr	x23, [x23, _V3D_IDENT0@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_V3D_READ
Lloh13:
	adrp	x24, _V3D_EXPECTED_IDENT0@GOTPAGE
Lloh14:
	ldr	x24, [x24, _V3D_EXPECTED_IDENT0@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.10:
	ldr	x0, [x21, #16]
	bl	_clk_prepare_enable
	mov	x23, x0
	cbnz	w0, LBB0_5
; %bb.11:
Lloh15:
	adrp	x8, _V3D_BPOA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V3D_BPOA@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_V3D_WRITE
Lloh18:
	adrp	x8, _V3D_BPOS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _V3D_BPOS@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_V3D_WRITE
	mov	x0, x20
	bl	_vc4_v3d_init_hw
	mov	x0, x22
	mov	w1, #0
	bl	_platform_get_irq
	mov	x1, x0
	mov	x0, x20
	bl	_drm_irq_install
	mov	x23, x0
	cbz	w0, LBB0_16
; %bb.12:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_5
LBB0_13:
	ldr	w0, [x23]
	bl	_V3D_READ
	ldr	x8, [x24]
	stp	x0, x8, [sp]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_14:
	mov	x23, x0
Lloh27:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_5
; %bb.15:
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_dev_err
	b	LBB0_5
LBB0_16:
	mov	x0, x19
	bl	_pm_runtime_set_active
	mov	x0, x19
	bl	_pm_runtime_use_autosuspend
	mov	x0, x19
	mov	w1, #40
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x19
	bl	_pm_runtime_enable
Lloh32:
	adrp	x8, _vc4_v3d_debugfs_ident@GOTPAGE
Lloh33:
	ldr	x8, [x8, _vc4_v3d_debugfs_ident@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x3, #0
	bl	_vc4_debugfs_add_file
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_vc4_debugfs_add_regset32
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_v3d_regs,4,2                   ; @v3d_regs
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get V3D clock: %d\n"

	.comm	_V3D_IDENT0,4,2                 ; @V3D_IDENT0
	.comm	_V3D_EXPECTED_IDENT0,8,3        ; @V3D_EXPECTED_IDENT0
l_.str.1:                               ; @.str.1
	.asciz	"V3D_IDENT0 read 0x%08x instead of 0x%08x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V3D_BPOA,4,2                   ; @V3D_BPOA
	.comm	_V3D_BPOS,4,2                   ; @V3D_BPOS
l_.str.2:                               ; @.str.2
	.asciz	"Failed to install IRQ handler\n"

l_.str.3:                               ; @.str.3
	.asciz	"v3d_ident"

	.comm	_vc4_v3d_debugfs_ident,4,2      ; @vc4_v3d_debugfs_ident
l_.str.4:                               ; @.str.4
	.asciz	"v3d_regs"

	.no_dead_strip	_vc4_v3d_bind
.subsections_via_symbols
