	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __VIInit
___VIInit:                              ## @__VIInit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movl	%edi, %ebx
	shrl	$2, %ebx
	andl	$7, %ebx
	callq	___gettiming
	movq	__viReg@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$0, 4(%rcx)
	movl	(%rax), %edx
	shll	$8, %edx
	orl	4(%rax), %edx
	movl	%edx, 8(%rcx)
	movl	8(%rax), %edx
	movl	%edx, 12(%rcx)
	movl	12(%rax), %edx
	addl	%edx, %edx
	movl	%edx, 16(%rcx)
	movl	16(%rax), %edx
	shll	$7, %edx
	orl	20(%rax), %edx
	movl	%edx, 20(%rcx)
	movl	24(%rax), %edx
	movl	%edx, (%rcx)
	movl	28(%rax), %edx
	addl	$2, %edx
	movl	%edx, 24(%rcx)
	movl	32(%rax), %edx
	movl	36(%rax), %esi
	leal	(%rdx,%rsi,2), %edx
	addl	$-2, %edx
	movl	%edx, 28(%rcx)
	movl	40(%rax), %edx
	addl	$2, %edx
	movl	%edx, 32(%rcx)
	movl	36(%rax), %edx
	movl	44(%rax), %esi
	leal	(%rsi,%rdx,2), %edx
	addl	$-2, %edx
	movl	%edx, 36(%rcx)
	movl	48(%rax), %edx
	shll	$5, %edx
	orl	52(%rax), %edx
	movl	%edx, 40(%rcx)
	movl	56(%rax), %edx
	shll	$5, %edx
	orl	60(%rax), %edx
	movl	%edx, 44(%rcx)
	movl	64(%rax), %edx
	shll	$5, %edx
	orl	68(%rax), %edx
	movl	%edx, 48(%rcx)
	movl	72(%rax), %edx
	shll	$5, %edx
	orl	76(%rax), %edx
	movl	%edx, 52(%rcx)
	movl	80(%rax), %edx
	movl	%edx, %esi
	shrl	$31, %esi
	addl	%edx, %esi
	sarl	%esi
	incl	%esi
	orl	$4096, %esi                     ## imm = 0x1000
	movl	%esi, 96(%rcx)
	movl	8(%rax), %eax
	incl	%eax
	movl	%eax, 100(%rcx)
	movabsq	$4294971393, %rax               ## imm = 0x100001001
	movq	%rax, 104(%rcx)
	movl	$10280, 144(%rcx)               ## imm = 0x2828
	movq	_VI_PAL@GOTPCREL(%rip), %rdx
	movq	_VI_DEBUG_PAL@GOTPCREL(%rip), %rsi
	movl	%ebx, %eax
	cmpl	(%rsi), %ebx
	jl	LBB0_2
## %bb.1:
	movq	_VI_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	cmpl	(%rdx), %ebx
	cmovgel	%ebx, %eax
	shll	$8, %eax
	testb	$2, %r14b
	jne	LBB0_3
## %bb.4:
	shll	$2, %r14d
	andl	$4, %r14d
	orl	%r14d, %eax
	orl	$1, %eax
	xorl	%edx, %edx
	jmp	LBB0_5
LBB0_3:
	orl	$5, %eax
	movl	$1, %edx
LBB0_5:
	movl	%eax, 4(%rcx)
	movl	%edx, 216(%rcx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__viReg,8,3                     ## @_viReg
	.comm	_VI_PAL,4,2                     ## @VI_PAL
	.comm	_VI_DEBUG_PAL,4,2               ## @VI_DEBUG_PAL
	.comm	_VI_NTSC,4,2                    ## @VI_NTSC
	.no_dead_strip	___VIInit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function __VIInit
lCPI0_0:
	.long	4097                            ; 0x1001
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
___VIInit:                              ; @__VIInit
	.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, x0
	ubfx	w20, w0, #2, #3
	bl	___gettiming
Lloh0:
	adrp	x8, __viReg@GOTPAGE
Lloh1:
	ldr	x8, [x8, __viReg@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	wzr, [x8, #4]
	ldp	w9, w10, [x0]
	orr	w9, w10, w9, lsl #8
	str	w9, [x8, #8]
	ldr	w9, [x0, #8]
	str	w9, [x8, #12]
	ldr	w9, [x0, #12]
	lsl	w9, w9, #1
	str	w9, [x8, #16]
	ldp	w9, w10, [x0, #16]
	orr	w9, w10, w9, lsl #7
	str	w9, [x8, #20]
	ldr	w9, [x0, #24]
	str	w9, [x8]
	ldr	w9, [x0, #28]
	add	w9, w9, #2
	str	w9, [x8, #24]
	ldp	w9, w10, [x0, #32]
	add	w9, w9, w10, lsl #1
	sub	w9, w9, #2
	str	w9, [x8, #28]
	ldr	w9, [x0, #40]
	add	w9, w9, #2
	str	w9, [x8, #32]
	ldr	w9, [x0, #44]
	ldr	w10, [x0, #36]
	add	w9, w9, w10, lsl #1
	sub	w9, w9, #2
	str	w9, [x8, #36]
	ldp	w9, w10, [x0, #48]
	orr	w9, w10, w9, lsl #5
	str	w9, [x8, #40]
	ldp	w9, w10, [x0, #56]
	orr	w9, w10, w9, lsl #5
	str	w9, [x8, #44]
	ldp	w9, w10, [x0, #64]
	orr	w9, w10, w9, lsl #5
	str	w9, [x8, #48]
	ldp	w9, w10, [x0, #72]
	orr	w9, w10, w9, lsl #5
	str	w9, [x8, #52]
	ldr	w9, [x0, #80]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	add	w9, w9, #1
	orr	w9, w9, #0x1000
	str	w9, [x8, #96]
	ldr	w9, [x0, #8]
	add	w9, w9, #1
	str	w9, [x8, #100]
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8, #104]
	mov	w9, #10280
Lloh5:
	adrp	x10, _VI_PAL@GOTPAGE
Lloh6:
	ldr	x10, [x10, _VI_PAL@GOTPAGEOFF]
	str	w9, [x8, #144]
Lloh7:
	ldr	w9, [x10]
Lloh8:
	adrp	x10, _VI_DEBUG_PAL@GOTPAGE
Lloh9:
	ldr	x10, [x10, _VI_DEBUG_PAL@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w20, w10
	ccmp	w20, w9, #0, ge
Lloh11:
	adrp	x9, _VI_NTSC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VI_NTSC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	csel	w9, w20, w9, ge
	lsl	w10, w9, #8
	tbnz	w19, #1, LBB0_2
; %bb.1:
	mov	w9, #0
	ubfiz	w11, w19, #2, #1
	orr	w10, w10, w11
	orr	w10, w10, #0x1
	b	LBB0_3
LBB0_2:
	mov	w9, #5
	orr	w10, w10, w9
	mov	w9, #1
LBB0_3:
	str	w10, [x8, #4]
	str	w9, [x8, #216]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	__viReg,8,3                     ; @_viReg
	.comm	_VI_PAL,4,2                     ; @VI_PAL
	.comm	_VI_DEBUG_PAL,4,2               ; @VI_DEBUG_PAL
	.comm	_VI_NTSC,4,2                    ; @VI_NTSC
	.no_dead_strip	___VIInit
.subsections_via_symbols
