	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_btcx_calc_skips                ## -- Begin function btcx_calc_skips
	.p2align	4, 0x90
_btcx_calc_skips:                       ## @btcx_calc_skips
	.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	%rcx, %r14
	movl	%edi, %r11d
	movl	16(%rbp), %eax
	testl	%eax, %eax
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%r8, %rdx
	je	LBB0_20
## %bb.1:
	movl	%eax, %r15d
	shlq	$4, %r15
	movl	$9999, %ecx                     ## imm = 0x270F
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, %r12d
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rax
	movl	%r12d, %ecx
	cmpq	%rax, %r15
	je	LBB0_22
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rax), %edi
	movl	4(%r9,%rax), %r13d
	addl	%edi, %r13d
	jle	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%esi, %edi
	jg	LBB0_21
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r9,%rax), %ebx
	movl	12(%r9,%rax), %r12d
	leal	(%r12,%rbx), %r10d
	cmpl	%r11d, %r10d
	jle	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r11d, %ebx
	jle	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	-1(%rbx), %r12d
	cmpl	%ebx, %ecx
	cmovll	%ecx, %r12d
	jmp	LBB0_3
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	addl	%ebx, %r12d
	decl	%r12d
	cmpl	%r10d, %ecx
	cmovll	%ecx, %r12d
	testl	%r8d, %r8d
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	leal	-1(%r8), %ecx
	shlq	$4, %rcx
	movl	(%r14,%rcx), %ebx
	cmpl	%ebx, %edi
	jle	LBB0_15
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r8d, %ecx
	shlq	$4, %rcx
	testl	%edi, %edi
	movl	$0, %ebx
	cmovlel	%ebx, %edi
	movq	%rdi, 8(%r14,%rcx)
	cmpl	%esi, %r13d
	jl	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%esi, %r13d
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, (%r14,%rcx)
	incl	%r8d
	jmp	LBB0_3
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r13d, %ebx
	cmovgl	%ebx, %r13d
	jl	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%esi, %r13d
	jle	LBB0_3
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	%r14, %rcx
	cmpl	%esi, %r13d
	jl	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%esi, %r13d
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, (%rcx)
	jmp	LBB0_3
LBB0_20:
	movl	$9999, %r12d                    ## imm = 0x270F
	xorl	%r8d, %r8d
	jmp	LBB0_22
LBB0_21:
	movl	%ecx, %r12d
LBB0_22:
	movl	%r8d, (%rdx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	movq	_btcx_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_27
## %bb.23:
	movq	%rdx, %rbx
	leaq	L_.str(%rip), %rdi
	movl	%r11d, %esi
	movl	%r12d, %edx
	callq	_dprintk
	cmpl	$0, (%rbx)
	je	LBB0_26
## %bb.24:
	movq	%rbx, %r12
	addq	$8, %r14
	leaq	L_.str.1(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	movl	-8(%r14), %edx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_pr_cont
	incq	%rbx
	movl	(%r12), %eax
	addq	$16, %r14
	cmpq	%rax, %rbx
	jb	LBB0_25
LBB0_26:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_cont                        ## TAILCALL
LBB0_27:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_btcx_debug,8,3                 ## @btcx_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"btcx: skips line %d-%d:"

L_.str.1:                               ## @.str.1
	.asciz	" %d-%d"

L_.str.2:                               ## @.str.2
	.asciz	"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_btcx_calc_skips                ; -- Begin function btcx_calc_skips
	.p2align	2
_btcx_calc_skips:                       ; @btcx_calc_skips
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x4
	mov	x20, x3
	mov	x9, x0
	mov	w10, #0
	cbz	w6, LBB0_13
; %bb.1:
	add	x11, x5, #8
	mov	w8, #9999
	mov	w12, w6
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w13, w15, #1
	cmp	w8, w15
	csel	w8, w8, w13, lt
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x11, x11, #16
	subs	x12, x12, #1
	b.eq	LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w14, w13, [x11, #-8]
	add	w13, w13, w14
	cmp	w13, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w14, w1
	b.gt	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w15, w16, [x11]
	add	w16, w16, w15
	cmp	w16, w9
	b.le	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w15, w9
	b.gt	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w15, w16, #1
	cmp	w8, w16
	csel	w8, w8, w15, lt
	cbz	w10, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w15, w10, #1
	add	x15, x20, w15, uxtw #4
	ldr	w16, [x15]
	cmp	w14, w16
	b.le	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x15, x20, w10, uxtw #4
	cmp	w14, #0
	csel	w14, w14, wzr, gt
	str	x14, [x15, #8]
	cmp	w13, w1
	csel	w13, w13, w1, lt
	str	w13, [x15]
	add	w10, w10, #1
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w16, w13
	csel	w13, w16, w13, gt
	ccmp	w13, w1, #0, ge
	b.le	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w13, w1
	csel	w13, w13, w1, lt
	str	w13, [x15]
	b	LBB0_3
LBB0_13:
	mov	w8, #9999
LBB0_14:
	str	w10, [x19]
	str	w8, [x2]
Lloh0:
	adrp	x10, _btcx_debug@GOTPAGE
Lloh1:
	ldr	x10, [x10, _btcx_debug@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cbz	x10, LBB0_19
; %bb.15:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x9
	mov	x2, x8
	bl	_dprintk
	ldr	w8, [x19]
	cbz	w8, LBB0_18
; %bb.16:
	mov	x21, #0
	add	x22, x20, #8
Lloh5:
	adrp	x20, l_.str.1@PAGE
Lloh6:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldur	w9, [x22, #-8]
	stp	x8, x9, [sp]
	mov	x0, x20
	bl	_pr_cont
	add	x21, x21, #1
	ldr	w8, [x19]
	add	x22, x22, #16
	cmp	x21, x8
	b.lo	LBB0_17
LBB0_18:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_pr_cont
LBB0_19:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_btcx_debug,8,3                 ; @btcx_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"btcx: skips line %d-%d:"

l_.str.1:                               ; @.str.1
	.asciz	" %d-%d"

l_.str.2:                               ; @.str.2
	.asciz	"\n"

.subsections_via_symbols
