	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7134_ts_start               ## -- Begin function saa7134_ts_start
	.p2align	4, 0x90
_saa7134_ts_start:                      ## @saa7134_ts_start
	.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	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_ts_dbg
	movl	(%rbx), %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	_SAA7134_TS_DMA0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%rbx), %eax
	decl	%eax
	movzbl	%al, %esi
	callq	_saa_writeb
	movq	_SAA7134_TS_DMA1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%rbx), %eax
	decl	%eax
	movzbl	%ah, %esi
	callq	_saa_writeb
	movq	_SAA7134_TS_DMA2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%rbx), %esi
	decl	%esi
	shrl	$16, %esi
	andl	$63, %esi
	callq	_saa_writeb
	movl	$5, %edi
	callq	_SAA7134_RS_PITCH
	movq	_TS_PACKET_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_saa_writel
	movl	$5, %edi
	callq	_SAA7134_RS_CONTROL
	movq	_SAA7134_RS_CONTROL_BURST_16@GOTPCREL(%rip), %rcx
	movq	_SAA7134_RS_CONTROL_ME@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	16(%rbx), %esi
	sarl	$12, %esi
	orl	%edx, %esi
	movl	%eax, %edi
	callq	_saa_writel
	movq	_SAA7134_TS_SERIAL1@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_saa_writeb
	movl	(%r14), %edi
	movl	$3, %esi
	callq	_saa_writeb
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_saa_writeb
	movl	(%r14), %edi
	movl	$1, %esi
	callq	_saa_writeb
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_saa_writeb
	movq	_saa7134_boards@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,8), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.3:
	movq	_SAA7134_TS_SERIAL0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$64, %esi
	callq	_saa_writeb
	movq	_SAA7134_TS_PARALLEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rax
	movq	8(%rbx), %rcx
	movl	4(%rax,%rcx,8), %esi
	shll	$4, %esi
	orl	$236, %esi
	jmp	LBB0_5
LBB0_4:
	movq	_SAA7134_TS_SERIAL0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$216, %esi
	callq	_saa_writeb
	movq	_SAA7134_TS_PARALLEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rax
	movq	8(%rbx), %rcx
	movl	4(%rax,%rcx,8), %esi
	shll	$4, %esi
	orl	$108, %esi
	callq	_saa_writeb
	movq	_SAA7134_TS_PARALLEL_SERIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$188, %esi
	callq	_saa_writeb
	movl	(%r14), %edi
	movl	$2, %esi
LBB0_5:
	callq	_saa_writeb
LBB0_6:
	movl	$1, (%rbx)
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TS start\n"

	.comm	_SAA7134_TS_DMA0,4,2            ## @SAA7134_TS_DMA0
	.comm	_SAA7134_TS_DMA1,4,2            ## @SAA7134_TS_DMA1
	.comm	_SAA7134_TS_DMA2,4,2            ## @SAA7134_TS_DMA2
	.comm	_TS_PACKET_SIZE,4,2             ## @TS_PACKET_SIZE
	.comm	_SAA7134_RS_CONTROL_BURST_16,4,2 ## @SAA7134_RS_CONTROL_BURST_16
	.comm	_SAA7134_RS_CONTROL_ME,4,2      ## @SAA7134_RS_CONTROL_ME
	.comm	_SAA7134_TS_SERIAL1,4,2         ## @SAA7134_TS_SERIAL1
	.comm	_saa7134_boards,8,3             ## @saa7134_boards
	.comm	_SAA7134_TS_SERIAL0,4,2         ## @SAA7134_TS_SERIAL0
	.comm	_SAA7134_TS_PARALLEL,4,2        ## @SAA7134_TS_PARALLEL
	.comm	_SAA7134_TS_PARALLEL_SERIAL,4,2 ## @SAA7134_TS_PARALLEL_SERIAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7134_ts_start               ; -- Begin function saa7134_ts_start
	.p2align	2
_saa7134_ts_start:                      ; @saa7134_ts_start
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ts_dbg
	ldr	w0, [x19]
	bl	_WARN_ON
	cbnz	x0, LBB0_7
; %bb.1:
Lloh2:
	adrp	x8, _SAA7134_TS_DMA0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SAA7134_TS_DMA0@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w8, [x19, #20]
	sub	w8, w8, #1
	and	w1, w8, #0xff
	bl	_saa_writeb
Lloh5:
	adrp	x8, _SAA7134_TS_DMA1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SAA7134_TS_DMA1@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w8, [x19, #20]
	sub	w8, w8, #1
	ubfx	w1, w8, #8, #8
	bl	_saa_writeb
Lloh8:
	adrp	x8, _SAA7134_TS_DMA2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SAA7134_TS_DMA2@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w8, [x19, #20]
	sub	w8, w8, #1
	ubfx	w1, w8, #16, #6
	bl	_saa_writeb
	mov	w0, #5
	bl	_SAA7134_RS_PITCH
Lloh11:
	adrp	x8, _TS_PACKET_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TS_PACKET_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_saa_writel
	mov	w0, #5
	bl	_SAA7134_RS_CONTROL
Lloh14:
	adrp	x8, _SAA7134_RS_CONTROL_BURST_16@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SAA7134_RS_CONTROL_BURST_16@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _SAA7134_RS_CONTROL_ME@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SAA7134_RS_CONTROL_ME@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #16]
	orr	w1, w8, w9, asr #12
	bl	_saa_writel
Lloh20:
	adrp	x20, _SAA7134_TS_SERIAL1@GOTPAGE
Lloh21:
	ldr	x20, [x20, _SAA7134_TS_SERIAL1@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #0
	bl	_saa_writeb
	ldr	w0, [x20]
	mov	w1, #3
	bl	_saa_writeb
	ldr	w0, [x20]
	mov	w1, #0
	bl	_saa_writeb
	ldr	w0, [x20]
	mov	w1, #1
	bl	_saa_writeb
	ldr	w0, [x20]
	mov	w1, #0
	bl	_saa_writeb
Lloh22:
	adrp	x21, _saa7134_boards@GOTPAGE
Lloh23:
	ldr	x21, [x21, _saa7134_boards@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x19, #8]
	lsl	x9, x9, #3
	ldr	w8, [x8, x9]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.3:
Lloh24:
	adrp	x8, _SAA7134_TS_SERIAL0@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SAA7134_TS_SERIAL0@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	w1, #64
	bl	_saa_writeb
Lloh27:
	adrp	x8, _SAA7134_TS_PARALLEL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SAA7134_TS_PARALLEL@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	x8, [x21]
	ldr	x9, [x19, #8]
	add	x8, x8, x9, lsl #3
	ldr	w8, [x8, #4]
	mov	w9, #236
	orr	w1, w9, w8, lsl #4
	b	LBB0_5
LBB0_4:
Lloh30:
	adrp	x8, _SAA7134_TS_SERIAL0@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SAA7134_TS_SERIAL0@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	mov	w1, #216
	bl	_saa_writeb
Lloh33:
	adrp	x8, _SAA7134_TS_PARALLEL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SAA7134_TS_PARALLEL@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	x8, [x21]
	ldr	x9, [x19, #8]
	add	x8, x8, x9, lsl #3
	ldr	w8, [x8, #4]
	mov	w9, #108
	orr	w1, w9, w8, lsl #4
	bl	_saa_writeb
Lloh36:
	adrp	x8, _SAA7134_TS_PARALLEL_SERIAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SAA7134_TS_PARALLEL_SERIAL@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	mov	w1, #188
	bl	_saa_writeb
	ldr	w0, [x20]
	mov	w1, #2
LBB0_5:
	bl	_saa_writeb
LBB0_6:
	mov	w8, #1
	str	w8, [x19]
LBB0_7:
	mov	w0, #0
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TS start\n"

	.comm	_SAA7134_TS_DMA0,4,2            ; @SAA7134_TS_DMA0
	.comm	_SAA7134_TS_DMA1,4,2            ; @SAA7134_TS_DMA1
	.comm	_SAA7134_TS_DMA2,4,2            ; @SAA7134_TS_DMA2
	.comm	_TS_PACKET_SIZE,4,2             ; @TS_PACKET_SIZE
	.comm	_SAA7134_RS_CONTROL_BURST_16,4,2 ; @SAA7134_RS_CONTROL_BURST_16
	.comm	_SAA7134_RS_CONTROL_ME,4,2      ; @SAA7134_RS_CONTROL_ME
	.comm	_SAA7134_TS_SERIAL1,4,2         ; @SAA7134_TS_SERIAL1
	.comm	_saa7134_boards,8,3             ; @saa7134_boards
	.comm	_SAA7134_TS_SERIAL0,4,2         ; @SAA7134_TS_SERIAL0
	.comm	_SAA7134_TS_PARALLEL,4,2        ; @SAA7134_TS_PARALLEL
	.comm	_SAA7134_TS_PARALLEL_SERIAL,4,2 ; @SAA7134_TS_PARALLEL_SERIAL
.subsections_via_symbols
