	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_ts_capture
_start_ts_capture:                      ## @start_ts_capture
	.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
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movq	%rbx, %rdx
	callq	_dprintk
	movl	(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	16(%rbx), %edi
	movq	_TS_BUFLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	$0, 8(%rbx)
	movl	4(%rbx), %edi
	movq	_MASK_10@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_SAA7146_ISR_CLEAR
	movl	4(%rbx), %edi
	movl	(%r14), %esi
	callq	_SAA7146_IER_ENABLE
	movl	4(%rbx), %edi
	movq	_MC1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASK_04@GOTPCREL(%rip), %rax
	movq	_MASK_20@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_saa7146_write
	movl	(%rbx), %eax
LBB0_2:
	incl	%eax
	movl	%eax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"budget: %p\n"

	.comm	_TS_BUFLEN,4,2                  ## @TS_BUFLEN
	.comm	_MASK_10,4,2                    ## @MASK_10
	.comm	_MC1,4,2                        ## @MC1
	.comm	_MASK_04,4,2                    ## @MASK_04
	.comm	_MASK_20,4,2                    ## @MASK_20
	.no_dead_strip	_start_ts_capture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_ts_capture
_start_ts_capture:                      ; @start_ts_capture
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x19
	bl	_dprintk
	ldr	w8, [x19]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
Lloh2:
	adrp	x8, _TS_BUFLEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TS_BUFLEN@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	str	xzr, [x19, #8]
	ldr	w0, [x19, #4]
Lloh5:
	adrp	x20, _MASK_10@GOTPAGE
Lloh6:
	ldr	x20, [x20, _MASK_10@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_SAA7146_ISR_CLEAR
	ldr	w0, [x19, #4]
	ldr	w1, [x20]
	bl	_SAA7146_IER_ENABLE
	ldr	w0, [x19, #4]
Lloh7:
	adrp	x8, _MC1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MC1@GOTPAGEOFF]
Lloh9:
	adrp	x9, _MASK_04@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MASK_04@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	ldr	w8, [x9]
Lloh13:
	adrp	x9, _MASK_20@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MASK_20@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_saa7146_write
	ldr	w8, [x19]
LBB0_2:
	add	w0, w8, #1
	str	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"budget: %p\n"

	.comm	_TS_BUFLEN,4,2                  ; @TS_BUFLEN
	.comm	_MASK_10,4,2                    ; @MASK_10
	.comm	_MC1,4,2                        ; @MC1
	.comm	_MASK_04,4,2                    ; @MASK_04
	.comm	_MASK_20,4,2                    ; @MASK_20
	.no_dead_strip	_start_ts_capture
.subsections_via_symbols
