	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_start_video
_sd_start_video:                        ## @sd_start_video
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movl	(%rcx,%rax,4), %r12d
	movq	_FORMAT_Y10B@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_FORMAT_UYVY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_MODE_1280x1024@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	movq	_FPS_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$261, %esi                      ## imm = 0x105
	xorl	%edx, %edx
	callq	_write_register
	movq	%rbx, %rdi
	movl	$5, %esi
	xorl	%edx, %edx
	callq	_write_register
	movl	(%r14), %eax
	orl	(%r13), %eax
	testl	%r12d, %eax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$19, %esi
	movl	$1, %edx
	callq	_write_register
	movq	%rbx, %rdi
	movl	$20, %esi
	movl	$30, %edx
	callq	_write_register
	movq	%rbx, %rdi
	movl	$6, %esi
	movl	$2, %edx
	callq	_write_register
	movq	%rbx, %rdi
	movl	$6, %esi
	xorl	%edx, %edx
	callq	_write_register
LBB0_2:
	testl	%r12d, -48(%rbp)                ## 4-byte Folded Reload
	movl	$15, %eax
	movl	$30, %r14d
	cmovel	%eax, %r14d
	andl	%r12d, %r15d
	cmpl	$1, %r15d
	movl	$2, %r15d
	sbbl	$0, %r15d
	xorl	%eax, %eax
	testl	%r12d, -52(%rbp)                ## 4-byte Folded Reload
	setne	%al
	leal	(%rax,%rax,4), %edx
	xorl	%eax, %eax
	testl	%r12d, -44(%rbp)                ## 4-byte Folded Reload
	setne	%al
	leal	1(%rax,%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$14, %eax
	movl	$27, %r13d
	cmovel	%eax, %r13d
	movl	$13, %eax
	movl	$26, %r12d
	cmovel	%eax, %r12d
	movl	$12, %eax
	movl	$25, %esi
	cmovel	%eax, %esi
	movq	%rbx, %rdi
	callq	_write_register
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_write_register
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_write_register
	movq	%rbx, %rdi
	movl	$5, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_write_register
	movq	%rbx, %rdi
	movl	$71, %esi
	xorl	%edx, %edx
	callq	_write_register
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FORMAT_Y10B,4,2                ## @FORMAT_Y10B
	.comm	_FORMAT_UYVY,4,2                ## @FORMAT_UYVY
	.comm	_MODE_1280x1024,4,2             ## @MODE_1280x1024
	.comm	_FPS_HIGH,4,2                   ## @FPS_HIGH
	.no_dead_strip	_sd_start_video
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_start_video
_sd_start_video:                        ; @sd_start_video
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldp	x9, x8, [x0]
	ldr	w22, [x8, x9, lsl #2]
Lloh0:
	adrp	x26, _FORMAT_Y10B@GOTPAGE
Lloh1:
	ldr	x26, [x26, _FORMAT_Y10B@GOTPAGEOFF]
	ldr	w23, [x26]
Lloh2:
	adrp	x8, _FORMAT_UYVY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FORMAT_UYVY@GOTPAGEOFF]
Lloh4:
	ldr	w24, [x8]
Lloh5:
	adrp	x27, _MODE_1280x1024@GOTPAGE
Lloh6:
	ldr	x27, [x27, _MODE_1280x1024@GOTPAGEOFF]
	ldr	w21, [x27]
Lloh7:
	adrp	x8, _FPS_HIGH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FPS_HIGH@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	mov	w1, #261
	mov	w2, #0
	bl	_write_register
	mov	w25, #5
	mov	x0, x19
	mov	w1, #5
	mov	w2, #0
	bl	_write_register
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w8, w9, w8
	tst	w8, w22
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #19
	mov	w2, #1
	bl	_write_register
	mov	x0, x19
	mov	w1, #20
	mov	w2, #30
	bl	_write_register
	mov	x0, x19
	mov	w1, #6
	mov	w2, #2
	bl	_write_register
	mov	x0, x19
	mov	w1, #6
	mov	w2, #0
	bl	_write_register
LBB0_2:
	tst	w20, w22
	mov	w8, #30
	mov	w9, #15
	csel	w20, w9, w8, eq
	tst	w21, w22
	mov	w8, #1
	cinc	w21, w8, ne
	tst	w24, w22
	csel	w2, wzr, w25, eq
	tst	w23, w22
	mov	w8, #3
	csinc	w22, w8, wzr, ne
	mov	w8, #27
	mov	w9, #14
	csel	w23, w9, w8, eq
	mov	w8, #26
	mov	w9, #13
	csel	w24, w9, w8, eq
	mov	w8, #25
	mov	w9, #12
	csel	w1, w9, w8, eq
	mov	x0, x19
	bl	_write_register
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	bl	_write_register
	mov	x0, x19
	mov	x1, x23
	mov	x2, x20
	bl	_write_register
	mov	x0, x19
	mov	w1, #5
	mov	x2, x22
	bl	_write_register
	mov	x0, x19
	mov	w1, #71
	mov	w2, #0
	bl	_write_register
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FORMAT_Y10B,4,2                ; @FORMAT_Y10B
	.comm	_FORMAT_UYVY,4,2                ; @FORMAT_UYVY
	.comm	_MODE_1280x1024,4,2             ; @MODE_1280x1024
	.comm	_FPS_HIGH,4,2                   ; @FPS_HIGH
	.no_dead_strip	_sd_start_video
.subsections_via_symbols
