	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function venc_check_timings
_venc_check_timings:                    ## @venc_check_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_DSSDBG
	movq	%rbx, %rdi
	callq	_venc_get_videomode
	cmpl	$128, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.3:
	movq	_omap_dss_ntsc_mode@GOTPCREL(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	movq	_omap_dss_pal_mode@GOTPCREL(%rip), %rsi
LBB0_4:
	movq	%rbx, %rdi
	callq	_drm_mode_copy
	movq	_CRTC_INTERLACE_HALVE_V@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_drm_mode_set_crtcinfo
	movq	%rbx, %rdi
	callq	_drm_mode_set_name
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"venc_check_timings\n"

	.comm	_omap_dss_pal_mode,4,2          ## @omap_dss_pal_mode
	.comm	_omap_dss_ntsc_mode,4,2         ## @omap_dss_ntsc_mode
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CRTC_INTERLACE_HALVE_V,4,2     ## @CRTC_INTERLACE_HALVE_V
	.no_dead_strip	_venc_check_timings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function venc_check_timings
_venc_check_timings:                    ; @venc_check_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	x19, x1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DSSDBG
	mov	x0, x19
	bl	_venc_get_videomode
	cmp	w0, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, #129
	b.ne	LBB0_5
; %bb.2:
Lloh2:
	adrp	x1, _omap_dss_ntsc_mode@GOTPAGE
Lloh3:
	ldr	x1, [x1, _omap_dss_ntsc_mode@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x1, _omap_dss_pal_mode@GOTPAGE
Lloh5:
	ldr	x1, [x1, _omap_dss_pal_mode@GOTPAGEOFF]
LBB0_4:
	mov	x0, x19
	bl	_drm_mode_copy
Lloh6:
	adrp	x8, _CRTC_INTERLACE_HALVE_V@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CRTC_INTERLACE_HALVE_V@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_drm_mode_set_crtcinfo
	mov	x0, x19
	bl	_drm_mode_set_name
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"venc_check_timings\n"

	.comm	_omap_dss_pal_mode,4,2          ; @omap_dss_pal_mode
	.comm	_omap_dss_ntsc_mode,4,2         ; @omap_dss_ntsc_mode
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CRTC_INTERLACE_HALVE_V,4,2     ; @CRTC_INTERLACE_HALVE_V
	.no_dead_strip	_venc_check_timings
.subsections_via_symbols
