	.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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movq	%r15, %rdx
	callq	_dprintk
	movl	(%r15), %eax
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_TS_HEIGHT@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	movq	_TS_WIDTH@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movl	%edx, %edi
	imull	%ebx, %edi
	addq	16(%r15), %rdi
	xorl	%esi, %esi
	callq	_memset
	incl	%ebx
	cmpl	(%r14), %ebx
	jb	LBB0_3
LBB0_4:
	movq	$0, 8(%r15)
	movl	4(%r15), %edi
	movq	_MASK_10@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_SAA7146_ISR_CLEAR
	movl	4(%r15), %edi
	movl	(%rbx), %esi
	callq	_SAA7146_IER_ENABLE
	movl	4(%r15), %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	(%r15), %eax
LBB0_5:
	incl	%eax
	movl	%eax, (%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"budget: %p\n"

	.comm	_TS_HEIGHT,4,2                  ## @TS_HEIGHT
	.comm	_TS_WIDTH,4,2                   ## @TS_WIDTH
	.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	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	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_5
; %bb.1:
Lloh2:
	adrp	x20, _TS_HEIGHT@GOTPAGE
Lloh3:
	ldr	x20, [x20, _TS_HEIGHT@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.2:
	mov	w21, #0
Lloh4:
	adrp	x22, _TS_WIDTH@GOTPAGE
Lloh5:
	ldr	x22, [x22, _TS_WIDTH@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w2, [x22]
	mul	w9, w2, w21
	add	x0, x8, x9
	mov	w1, #0
	bl	_memset
	add	w21, w21, #1
	ldr	w8, [x20]
	cmp	w21, w8
	b.lo	LBB0_3
LBB0_4:
	str	xzr, [x19, #8]
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x20, _MASK_10@GOTPAGE
Lloh7:
	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]
Lloh8:
	adrp	x8, _MC1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MC1@GOTPAGEOFF]
Lloh10:
	adrp	x9, _MASK_04@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MASK_04@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	ldr	w8, [x9]
Lloh14:
	adrp	x9, _MASK_20@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MASK_20@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_saa7146_write
	ldr	w8, [x19]
LBB0_5:
	add	w0, w8, #1
	str	w0, [x19]
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"budget: %p\n"

	.comm	_TS_HEIGHT,4,2                  ; @TS_HEIGHT
	.comm	_TS_WIDTH,4,2                   ; @TS_WIDTH
	.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
