	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_pass_splitting         ## -- Begin function prepare_pass_splitting
	.p2align	4, 0x90
_prepare_pass_splitting:                ## @prepare_pass_splitting
	.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	_passes@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	setg	%cl
	movq	_MAX_PASSES@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	setle	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	cmpl	$0, (%r14)
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movq	_pass_min_uid@GOTPCREL(%rip), %r15
	movq	_pass_threshold@GOTPCREL(%rip), %r12
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_compute_max_uid
	incq	%rbx
	movslq	(%r14), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
LBB0_4:
	movq	_pass_min_uid@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, %edx
	movl	%eax, (%rcx,%rdx,4)
	movq	_max_uid@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	incl	%ecx
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	sete	%dil
	callq	_assert
	movq	_temp_binlog_directory@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.5:
	cmpl	$2, %ebx
	ja	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	callq	_vkprintf
	movq	$0, (%r14)
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_passes,4,2                     ## @passes
	.comm	_MAX_PASSES,4,2                 ## @MAX_PASSES
	.comm	_pass_min_uid,8,3               ## @pass_min_uid
	.comm	_pass_threshold,4,2             ## @pass_threshold
	.comm	_max_uid,4,2                    ## @max_uid
	.comm	_temp_binlog_directory,8,3      ## @temp_binlog_directory
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"only %d passes needed, ignoring temporary directory\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_pass_splitting         ; -- Begin function prepare_pass_splitting
	.p2align	2
_prepare_pass_splitting:                ; @prepare_pass_splitting
	.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
Lloh0:
	adrp	x21, _passes@GOTPAGE
Lloh1:
	ldr	x21, [x21, _passes@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #0
Lloh2:
	adrp	x9, _MAX_PASSES@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_PASSES@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ccmp	w8, w9, #0, gt
	cset	w0, le
	bl	_assert
	ldr	w8, [x21]
Lloh5:
	adrp	x20, _pass_min_uid@GOTPAGE
Lloh6:
	ldr	x20, [x20, _pass_min_uid@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x19, #0
	mov	w0, #0
Lloh7:
	adrp	x22, _pass_threshold@GOTPAGE
Lloh8:
	ldr	x22, [x22, _pass_threshold@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	str	w0, [x8, x19, lsl #2]
	ldr	w1, [x22]
	bl	_compute_max_uid
	add	x19, x19, #1
	ldrsw	x8, [x21]
	cmp	x19, x8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w19, #0
	mov	w0, #0
LBB0_4:
	ldr	x8, [x20]
	str	w0, [x8, w19, uxtw #2]
Lloh9:
	adrp	x8, _max_uid@GOTPAGE
Lloh10:
	ldr	x8, [x8, _max_uid@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	add	w8, w8, #1
	cmp	w0, w8
	cset	w0, eq
	bl	_assert
Lloh12:
	adrp	x20, _temp_binlog_directory@GOTPAGE
Lloh13:
	ldr	x20, [x20, _temp_binlog_directory@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #0
	ccmp	w19, #2, #2, ne
	b.hi	LBB0_6
; %bb.5:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_vkprintf
	str	xzr, [x20]
LBB0_6:
	mov	x0, 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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_passes,4,2                     ; @passes
	.comm	_MAX_PASSES,4,2                 ; @MAX_PASSES
	.comm	_pass_min_uid,8,3               ; @pass_min_uid
	.comm	_pass_threshold,4,2             ; @pass_threshold
	.comm	_max_uid,4,2                    ; @max_uid
	.comm	_temp_binlog_directory,8,3      ; @temp_binlog_directory
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"only %d passes needed, ignoring temporary directory\n"

.subsections_via_symbols
