	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function buffer_activate
_buffer_activate:                       ## @buffer_activate
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	8(%rsi), %rax
	movq	(%rax), %r14
	leaq	L_.str(%rip), %rdi
	callq	_vbi_dbg
	movq	$0, (%rbx)
	movq	_TASK_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_task_init
	movq	_TASK_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_task_init
	movq	_SAA7134_OFMT_DATA_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$6, %esi
	callq	_saa_writeb
	movq	_SAA7134_OFMT_DATA_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$6, %esi
	callq	_saa_writeb
	movq	%rbx, %rdi
	callq	_saa7134_buffer_base
	movq	%rax, %r12
	movq	_SAA7134_RS_CONTROL_BURST_16@GOTPCREL(%rip), %rax
	movq	_SAA7134_RS_CONTROL_ME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	4(%r14), %eax
	sarl	$12, %eax
	orl	%ecx, %eax
	movslq	%eax, %r15
	movl	$2, %edi
	callq	_SAA7134_RS_BA1
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_saa_writel
	movl	$2, %edi
	callq	_SAA7134_RS_BA2
	movq	8(%r13), %rsi
	imulq	(%r13), %rsi
	addq	%r12, %rsi
	movl	%eax, %edi
	callq	_saa_writel
	movl	$2, %edi
	callq	_SAA7134_RS_PITCH
	movq	(%r13), %rsi
	movl	%eax, %edi
	callq	_saa_writel
	movl	$2, %edi
	callq	_SAA7134_RS_CONTROL
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_saa_writel
	movl	$3, %edi
	callq	_SAA7134_RS_BA1
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_saa_writel
	movl	$3, %edi
	callq	_SAA7134_RS_BA2
	movq	8(%r13), %rsi
	imulq	(%r13), %rsi
	addq	%r12, %rsi
	movl	%eax, %edi
	callq	_saa_writel
	movl	$3, %edi
	callq	_SAA7134_RS_PITCH
	movq	(%r13), %rsi
	movl	%eax, %edi
	callq	_saa_writel
	movl	$3, %edi
	callq	_SAA7134_RS_CONTROL
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_saa_writel
	movq	%r13, %rdi
	callq	_saa7134_set_dmabits
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_BUFFER_TIMEOUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_mod_timer
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"buffer_activate [%p]\n"

	.comm	_TASK_A,4,2                     ## @TASK_A
	.comm	_TASK_B,4,2                     ## @TASK_B
	.comm	_SAA7134_OFMT_DATA_A,4,2        ## @SAA7134_OFMT_DATA_A
	.comm	_SAA7134_OFMT_DATA_B,4,2        ## @SAA7134_OFMT_DATA_B
	.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	_jiffies,8,3                    ## @jiffies
	.comm	_BUFFER_TIMEOUT,8,3             ## @BUFFER_TIMEOUT
	.no_dead_strip	_buffer_activate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function buffer_activate
_buffer_activate:                       ; @buffer_activate
	.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	x21, x1
	mov	x20, x0
	ldr	x8, [x1, #8]
	ldr	x19, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_vbi_dbg
	str	xzr, [x21]
Lloh2:
	adrp	x8, _TASK_A@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TASK_A@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_task_init
Lloh5:
	adrp	x8, _TASK_B@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TASK_B@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_task_init
Lloh8:
	adrp	x8, _SAA7134_OFMT_DATA_A@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SAA7134_OFMT_DATA_A@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w1, #6
	bl	_saa_writeb
Lloh11:
	adrp	x8, _SAA7134_OFMT_DATA_B@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SAA7134_OFMT_DATA_B@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	w1, #6
	bl	_saa_writeb
	mov	x0, x21
	bl	_saa7134_buffer_base
	mov	x22, x0
Lloh14:
	adrp	x8, _SAA7134_RS_CONTROL_BURST_16@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SAA7134_RS_CONTROL_BURST_16@GOTPAGEOFF]
Lloh16:
	adrp	x9, _SAA7134_RS_CONTROL_ME@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SAA7134_RS_CONTROL_ME@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #4]
	orr	w8, w8, w9, asr #12
	sxtw	x21, w8
	mov	w0, #2
	bl	_SAA7134_RS_BA1
	mov	x1, x22
	bl	_saa_writel
	mov	w0, #2
	bl	_SAA7134_RS_BA2
	ldp	x8, x9, [x20]
	madd	x1, x9, x8, x22
	bl	_saa_writel
	mov	w0, #2
	bl	_SAA7134_RS_PITCH
	ldr	x1, [x20]
	bl	_saa_writel
	mov	w0, #2
	bl	_SAA7134_RS_CONTROL
	mov	x1, x21
	bl	_saa_writel
	mov	w0, #3
	bl	_SAA7134_RS_BA1
	mov	x1, x22
	bl	_saa_writel
	mov	w0, #3
	bl	_SAA7134_RS_BA2
	ldp	x8, x9, [x20]
	madd	x1, x9, x8, x22
	bl	_saa_writel
	mov	w0, #3
	bl	_SAA7134_RS_PITCH
	ldr	x1, [x20]
	bl	_saa_writel
	mov	w0, #3
	bl	_SAA7134_RS_CONTROL
	mov	x1, x21
	bl	_saa_writel
	mov	x0, x20
	bl	_saa7134_set_dmabits
Lloh20:
	adrp	x8, _jiffies@GOTPAGE
Lloh21:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _BUFFER_TIMEOUT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _BUFFER_TIMEOUT@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	bl	_mod_timer
	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 AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"buffer_activate [%p]\n"

	.comm	_TASK_A,4,2                     ; @TASK_A
	.comm	_TASK_B,4,2                     ; @TASK_B
	.comm	_SAA7134_OFMT_DATA_A,4,2        ; @SAA7134_OFMT_DATA_A
	.comm	_SAA7134_OFMT_DATA_B,4,2        ; @SAA7134_OFMT_DATA_B
	.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	_jiffies,8,3                    ; @jiffies
	.comm	_BUFFER_TIMEOUT,8,3             ; @BUFFER_TIMEOUT
	.no_dead_strip	_buffer_activate
.subsections_via_symbols
