	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_calc_listw                 ## -- Begin function dlg_calc_listw
	.p2align	4, 0x90
_dlg_calc_listw:                        ## @dlg_calc_listw
	.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
	imull	%edx, %edi
	testl	%edi, %edi
	jle	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movslq	%edx, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%edi, %r12d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rdi
	callq	_dlg_count_columns
	cmpl	%r15d, %eax
	cmovgl	%eax, %r15d
	movq	8(%r14,%rbx,8), %rdi
	callq	_dlg_count_columns
	cmpl	%r13d, %eax
	cmovgl	%eax, %r13d
	addq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	cmpq	%r12, %rbx
	jl	LBB0_3
## %bb.4:
	addl	%r15d, %r13d
	jmp	LBB0_5
LBB0_1:
	xorl	%r13d, %r13d
LBB0_5:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_calc_listw                 ; -- Begin function dlg_calc_listw
	.p2align	2
_dlg_calc_listw:                        ; @dlg_calc_listw
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	mul	w20, w2, w0
	cmp	w20, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x23, #0
	mov	w21, #0
	mov	w22, #0
	sxtw	x24, w2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x25, x19, x23, lsl #3
	ldr	x0, [x25]
	bl	_dlg_count_columns
	cmp	w0, w22
	csel	w22, w0, w22, gt
	ldr	x0, [x25, #8]
	bl	_dlg_count_columns
	cmp	w0, w21
	csel	w21, w0, w21, gt
	add	x23, x23, x24
	cmp	x23, x20
	b.lt	LBB0_2
; %bb.3:
	add	w0, w21, w22
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
