	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function venc_set_timings
_venc_set_timings:                      ## @venc_set_timings
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_dssdev_to_venc
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_venc_get_videomode
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_DSSDBG
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_venc_config_pal_trm@GOTPCREL(%rip), %r15
	cmpl	$128, %r14d
	je	LBB0_4
## %bb.1:
	cmpl	$129, %r14d
	jne	LBB0_2
## %bb.3:
	movq	_venc_config_ntsc_trm@GOTPCREL(%rip), %r15
	jmp	LBB0_4
LBB0_2:
	movl	$1, %edi
	callq	_WARN_ON_ONCE
LBB0_4:
	movq	%r15, 16(%rbx)
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	$13500000, %esi                 ## imm = 0xCDFE60
	callq	_dispc_set_tv_pclk
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"venc_set_timings\n"

	.comm	_venc_config_pal_trm,4,2        ## @venc_config_pal_trm
	.comm	_venc_config_ntsc_trm,4,2       ## @venc_config_ntsc_trm
	.no_dead_strip	_venc_set_timings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function venc_set_timings
_venc_set_timings:                      ; @venc_set_timings
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_dssdev_to_venc
	mov	x19, x0
	mov	x0, x20
	bl	_venc_get_videomode
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DSSDBG
	mov	x0, x19
	bl	_mutex_lock
	cmp	w20, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w20, #129
	b.ne	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _venc_config_ntsc_trm@GOTPAGE
Lloh3:
	ldr	x8, [x8, _venc_config_ntsc_trm@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	w0, #1
	bl	_WARN_ON_ONCE
LBB0_4:
Lloh4:
	adrp	x8, _venc_config_pal_trm@GOTPAGE
Lloh5:
	ldr	x8, [x8, _venc_config_pal_trm@GOTPAGEOFF]
LBB0_5:
	str	x8, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	w1, #65120
	movk	w1, #205, lsl #16
	bl	_dispc_set_tv_pclk
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"venc_set_timings\n"

	.comm	_venc_config_pal_trm,4,2        ; @venc_config_pal_trm
	.comm	_venc_config_ntsc_trm,4,2       ; @venc_config_ntsc_trm
	.no_dead_strip	_venc_set_timings
.subsections_via_symbols
