	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_will_resize                ## -- Begin function dlg_will_resize
	.p2align	4, 0x90
_dlg_will_resize:                       ## @dlg_will_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_dlg_trace_win
	movq	%r15, %rdi
	movl	$20, %esi
	callq	_wtimeout
	xorl	%r14d, %r14d
	movl	$-1, %ebx
	movq	_ERR@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	leal	9(%r13), %eax
	cmpl	%eax, %ebx
	jge	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	%r15, %rdi
	callq	_wgetch
	cmpl	(%r12), %eax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_KEY_RESIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%r14d
	movl	%ebx, %r13d
	jmp	LBB0_4
LBB0_6:
	movl	%eax, %edi
	callq	_ungetch
LBB0_5:
	leal	1(%r14), %esi
	cmpl	$1, %r14d
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dlg_trace_msg                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR,4,2                        ## @ERR
	.comm	_KEY_RESIZE,4,2                 ## @KEY_RESIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"# caught %d KEY_RESIZE key%s\n"

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_will_resize                ; -- Begin function dlg_will_resize
	.p2align	2
_dlg_will_resize:                       ; @dlg_will_resize
	.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, x0
	bl	_dlg_trace_win
	mov	x0, x19
	mov	w1, #20
	bl	_wtimeout
	mov	w20, #0
	mov	w24, #0
	mov	w21, #-1
Lloh0:
	adrp	x22, _ERR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ERR@GOTPAGEOFF]
Lloh2:
	adrp	x23, _KEY_RESIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _KEY_RESIZE@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w24, #9
	cmp	w21, w8
	b.ge	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w21, w21, #1
	mov	x0, x19
	bl	_wgetch
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w20, w20, #1
	mov	x24, x21
	b	LBB0_1
LBB0_5:
	bl	_ungetch
LBB0_6:
	add	w1, w20, #1
Lloh4:
	adrp	x8, l_.str.2@PAGE
Lloh5:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh6:
	adrp	x9, l_.str.1@PAGE
Lloh7:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w20, #1
	csel	x2, x9, x8, eq
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_dlg_trace_msg
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR,4,2                        ; @ERR
	.comm	_KEY_RESIZE,4,2                 ; @KEY_RESIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"# caught %d KEY_RESIZE key%s\n"

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"s"

.subsections_via_symbols
