	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_update_gdb_sizes           ## -- Begin function tui_update_gdb_sizes
	.p2align	4, 0x90
_tui_update_gdb_sizes:                  ## @tui_update_gdb_sizes
	.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
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-104(%rbp), %r14
	leaq	-100(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rl_get_screen_size
	movq	_tui_active@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	movq	_TUI_CMD_WIN@GOTPCREL(%rip), %r12
	je	LBB0_2
## %bb.1:
	movq	(%r12), %rbx
LBB0_2:
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sprintf
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_execute_command
	movq	(%r12), %rax
	addq	$4, %rax
	cmpq	$0, (%r15)
	cmoveq	%r14, %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_sprintf
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_execute_command
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set width %d"

	.comm	_tui_active,8,3                 ## @tui_active
	.comm	_TUI_CMD_WIN,8,3                ## @TUI_CMD_WIN
L_.str.1:                               ## @.str.1
	.asciz	"set height %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_update_gdb_sizes           ; -- Begin function tui_update_gdb_sizes
	.p2align	2
_tui_update_gdb_sizes:                  ; @tui_update_gdb_sizes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	add	x19, sp, #16
	add	x20, sp, #12
	add	x0, sp, #16
	add	x1, sp, #12
	bl	_rl_get_screen_size
Lloh3:
	adrp	x21, _tui_active@GOTPAGE
Lloh4:
	ldr	x21, [x21, _tui_active@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh5:
	adrp	x22, _TUI_CMD_WIN@GOTPAGE
Lloh6:
	ldr	x22, [x22, _TUI_CMD_WIN@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, #0
	csel	x8, x20, x9, eq
	ldr	w2, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #22
	bl	_sprintf
	add	x0, sp, #22
	mov	w1, #0
	bl	_execute_command
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x9, x9, #4
	cmp	x8, #0
	csel	x8, x19, x9, eq
	ldr	w2, [x8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #22
	bl	_sprintf
	add	x0, sp, #22
	mov	w1, #0
	bl	_execute_command
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set width %d"

	.comm	_tui_active,8,3                 ; @tui_active
	.comm	_TUI_CMD_WIN,8,3                ; @TUI_CMD_WIN
l_.str.1:                               ; @.str.1
	.asciz	"set height %d"

.subsections_via_symbols
