	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generic_window_size            ## -- Begin function generic_window_size
	.p2align	4, 0x90
_generic_window_size:                   ## @generic_window_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	_TIOCGWINSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movzwl	-24(%rbp), %ecx
	cmpw	%cx, (%rbx)
	jne	LBB0_3
## %bb.4:
	movzwl	-22(%rbp), %edx
	xorl	%eax, %eax
	cmpw	%dx, (%r14)
	setne	%al
	jmp	LBB0_5
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	movl	$1, %eax
	movzwl	-22(%rbp), %edx
LBB0_5:
	movw	%cx, (%rbx)
	movw	%dx, (%r14)
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIOCGWINSZ,4,2                 ## @TIOCGWINSZ
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generic_window_size            ; -- Begin function generic_window_size
	.p2align	2
_generic_window_size:                   ; @generic_window_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x3
	mov	x20, x2
Lloh0:
	adrp	x8, _TIOCGWINSZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIOCGWINSZ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldrh	w9, [x20]
	ldrh	w8, [sp, #8]
	cmp	w9, w8
	b.ne	LBB0_4
; %bb.2:
	ldrh	w10, [x19]
	ldrh	w9, [sp, #10]
	cmp	w10, w9
	cset	w0, ne
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	ldrh	w9, [sp, #10]
	mov	w0, #1
LBB0_5:
	strh	w8, [x20]
	strh	w9, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TIOCGWINSZ,4,2                 ; @TIOCGWINSZ
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
