	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_meson_venc_cvbs_create         ## -- Begin function meson_venc_cvbs_create
	.p2align	4, 0x90
_meson_venc_cvbs_create:                ## @meson_venc_cvbs_create
	.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, %rbx
	movq	8(%rdi), %r14
	callq	_meson_venc_cvbs_connector_is_available
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%rbx, 8(%rax)
	movq	_meson_cvbs_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	callq	_drm_connector_helper_add
	movq	_DRM_MODE_CONNECTOR_Composite@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_meson_cvbs_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_drm_connector_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_9
LBB0_1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	xorl	%r12d, %r12d
	jmp	LBB0_9
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_9
LBB0_6:
	movq	%r15, %r13
	addq	$4, %r13
	movl	$1, (%r15)
	movq	_meson_venc_cvbs_encoder_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_drm_encoder_helper_add
	movq	_DRM_MODE_ENCODER_TVDAC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_meson_venc_cvbs_encoder_funcs@GOTPCREL(%rip), %rdx
	leaq	L_.str.2(%rip), %r8
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_drm_encoder_init
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r12d
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_9
LBB0_8:
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	callq	_BIT
	movl	%eax, 4(%r15)
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_drm_connector_attach_encoder
LBB0_9:
	movl	%r12d, %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	"CVBS Output connector not available\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_meson_cvbs_connector_helper_funcs,4,2 ## @meson_cvbs_connector_helper_funcs
	.comm	_meson_cvbs_connector_funcs,4,2 ## @meson_cvbs_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_Composite,4,2 ## @DRM_MODE_CONNECTOR_Composite
L_.str.1:                               ## @.str.1
	.asciz	"Failed to init CVBS connector\n"

	.comm	_meson_venc_cvbs_encoder_helper_funcs,4,2 ## @meson_venc_cvbs_encoder_helper_funcs
	.comm	_meson_venc_cvbs_encoder_funcs,4,2 ## @meson_venc_cvbs_encoder_funcs
	.comm	_DRM_MODE_ENCODER_TVDAC,4,2     ## @DRM_MODE_ENCODER_TVDAC
L_.str.2:                               ## @.str.2
	.asciz	"meson_venc_cvbs"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to init CVBS encoder\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_meson_venc_cvbs_create         ; -- Begin function meson_venc_cvbs_create
	.p2align	2
_meson_venc_cvbs_create:                ; @meson_venc_cvbs_create
	.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	x19, x0
	ldr	x20, [x0, #8]
	bl	_meson_venc_cvbs_connector_is_available
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	str	x19, [x0, #8]
Lloh3:
	adrp	x1, _meson_cvbs_connector_helper_funcs@GOTPAGE
Lloh4:
	ldr	x1, [x1, _meson_cvbs_connector_helper_funcs@GOTPAGEOFF]
	bl	_drm_connector_helper_add
Lloh5:
	adrp	x8, _DRM_MODE_CONNECTOR_Composite@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_Composite@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x2, _meson_cvbs_connector_funcs@GOTPAGE
Lloh9:
	ldr	x2, [x2, _meson_cvbs_connector_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x21
	bl	_drm_connector_init
	cbz	w0, LBB0_6
; %bb.3:
	mov	x22, x0
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_4:
	ldr	w0, [x20]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	mov	w22, #0
	b	LBB0_9
LBB0_5:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_9
LBB0_6:
	add	x23, x21, #4
	mov	w8, #1
	str	w8, [x21]
Lloh17:
	adrp	x1, _meson_venc_cvbs_encoder_helper_funcs@GOTPAGE
Lloh18:
	ldr	x1, [x1, _meson_venc_cvbs_encoder_helper_funcs@GOTPAGEOFF]
	mov	x0, x23
	bl	_drm_encoder_helper_add
Lloh19:
	adrp	x8, _DRM_MODE_ENCODER_TVDAC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TVDAC@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
Lloh22:
	adrp	x2, _meson_venc_cvbs_encoder_funcs@GOTPAGE
Lloh23:
	ldr	x2, [x2, _meson_venc_cvbs_encoder_funcs@GOTPAGEOFF]
Lloh24:
	adrp	x4, l_.str.2@PAGE
Lloh25:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x23
	bl	_drm_encoder_init
	mov	x22, x0
	cbz	w0, LBB0_8
; %bb.7:
	ldr	w0, [x19]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_8:
	bl	_BIT
	str	w0, [x21, #4]
	mov	x0, x21
	mov	x1, x23
	bl	_drm_connector_attach_encoder
LBB0_9:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CVBS Output connector not available\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_meson_cvbs_connector_helper_funcs,4,2 ; @meson_cvbs_connector_helper_funcs
	.comm	_meson_cvbs_connector_funcs,4,2 ; @meson_cvbs_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_Composite,4,2 ; @DRM_MODE_CONNECTOR_Composite
l_.str.1:                               ; @.str.1
	.asciz	"Failed to init CVBS connector\n"

	.comm	_meson_venc_cvbs_encoder_helper_funcs,4,2 ; @meson_venc_cvbs_encoder_helper_funcs
	.comm	_meson_venc_cvbs_encoder_funcs,4,2 ; @meson_venc_cvbs_encoder_funcs
	.comm	_DRM_MODE_ENCODER_TVDAC,4,2     ; @DRM_MODE_ENCODER_TVDAC
l_.str.2:                               ; @.str.2
	.asciz	"meson_venc_cvbs"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to init CVBS encoder\n"

.subsections_via_symbols
