	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_venc_cvbs_encoder_mode_set
_meson_venc_cvbs_encoder_mode_set:      ## @meson_venc_cvbs_encoder_mode_set
	.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, %r12
	callq	_encoder_to_meson_venc_cvbs
	movq	_MESON_CVBS_MODES_COUNT@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_4
## %bb.1:
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$4, %ebx
	xorl	%r13d, %r13d
	movq	_meson_cvbs_modes@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %r15
	leaq	(%r15,%rbx), %rsi
	movq	%r12, %rdi
	callq	_drm_mode_equal
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movq	_MESON_CVBS_MODES_COUNT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$8, %rbx
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r15,%r13,8), %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_meson_venci_cvbs_mode_set
	movq	_MESON_VCLK_TARGET_CVBS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MESON_VCLK_CVBS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	movl	%ecx, %r8d
	movl	$1, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_meson_vclk_setup               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MESON_CVBS_MODES_COUNT,4,2     ## @MESON_CVBS_MODES_COUNT
	.comm	_meson_cvbs_modes,8,3           ## @meson_cvbs_modes
	.comm	_MESON_VCLK_TARGET_CVBS,4,2     ## @MESON_VCLK_TARGET_CVBS
	.comm	_MESON_VCLK_CVBS,4,2            ## @MESON_VCLK_CVBS
	.no_dead_strip	_meson_venc_cvbs_encoder_mode_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_venc_cvbs_encoder_mode_set
_meson_venc_cvbs_encoder_mode_set:      ; @meson_venc_cvbs_encoder_mode_set
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	bl	_encoder_to_meson_venc_cvbs
Lloh0:
	adrp	x21, _MESON_CVBS_MODES_COUNT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MESON_CVBS_MODES_COUNT@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x22, #0
	mov	x23, #0
	ldr	x19, [x0]
Lloh2:
	adrp	x24, _meson_cvbs_modes@GOTPAGE
Lloh3:
	ldr	x24, [x24, _meson_cvbs_modes@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x24]
	add	x8, x25, x22
	add	x1, x8, #4
	mov	x0, x20
	bl	_drm_mode_equal
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #8
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_4:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w1, [x25, x22]
	mov	x0, x19
	bl	_meson_venci_cvbs_mode_set
Lloh4:
	adrp	x8, _MESON_VCLK_TARGET_CVBS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MESON_VCLK_TARGET_CVBS@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _MESON_VCLK_CVBS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MESON_VCLK_CVBS@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	mov	x4, x2
	mov	w5, #1
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_meson_vclk_setup
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MESON_CVBS_MODES_COUNT,4,2     ; @MESON_CVBS_MODES_COUNT
	.comm	_meson_cvbs_modes,8,3           ; @meson_cvbs_modes
	.comm	_MESON_VCLK_TARGET_CVBS,4,2     ; @MESON_VCLK_TARGET_CVBS
	.comm	_MESON_VCLK_CVBS,4,2            ; @MESON_VCLK_CVBS
	.no_dead_strip	_meson_venc_cvbs_encoder_mode_set
.subsections_via_symbols
