	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function venc_set_720p60_internal
_venc_set_720p60_internal:              ## @venc_set_720p60_internal
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_to_state
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	_VPBE_ENC_DV_TIMINGS@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	$74250000, %esi                 ## imm = 0x46CF710
	callq	*(%rax)
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	movl	(%r14), %esi
	movl	$74250000, %edx                 ## imm = 0x46CF710
	callq	_venc_enable_vpss_clock
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_venc_enabledigitaloutput
	movq	_VENC_OSDCLK0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_venc_write
	movq	_VENC_OSDCLK1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %ebx
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_venc_write
	movq	_VENC_VMOD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_venc_write
	movq	_VENC_VMOD_VIE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movl	(%r12), %esi
	movq	_VENC_VMOD_VIE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_venc_modify
	movl	(%r12), %esi
	movq	_VENC_VMOD_HDMD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%ecx, %edx
	callq	_venc_modify
	movq	_HDTV_720P@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VENC_VMOD_TVTYP_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movl	(%r12), %esi
	movq	_VENC_VMOD_TVTYP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_venc_modify
	movl	(%r12), %esi
	movq	_VENC_VMOD_VENC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%ecx, %edx
	callq	_venc_modify
	movq	_VENC_XHINTVL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_venc_write
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPBE_ENC_DV_TIMINGS,4,2        ## @VPBE_ENC_DV_TIMINGS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VENC_OSDCLK0,4,2               ## @VENC_OSDCLK0
	.comm	_VENC_OSDCLK1,4,2               ## @VENC_OSDCLK1
	.comm	_VENC_VMOD,4,2                  ## @VENC_VMOD
	.comm	_VENC_VMOD_VIE_SHIFT,4,2        ## @VENC_VMOD_VIE_SHIFT
	.comm	_VENC_VMOD_VIE,4,2              ## @VENC_VMOD_VIE
	.comm	_VENC_VMOD_HDMD,4,2             ## @VENC_VMOD_HDMD
	.comm	_HDTV_720P,4,2                  ## @HDTV_720P
	.comm	_VENC_VMOD_TVTYP_SHIFT,4,2      ## @VENC_VMOD_TVTYP_SHIFT
	.comm	_VENC_VMOD_TVTYP,4,2            ## @VENC_VMOD_TVTYP
	.comm	_VENC_VMOD_VENC,4,2             ## @VENC_VMOD_VENC
	.comm	_VENC_XHINTVL,4,2               ## @VENC_XHINTVL
	.no_dead_strip	_venc_set_720p60_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function venc_set_720p60_internal
_venc_set_720p60_internal:              ; @venc_set_720p60_internal
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_to_state
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x21, _VPBE_ENC_DV_TIMINGS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VPBE_ENC_DV_TIMINGS@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #63248
	movk	w1, #1132, lsl #16
	blr	x8
	tbnz	x0, #63, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	ldr	w1, [x21]
	mov	w2, #63248
	movk	w2, #1132, lsl #16
	bl	_venc_enable_vpss_clock
	mov	x0, x19
	mov	w1, #0
	bl	_venc_enabledigitaloutput
Lloh2:
	adrp	x8, _VENC_OSDCLK0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VENC_OSDCLK0@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_venc_write
Lloh5:
	adrp	x8, _VENC_OSDCLK1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VENC_OSDCLK1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w20, #1
	mov	x0, x19
	mov	w2, #1
	bl	_venc_write
Lloh8:
	adrp	x21, _VENC_VMOD@GOTPAGE
Lloh9:
	ldr	x21, [x21, _VENC_VMOD@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_venc_write
Lloh10:
	adrp	x8, _VENC_VMOD_VIE_SHIFT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VENC_VMOD_VIE_SHIFT@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh12:
	ldr	w8, [x8]
	lsl	w2, w20, w8
Lloh13:
	adrp	x8, _VENC_VMOD_VIE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VENC_VMOD_VIE@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_venc_modify
	ldr	w1, [x21]
Lloh16:
	adrp	x8, _VENC_VMOD_HDMD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VENC_VMOD_HDMD@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	bl	_venc_modify
	ldr	w1, [x21]
Lloh19:
	adrp	x8, _HDTV_720P@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HDTV_720P@GOTPAGEOFF]
Lloh21:
	adrp	x9, _VENC_VMOD_TVTYP_SHIFT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _VENC_VMOD_TVTYP_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	ldr	w9, [x9]
	lsl	w2, w8, w9
Lloh25:
	adrp	x8, _VENC_VMOD_TVTYP@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VENC_VMOD_TVTYP@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_venc_modify
	ldr	w1, [x21]
Lloh28:
	adrp	x8, _VENC_VMOD_VENC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _VENC_VMOD_VENC@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	bl	_venc_modify
Lloh31:
	adrp	x8, _VENC_XHINTVL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _VENC_XHINTVL@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_venc_write
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_VPBE_ENC_DV_TIMINGS,4,2        ; @VPBE_ENC_DV_TIMINGS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VENC_OSDCLK0,4,2               ; @VENC_OSDCLK0
	.comm	_VENC_OSDCLK1,4,2               ; @VENC_OSDCLK1
	.comm	_VENC_VMOD,4,2                  ; @VENC_VMOD
	.comm	_VENC_VMOD_VIE_SHIFT,4,2        ; @VENC_VMOD_VIE_SHIFT
	.comm	_VENC_VMOD_VIE,4,2              ; @VENC_VMOD_VIE
	.comm	_VENC_VMOD_HDMD,4,2             ; @VENC_VMOD_HDMD
	.comm	_HDTV_720P,4,2                  ; @HDTV_720P
	.comm	_VENC_VMOD_TVTYP_SHIFT,4,2      ; @VENC_VMOD_TVTYP_SHIFT
	.comm	_VENC_VMOD_TVTYP,4,2            ; @VENC_VMOD_TVTYP
	.comm	_VENC_VMOD_VENC,4,2             ; @VENC_VMOD_VENC
	.comm	_VENC_XHINTVL,4,2               ; @VENC_XHINTVL
	.no_dead_strip	_venc_set_720p60_internal
.subsections_via_symbols
