	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function check_resend
LCPI0_0:
	.quad	0x3ff8000000000000              ## double 1.5
LCPI0_1:
	.quad	0x3fb999999999999a              ## double 0.10000000000000001
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_check_resend
	.p2align	4, 0x90
_check_resend:                          ## @check_resend
	.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	%rdi, %r15
	movq	16(%rdi), %r13
	movl	(%rdi), %r8d
	movl	$0, %r12d
	movl	$0, %r14d
	testl	%r8d, %r8d
	jle	LBB0_8
## %bb.1:
	movq	8(%r15), %rax
	movq	_TL_SEARCH_RESULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r8, %rdx
	shlq	$4, %rdx
	xorl	%esi, %esi
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%edi, %r14d
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rsi
	cmpq	%rsi, %rdx
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$16, (%rax,%rsi)
	jl	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax,%rsi), %rcx
	cmpl	%r9d, (%rcx)
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%rcx), %edi
	cmpl	(%r13), %edi
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	cmpl	%edi, 8(%rcx)
	setg	%bl
	addl	%ebx, %r12d
	jmp	LBB0_6
LBB0_8:
	movsd	8(%r13), %xmm0                  ## xmm0 = mem[0],zero
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	movl	%r14d, %edx
	movl	%r12d, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	movb	$1, %al
	callq	_vkprintf
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r14d, %xmm0
	movsd	8(%r13), %xmm1                  ## xmm1 = mem[0],zero
	mulsd	LCPI0_0(%rip), %xmm1
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_9
## %bb.10:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r12d, %xmm0
	movl	(%r15), %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	mulsd	LCPI0_1(%rip), %xmm1
	ucomisd	%xmm0, %xmm1
	movl	$0, %r14d
	jbe	LBB0_21
## %bb.11:
	testl	%eax, %eax
	jle	LBB0_12
## %bb.13:
	movl	$8, %r12d
	movq	_TL_SEARCH_RESULT@GOTPCREL(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addq	$16, %r12
	cmpq	%rcx, %rbx
	jge	LBB0_20
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	cmpl	$16, -8(%rcx,%r12)
	jl	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	(%rcx,%r12), %rcx
	movl	(%rcx), %edx
	cmpl	(%rsi), %edx
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	12(%rcx), %edx
	cmpl	(%r13), %edx
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	%edx, 8(%rcx)
	jle	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	$4, %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_vkprintf
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_resend_one
	movq	_TL_SEARCH_RESULT@GOTPCREL(%rip), %rsi
	addl	%eax, %r14d
	movl	(%r15), %eax
	jmp	LBB0_19
LBB0_9:
	xorl	%r14d, %r14d
	jmp	LBB0_21
LBB0_12:
	xorl	%r14d, %r14d
LBB0_20:
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_vkprintf
LBB0_21:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TL_SEARCH_RESULT,4,2           ## @TL_SEARCH_RESULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"total_sum = %d, limit = %d, count = %d, tot_num = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Resending #%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"result = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_resend                   ; -- Begin function check_resend
	.p2align	2
_check_resend:                          ; @check_resend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x23, [x0, #16]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w20, #0
	mov	w21, #0
	ldr	x10, [x19, #8]
Lloh0:
	adrp	x9, _TL_SEARCH_RESULT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TL_SEARCH_RESULT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	x10, x10, #8
	mov	x11, x8
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w12, w20
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #16
	subs	x11, x11, #1
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w12, [x10, #-8]
	cmp	w12, #16
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x13, [x10]
	ldr	w12, [x13]
	cmp	w12, w9
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w12, [x13, #12]
	ldr	w14, [x23]
	cmp	w12, w14
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w13, [x13, #8]
	cmp	w13, w12
	cinc	w21, w21, gt
	b	LBB0_2
LBB0_8:
	mov	w21, #0
	mov	w20, #0
LBB0_9:
	ldr	d0, [x23, #8]
	stp	x21, x8, [sp, #8]
	str	d0, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	mov	x2, x20
	bl	_vkprintf
	scvtf	d0, w20
	ldr	d1, [x23, #8]
	fmov	d2, #1.50000000
	fmul	d1, d1, d2
	fcmp	d1, d0
	b.le	LBB0_19
; %bb.10:
	scvtf	d0, w21
	ldr	w8, [x19]
	scvtf	d1, w8
	mov	x9, #-7378697629483820647
	movk	x9, #39322
	movk	x9, #16313, lsl #48
	fmov	d2, x9
	fmul	d1, d1, d2
	fcmp	d1, d0
	b.le	LBB0_19
; %bb.11:
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.12:
	mov	x24, #0
	mov	x21, #0
	mov	w20, #0
Lloh5:
	adrp	x25, _TL_SEARCH_RESULT@GOTPAGE
Lloh6:
	ldr	x25, [x25, _TL_SEARCH_RESULT@GOTPAGEOFF]
Lloh7:
	adrp	x22, l_.str.1@PAGE
Lloh8:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x21, x21, #1
	add	x24, x24, #16
	cmp	x21, w8, sxtw
	b.ge	LBB0_21
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	w10, [x9, x24]
	cmp	w10, #16
	b.lt	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x9, x9, x24
	ldr	x9, [x9, #8]
	ldr	w10, [x9]
	ldr	w11, [x25]
	cmp	w10, w11
	b.ne	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w10, [x9, #12]
	ldr	w11, [x23]
	cmp	w10, w11
	b.ne	LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w9, [x9, #8]
	cmp	w9, w10
	b.le	LBB0_13
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w0, #4
	mov	x1, x22
	mov	x2, x21
	bl	_vkprintf
	mov	x0, x19
	mov	x1, x21
	bl	_resend_one
	add	w20, w20, w0
	ldr	w8, [x19]
	b	LBB0_13
LBB0_19:
	mov	w20, #0
	b	LBB0_22
LBB0_20:
	mov	w20, #0
LBB0_21:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #4
	mov	x2, x20
	bl	_vkprintf
LBB0_22:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TL_SEARCH_RESULT,4,2           ; @TL_SEARCH_RESULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"total_sum = %d, limit = %d, count = %d, tot_num = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Resending #%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"result = %d\n"

.subsections_via_symbols
