	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_limit_columns              ## -- Begin function dlg_limit_columns
	.p2align	4, 0x90
_dlg_limit_columns:                     ## @dlg_limit_columns
	.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
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_dlg_index_columns
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_dlg_count_wchars
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movslq	%r15d, %rcx
	movl	(%rbx,%rcx,4), %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edx
	movl	(%rbx,%rdx,4), %edx
	subl	%ecx, %edx
	cmpl	%r14d, %edx
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%rax), %edx
	cmpl	$1, %eax
	movl	%edx, %eax
	jg	LBB0_2
## %bb.4:
	xorl	%eax, %eax
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	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_limit_columns              ; -- Begin function dlg_limit_columns
	.p2align	2
_dlg_limit_columns:                     ; @dlg_limit_columns
	.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	x21, x2
	mov	x19, x1
	mov	x22, x0
	bl	_dlg_index_columns
	mov	x20, x0
	mov	x0, x22
	bl	_dlg_count_wchars
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	ldr	w8, [x20, w21, sxtw #2]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x20, w0, uxtw #2]
	sub	w9, w9, w8
	cmp	w9, w19
	b.le	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	w0, w0, #1
	b.gt	LBB0_2
; %bb.4:
	mov	w0, #0
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
