	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_vec_bind
_vc4_vec_bind:                          ## @vc4_vec_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, %r14
	callq	_to_platform_device
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_to_vc4_dev
	movq	%rax, %r12
	movq	_tv_mode_names@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_ARRAY_SIZE
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_drm_mode_create_tv_properties
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r12
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	_VC4_ENCODER_TYPE_VEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	%r12, 8(%rax)
	movq	%rax, (%r12)
	movq	%r15, 32(%r12)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_vc4_ioremap_regs
	movl	%eax, 28(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	28(%r12), %edi
	testq	%rax, %rax
	je	LBB0_5
## %bb.13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%edi, 16(%r12)
	movq	_vec_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 12(%r12)
	callq	_ARRAY_SIZE
	movl	%eax, 8(%r12)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 24(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	24(%r12), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_11
## %bb.7:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_DRM_ERROR
	jmp	LBB0_11
LBB0_8:
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	(%r12), %rsi
	movq	_DRM_MODE_ENCODER_TVDAC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_vc4_vec_encoder_funcs@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%r8d, %r8d
	callq	_drm_encoder_init
	movq	(%r12), %rdi
	movq	_vc4_vec_encoder_helper_funcs@GOTPCREL(%rip), %rsi
	callq	_drm_encoder_helper_add
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_vc4_vec_connector_init
	movl	%eax, 20(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	20(%r12), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	(%r12), %rdi
	callq	_drm_encoder_cleanup
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	movl	%ebx, %eax
	jmp	LBB0_12
LBB0_10:
	movq	%r12, %r15
	addq	$8, %r15
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_dev_set_drvdata
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_vc4_debugfs_add_regset32
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_tv_mode_names,4,2              ## @tv_mode_names
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_VC4_ENCODER_TYPE_VEC,4,2       ## @VC4_ENCODER_TYPE_VEC
	.comm	_vec_regs,4,2                   ## @vec_regs
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get clock: %d\n"

	.comm	_vc4_vec_encoder_funcs,4,2      ## @vc4_vec_encoder_funcs
	.comm	_DRM_MODE_ENCODER_TVDAC,4,2     ## @DRM_MODE_ENCODER_TVDAC
	.comm	_vc4_vec_encoder_helper_funcs,4,2 ## @vc4_vec_encoder_helper_funcs
L_.str.1:                               ## @.str.1
	.asciz	"vec_regs"

	.no_dead_strip	_vc4_vec_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_vec_bind
_vc4_vec_bind:                          ; @vc4_vec_bind
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x23, x0
	mov	x0, x20
	bl	_dev_get_drvdata
	mov	x20, x0
	bl	_to_vc4_dev
	mov	x21, x0
Lloh0:
	adrp	x22, _tv_mode_names@GOTPAGE
Lloh1:
	ldr	x22, [x22, _tv_mode_names@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	w2, [x22]
	mov	x0, x20
	bl	_drm_mode_create_tv_properties
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.1:
Lloh2:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
Lloh4:
	adrp	x8, _VC4_ENCODER_TYPE_VEC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VC4_ENCODER_TYPE_VEC@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	str	x22, [x0, #8]
	str	x0, [x22]
	str	x23, [x22, #32]
	mov	x0, x23
	mov	w1, #0
	bl	_vc4_ioremap_regs
	str	w0, [x22, #28]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x22, #28]
	cbz	x8, LBB0_8
; %bb.4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x22
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh10:
	adrp	x8, _vec_regs@GOTPAGE
Lloh11:
	ldr	x8, [x8, _vec_regs@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	stp	w8, w0, [x22, #12]
	mov	x0, x8
	bl	_ARRAY_SIZE
	mov	x23, x22
	str	w0, [x23, #8]!
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x23, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.9:
	ldr	w0, [x22, #24]
	bl	_PTR_ERR
	mov	x22, x0
Lloh13:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_6
; %bb.10:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_DRM_ERROR
	b	LBB0_6
LBB0_11:
	mov	x0, x19
	bl	_pm_runtime_enable
	ldr	x1, [x22]
Lloh18:
	adrp	x8, _DRM_MODE_ENCODER_TVDAC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TVDAC@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
Lloh21:
	adrp	x2, _vc4_vec_encoder_funcs@GOTPAGE
Lloh22:
	ldr	x2, [x2, _vc4_vec_encoder_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x4, #0
	bl	_drm_encoder_init
	ldr	x0, [x22]
Lloh23:
	adrp	x1, _vc4_vec_encoder_helper_funcs@GOTPAGE
Lloh24:
	ldr	x1, [x1, _vc4_vec_encoder_helper_funcs@GOTPAGEOFF]
	bl	_drm_encoder_helper_add
	mov	x0, x20
	mov	x1, x22
	bl	_vc4_vec_connector_init
	str	w0, [x22, #20]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.12:
	ldr	w0, [x22, #20]
	bl	_PTR_ERR
	mov	x20, x0
	ldr	x0, [x22]
	bl	_drm_encoder_cleanup
	mov	x0, x19
	bl	_pm_runtime_disable
	mov	x0, x20
	b	LBB0_7
LBB0_13:
	mov	x0, x19
	mov	x1, x22
	bl	_dev_set_drvdata
	str	x22, [x21]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_vc4_debugfs_add_regset32
	mov	w22, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_tv_mode_names,4,2              ; @tv_mode_names
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_VC4_ENCODER_TYPE_VEC,4,2       ; @VC4_ENCODER_TYPE_VEC
	.comm	_vec_regs,4,2                   ; @vec_regs
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get clock: %d\n"

	.comm	_vc4_vec_encoder_funcs,4,2      ; @vc4_vec_encoder_funcs
	.comm	_DRM_MODE_ENCODER_TVDAC,4,2     ; @DRM_MODE_ENCODER_TVDAC
	.comm	_vc4_vec_encoder_helper_funcs,4,2 ; @vc4_vec_encoder_helper_funcs
l_.str.1:                               ; @.str.1
	.asciz	"vec_regs"

	.no_dead_strip	_vc4_vec_bind
.subsections_via_symbols
