	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_resync
_init_resync:                           ## @init_resync
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_RESYNC_WINDOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_RESYNC_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %r14d
	leaq	16(%rdi), %r15
	movq	%r15, %rdi
	callq	_mempool_initialized
	movl	%eax, %edi
	callq	_BUG_ON
	movl	$0, (%rbx)
	movl	32(%rbx), %edx
	testl	%edx, %edx
	jle	LBB0_18
## %bb.1:
	movq	24(%rbx), %rcx
	leaq	-1(%rdx), %rsi
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rsi
	jae	LBB0_3
## %bb.2:
	xorl	%esi, %esi
LBB0_13:
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	leaq	(%rcx,%rsi,8), %rcx
	xorl	%edx, %edx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	je	LBB0_18
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	$1, (%rbx)
	jmp	LBB0_17
LBB0_18:
	movq	_r10buf_pool_alloc@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_r10buf_pool_free@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%rbx, %r8
	callq	_mempool_init
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:
	movq	$0, 8(%rbx)
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	andl	$-4, %edx
	xorl	%esi, %esi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$4, %rsi
	cmpq	%rsi, %rdx
	je	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rsi,8)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, (%rbx)
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 8(%rcx,%rsi,8)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, (%rbx)
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 16(%rcx,%rsi,8)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, (%rbx)
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 24(%rcx,%rsi,8)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, (%rbx)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_RESYNC_WINDOW,4,2              ## @RESYNC_WINDOW
	.comm	_RESYNC_BLOCK_SIZE,4,2          ## @RESYNC_BLOCK_SIZE
	.comm	_r10buf_pool_alloc,4,2          ## @r10buf_pool_alloc
	.comm	_r10buf_pool_free,4,2           ## @r10buf_pool_free
	.no_dead_strip	_init_resync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_resync
_init_resync:                           ; @init_resync
	.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	x8, _RESYNC_WINDOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RESYNC_WINDOW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RESYNC_BLOCK_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RESYNC_BLOCK_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sdiv	w20, w8, w9
	add	x21, x0, #16
	mov	x0, x21
	bl	_mempool_initialized
	bl	_BUG_ON
	str	wzr, [x19]
	ldr	w8, [x19, #32]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.1:
	ldr	x9, [x19, #24]
	cmp	w8, #8
	b.lo	LBB0_4
; %bb.2:
	add	x10, x9, x8, lsl #3
	cmp	x10, x19
	b.ls	LBB0_9
; %bb.3:
	add	x10, x19, #4
	cmp	x9, x10
	b.hs	LBB0_9
LBB0_4:
	mov	x10, #0
LBB0_5:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
	mov	w10, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_21
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cbz	x11, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	str	w10, [x19]
	b	LBB0_6
LBB0_9:
	and	x10, x8, #0xfffffff8
	add	x11, x9, #32
	mov	w12, #1
	mov	x13, x10
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	str	w12, [x19]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x11, x11, #64
	subs	x13, x13, #8
	b.eq	LBB0_20
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldur	q0, [x11, #-32]
	cmtst.2d	v0, v0, v0
	xtn.2s	v0, v0
	fmov	w14, s0
	tbnz	w14, #0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov.s	w14, v0[1]
	tbnz	w14, #0, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldur	q0, [x11, #-16]
	cmtst.2d	v0, v0, v0
	xtn.2s	v0, v0
	fmov	w14, s0
	tbnz	w14, #0, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov.s	w14, v0[1]
	tbnz	w14, #0, LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	q0, [x11]
	cmtst.2d	v0, v0, v0
	xtn.2s	v0, v0
	fmov	w14, s0
	tbnz	w14, #0, LBB0_10
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	mov.s	w14, v0[1]
	tbnz	w14, #0, LBB0_10
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	q0, [x11, #16]
	cmtst.2d	v0, v0, v0
	xtn.2s	v0, v0
	fmov	w14, s0
	tbnz	w14, #0, LBB0_10
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	mov.s	w14, v0[1]
	tbz	w14, #0, LBB0_11
	b	LBB0_10
LBB0_20:
	cmp	x10, x8
	b.ne	LBB0_5
LBB0_21:
Lloh6:
	adrp	x8, _r10buf_pool_alloc@GOTPAGE
Lloh7:
	ldr	x8, [x8, _r10buf_pool_alloc@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _r10buf_pool_free@GOTPAGE
Lloh10:
	ldr	x8, [x8, _r10buf_pool_free@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x4, x19
	bl	_mempool_init
	cbnz	w0, LBB0_23
; %bb.22:
	str	xzr, [x19, #8]
LBB0_23:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RESYNC_WINDOW,4,2              ; @RESYNC_WINDOW
	.comm	_RESYNC_BLOCK_SIZE,4,2          ; @RESYNC_BLOCK_SIZE
	.comm	_r10buf_pool_alloc,4,2          ; @r10buf_pool_alloc
	.comm	_r10buf_pool_free,4,2           ; @r10buf_pool_free
	.no_dead_strip	_init_resync
.subsections_via_symbols
