	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dscl2_calc_lb_num_partitions   ## -- Begin function dscl2_calc_lb_num_partitions
	.p2align	4, 0x90
_dscl2_calc_lb_num_partitions:          ## @dscl2_calc_lb_num_partitions
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	16(%rdi), %ebx
	movl	8(%rdi), %eax
	cmpl	%eax, %ebx
	cmovgel	%eax, %ebx
	movl	12(%rdi), %r8d
	cmpl	%eax, %r8d
	cmovll	%r8d, %eax
	movq	%rdx, %r8
	movl	$1, %r14d
	movl	$1, %r11d
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	addl	$5, %ebx
	movslq	%ebx, %rdx
	imulq	$715827883, %rdx, %r11          ## imm = 0x2AAAAAAB
	movq	%r11, %rdx
	shrq	$63, %rdx
	shrq	$32, %r11
	addl	%edx, %r11d
LBB0_2:
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	addl	$5, %eax
	cltq
	imulq	$715827883, %rax, %r14          ## imm = 0x2AAAAAAB
	movq	%r14, %rax
	shrq	$63, %rax
	shrq	$32, %r14
	addl	%eax, %r14d
LBB0_4:
	movq	_LB_MEMORY_CONFIG_1@GOTPCREL(%rip), %rdx
	movl	$970, %r9d                      ## imm = 0x3CA
	movl	$970, %r10d                     ## imm = 0x3CA
	movl	$970, %eax                      ## imm = 0x3CA
	cmpl	%esi, (%rdx)
	je	LBB0_7
## %bb.5:
	movq	_LB_MEMORY_CONFIG_2@GOTPCREL(%rip), %rdx
	movl	$1290, %r9d                     ## imm = 0x50A
	movl	$1290, %r10d                    ## imm = 0x50A
	movl	$1290, %eax                     ## imm = 0x50A
	cmpl	%esi, (%rdx)
	je	LBB0_7
## %bb.6:
	movq	_LB_MEMORY_CONFIG_3@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	movl	$2260, %r10d                    ## imm = 0x8D4
	movl	$2744, %r9d                     ## imm = 0xAB8
	cmovnel	%r9d, %r10d
	movl	$3712, %eax                     ## imm = 0xE80
	cmovnel	%r9d, %eax
LBB0_7:
	xorl	%edx, %edx
	idivl	%r11d
	movl	%eax, (%r8)
	movl	%r10d, %eax
	xorl	%edx, %edx
	idivl	%r14d
	movl	%eax, (%rcx)
	movl	%r9d, %eax
	xorl	%edx, %edx
	idivl	%r11d
	cmpq	$0, (%rdi)
	setne	%sil
	movl	(%r8), %edx
	cmpl	%edx, %eax
	setl	%bl
	testb	%bl, %sil
	cmovnel	%eax, %edx
	jne	LBB0_9
## %bb.8:
	cmpl	$65, %edx
	jl	LBB0_10
LBB0_9:
	cmpl	$64, %edx
	movl	$64, %eax
	cmovll	%edx, %eax
	movl	%eax, (%r8)
LBB0_10:
	cmpl	$65, (%rcx)
	jl	LBB0_12
## %bb.11:
	movl	$64, (%rcx)
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LB_MEMORY_CONFIG_1,4,2         ## @LB_MEMORY_CONFIG_1
	.comm	_LB_MEMORY_CONFIG_2,4,2         ## @LB_MEMORY_CONFIG_2
	.comm	_LB_MEMORY_CONFIG_3,4,2         ## @LB_MEMORY_CONFIG_3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dscl2_calc_lb_num_partitions   ; -- Begin function dscl2_calc_lb_num_partitions
	.p2align	2
_dscl2_calc_lb_num_partitions:          ; @dscl2_calc_lb_num_partitions
	.cfi_startproc
; %bb.0:
	ldp	w10, w8, [x0, #12]
	ldr	w9, [x0, #8]
	cmp	w8, w9
	csel	w8, w8, w9, lt
	cmp	w10, w9
	csel	w9, w10, w9, lt
	add	w10, w8, #5
	mov	w11, #43691
	movk	w11, #10922, lsl #16
	smull	x10, w10, w11
	lsr	x12, x10, #63
	lsr	x10, x10, #32
	add	w10, w10, w12
	cmp	w8, #0
	csinc	w8, w10, wzr, ne
	add	w10, w9, #5
	smull	x10, w10, w11
	lsr	x11, x10, #63
	lsr	x10, x10, #32
	add	w10, w10, w11
	cmp	w9, #0
	csinc	w9, w10, wzr, ne
Lloh0:
	adrp	x10, _LB_MEMORY_CONFIG_1@GOTPAGE
Lloh1:
	ldr	x10, [x10, _LB_MEMORY_CONFIG_1@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w10, w1
	b.ne	LBB0_2
; %bb.1:
	mov	w10, #970
	mov	w11, #970
	mov	w12, #970
	b	LBB0_5
LBB0_2:
Lloh3:
	adrp	x10, _LB_MEMORY_CONFIG_2@GOTPAGE
Lloh4:
	ldr	x10, [x10, _LB_MEMORY_CONFIG_2@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w10, w1
	b.ne	LBB0_4
; %bb.3:
	mov	w10, #1290
	mov	w11, #1290
	mov	w12, #1290
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x10, _LB_MEMORY_CONFIG_3@GOTPAGE
Lloh7:
	ldr	x10, [x10, _LB_MEMORY_CONFIG_3@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x10]
	mov	w10, #2744
	mov	w12, #2260
	cmp	w11, w1
	csel	w11, w12, w10, eq
	mov	w12, #3712
	csel	w12, w12, w10, eq
LBB0_5:
	sdiv	w12, w12, w8
	str	w12, [x2]
	sdiv	w9, w11, w9
	str	w9, [x3]
	ldr	x9, [x0]
	cmp	x9, #0
	cset	w9, ne
	ldr	w11, [x2]
	sdiv	w8, w10, w8
	cmp	w8, w11
	cset	w10, lt
	ands	w9, w9, w10
	csel	w8, w8, w11, ne
	tbnz	w9, #0, LBB0_7
; %bb.6:
	cmp	w8, #65
	b.lt	LBB0_8
LBB0_7:
	mov	w9, #64
	cmp	w8, #64
	csel	w8, w8, w9, lt
	str	w8, [x2]
LBB0_8:
	ldr	w8, [x3]
	cmp	w8, #65
	b.lt	LBB0_10
; %bb.9:
	mov	w8, #64
	str	w8, [x3]
LBB0_10:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LB_MEMORY_CONFIG_1,4,2         ; @LB_MEMORY_CONFIG_1
	.comm	_LB_MEMORY_CONFIG_2,4,2         ; @LB_MEMORY_CONFIG_2
	.comm	_LB_MEMORY_CONFIG_3,4,2         ; @LB_MEMORY_CONFIG_3
.subsections_via_symbols
