	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctrl_resize
_ctrl_resize:                           ## @ctrl_resize
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%edi, %r12d
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	_WM_GETTEXTLENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_GetProcessHeap
	leal	1(%r15), %ebx
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r14
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	_WM_GETTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_SendMessageW
	movl	%r12d, %edi
	callq	_GetDC
	movl	%eax, %ebx
	movq	_WM_GETFONT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movslq	%eax, %rsi
	movl	%ebx, %edi
	callq	_SelectObject
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_lstrlenW
	leaq	-64(%rbp), %rcx
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_GetTextExtentPoint32W
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_SelectObject
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_ReleaseDC
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_9
## %bb.2:
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.3:
	movl	$1, %ebx
	movq	%r14, %rax
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rax
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ecx
	cmpb	$10, %cl
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testb	%cl, %cl
	jne	LBB0_8
## %bb.6:
	imull	-64(%rbp), %ebx
	addl	$8, %ebx
	jmp	LBB0_10
LBB0_9:
	leaq	-56(%rbp), %rsi
	movl	%r12d, %edi
	callq	_GetWindowRect
	movl	-56(%rbp), %ebx
	subl	-52(%rbp), %ebx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_10:
	movl	-60(%rbp), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_max
	leaq	4(%rax), %rdi
	movl	%r15d, %esi
	callq	_min
	movq	_SWP_NOZORDER@GOTPCREL(%rip), %rcx
	movq	_SWP_NOMOVE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_SWP_NOACTIVATE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%rsp)
	movl	%r12d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movl	%ebx, %r9d
	callq	_SetWindowPos
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_HeapFree
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_WM_GETTEXTLENGTH,4,2           ## @WM_GETTEXTLENGTH
	.comm	_WM_GETTEXT,4,2                 ## @WM_GETTEXT
	.comm	_WM_GETFONT,4,2                 ## @WM_GETFONT
	.comm	_SWP_NOZORDER,4,2               ## @SWP_NOZORDER
	.comm	_SWP_NOMOVE,4,2                 ## @SWP_NOMOVE
	.comm	_SWP_NOACTIVATE,4,2             ## @SWP_NOACTIVATE
	.no_dead_strip	_ctrl_resize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctrl_resize
_ctrl_resize:                           ; @ctrl_resize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh2:
	adrp	x8, _WM_GETTEXTLENGTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WM_GETTEXTLENGTH@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_SendMessageW
	mov	x24, x0
	bl	_GetProcessHeap
	add	w25, w24, #1
	mov	w1, #0
	mov	x2, x25
	bl	_HeapAlloc
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x8, _WM_GETTEXT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WM_GETTEXT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x25
	mov	x3, x20
	bl	_SendMessageW
	mov	x0, x19
	bl	_GetDC
	mov	x25, x0
Lloh8:
	adrp	x8, _WM_GETFONT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WM_GETFONT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_SendMessageW
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	x0, x25
	bl	_SelectObject
	mov	x26, x0
	mov	x0, x20
	bl	_lstrlenW
	mov	x2, x0
	add	x3, sp, #8
	mov	x0, x25
	mov	x1, x20
	bl	_GetTextExtentPoint32W
	mov	x0, x25
	mov	x1, x26
	bl	_SelectObject
	mov	x0, x19
	mov	x1, x25
	bl	_ReleaseDC
	cbz	x23, LBB0_9
; %bb.2:
	cbz	w24, LBB0_9
; %bb.3:
	mov	w8, #1
	mov	x9, x20
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w8, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9]
	cmp	w10, #10
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w10, LBB0_5
; %bb.8:
	ldr	w9, [sp, #8]
	orr	w10, wzr, #0x8
	madd	w23, w9, w8, w10
	b	LBB0_10
LBB0_9:
	mov	x1, sp
	mov	x0, x19
	bl	_GetWindowRect
	ldp	w8, w9, [sp]
	sub	w23, w8, w9
LBB0_10:
	ldr	w0, [sp, #12]
	mov	x1, x22
	bl	_max
	add	x0, x0, #4
	mov	x1, x21
	bl	_min
	mov	x4, x0
Lloh11:
	adrp	x8, _SWP_NOZORDER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SWP_NOZORDER@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _SWP_NOMOVE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SWP_NOMOVE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _SWP_NOACTIVATE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SWP_NOACTIVATE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w6, w8, w9
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	mov	w3, #0
	mov	x5, x23
	bl	_SetWindowPos
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x20
	bl	_HeapFree
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_WM_GETTEXTLENGTH,4,2           ; @WM_GETTEXTLENGTH
	.comm	_WM_GETTEXT,4,2                 ; @WM_GETTEXT
	.comm	_WM_GETFONT,4,2                 ; @WM_GETFONT
	.comm	_SWP_NOZORDER,4,2               ; @SWP_NOZORDER
	.comm	_SWP_NOMOVE,4,2                 ; @SWP_NOMOVE
	.comm	_SWP_NOACTIVATE,4,2             ; @SWP_NOACTIVATE
	.no_dead_strip	_ctrl_resize
.subsections_via_symbols
