	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp1_dscl_calc_lb_num_partitions ## -- Begin function dpp1_dscl_calc_lb_num_partitions
	.p2align	4, 0x90
_dpp1_dscl_calc_lb_num_partitions:      ## @dpp1_dscl_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	%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, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r13
	movl	24(%rdi), %r14d
	movl	16(%rdi), %ebx
	cmpl	%ebx, %r14d
	cmovgel	%ebx, %r14d
	movl	20(%rdi), %eax
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
	testl	%r14d, %r14d
	movl	$1, %eax
	cmovel	%eax, %r14d
	movl	8(%rdi), %edi
	testl	%ebx, %ebx
	cmovel	%eax, %ebx
	callq	_dpp1_dscl_get_lb_depth_bpc
	movl	%r14d, %ecx
	imull	%eax, %ecx
	addl	$71, %ecx
	movslq	%ecx, %rcx
	imulq	$954437177, %rcx, %rdi          ## imm = 0x38E38E39
	movq	%rdi, %rcx
	shrq	$63, %rcx
	shrq	$32, %rdi
	sarl	$4, %edi
	addl	%ecx, %edi
	imull	%eax, %ebx
	addl	$71, %ebx
	movslq	%ebx, %rax
	imulq	$954437177, %rax, %rbx          ## imm = 0x38E38E39
	movq	%rbx, %rax
	shrq	$63, %rax
	shrq	$32, %rbx
	sarl	$4, %ebx
	addl	%eax, %ebx
	addl	$5, %r14d
	movslq	%r14d, %rax
	imulq	$715827883, %rax, %rcx          ## imm = 0x2AAAAAAB
	movq	%rcx, %rax
	shrq	$63, %rax
	shrq	$32, %rcx
	addl	%eax, %ecx
	movq	_LB_MEMORY_CONFIG_1@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	$816, %esi                      ## imm = 0x330
	movl	$984, %r8d                      ## imm = 0x3D8
	movl	$816, %eax                      ## imm = 0x330
	jmp	LBB0_5
LBB0_2:
	movq	_LB_MEMORY_CONFIG_2@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_4
## %bb.3:
	movl	$1088, %esi                     ## imm = 0x440
	movl	$1312, %r8d                     ## imm = 0x520
	movl	$1088, %eax                     ## imm = 0x440
	jmp	LBB0_5
LBB0_4:
	movq	_LB_MEMORY_CONFIG_3@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	movl	$1904, %esi                     ## imm = 0x770
	movl	$2752, %r8d                     ## imm = 0xAC0
	cmovnel	%r8d, %esi
	movl	$4448, %eax                     ## imm = 0x1160
	cmovnel	%r8d, %eax
LBB0_5:
	xorl	%edx, %edx
	idivl	%edi
	movl	%eax, (%r15)
	movl	%esi, %eax
	xorl	%edx, %edx
	idivl	%ebx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, (%rsi)
	movl	%r8d, %eax
	xorl	%edx, %edx
	idivl	%ecx
	cmpq	$0, (%r13)
	setne	%dl
	movl	(%r15), %ecx
	cmpl	%ecx, %eax
	setl	%bl
	testb	%bl, %dl
	cmovnel	%eax, %ecx
	jne	LBB0_7
## %bb.6:
	cmpl	$65, %ecx
	jl	LBB0_8
LBB0_7:
	cmpl	$64, %ecx
	movl	$64, %eax
	cmovll	%ecx, %eax
	movl	%eax, (%r15)
LBB0_8:
	cmpl	$65, (%rsi)
	jl	LBB0_10
## %bb.9:
	movl	$64, (%rsi)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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	_dpp1_dscl_calc_lb_num_partitions ; -- Begin function dpp1_dscl_calc_lb_num_partitions
	.p2align	2
_dpp1_dscl_calc_lb_num_partitions:      ; @dpp1_dscl_calc_lb_num_partitions
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldp	w10, w8, [x0, #20]
	ldr	w9, [x0, #16]
	cmp	w8, w9
	csel	w8, w8, w9, lt
	cmp	w10, w9
	csel	w9, w10, w9, lt
	cmp	w8, #0
	csinc	w23, w8, wzr, ne
	cmp	w9, #0
	csinc	w24, w9, wzr, ne
	ldr	w0, [x0, #8]
	bl	_dpp1_dscl_get_lb_depth_bpc
	mul	w8, w23, w0
	add	w8, w8, #71
	mov	w9, #36409
	movk	w9, #14563, lsl #16
	smull	x8, w8, w9
	lsr	x10, x8, #32
	lsr	x8, x8, #63
	add	w8, w8, w10, asr #4
	mul	w10, w24, w0
	add	w10, w10, #71
	smull	x9, w10, w9
	lsr	x10, x9, #32
	lsr	x9, x9, #63
	add	w9, w9, w10, asr #4
	add	w10, w23, #5
	mov	w11, #43691
	movk	w11, #10922, lsl #16
	smull	x10, w10, w11
	lsr	x11, x10, #63
	lsr	x10, x10, #32
	add	w10, w10, w11
Lloh0:
	adrp	x11, _LB_MEMORY_CONFIG_1@GOTPAGE
Lloh1:
	ldr	x11, [x11, _LB_MEMORY_CONFIG_1@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	cmp	w11, w22
	b.ne	LBB0_2
; %bb.1:
	mov	w12, #816
	mov	w11, #984
	mov	w13, #816
	b	LBB0_5
LBB0_2:
Lloh3:
	adrp	x11, _LB_MEMORY_CONFIG_2@GOTPAGE
Lloh4:
	ldr	x11, [x11, _LB_MEMORY_CONFIG_2@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	cmp	w11, w22
	b.ne	LBB0_4
; %bb.3:
	mov	w12, #1088
	mov	w11, #1312
	mov	w13, #1088
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x11, _LB_MEMORY_CONFIG_3@GOTPAGE
Lloh7:
	ldr	x11, [x11, _LB_MEMORY_CONFIG_3@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x11]
	mov	w11, #2752
	mov	w13, #1904
	cmp	w12, w22
	csel	w12, w13, w11, eq
	mov	w13, #4448
	csel	w13, w13, w11, eq
LBB0_5:
	sdiv	w8, w13, w8
	str	w8, [x20]
	sdiv	w8, w12, w9
	str	w8, [x19]
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w8, ne
	ldr	w9, [x20]
	sdiv	w10, w11, w10
	cmp	w10, w9
	cset	w11, lt
	ands	w11, w8, w11
	csel	w8, w10, w9, ne
	tbnz	w11, #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, [x20]
LBB0_8:
	ldr	w8, [x19]
	cmp	w8, #65
	b.lt	LBB0_10
; %bb.9:
	mov	w8, #64
	str	w8, [x19]
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	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
