	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cl_ssize                       ## -- Begin function cl_ssize
	.p2align	4, 0x90
_cl_ssize:                              ## @cl_ssize
	.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	%r8, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	testq	%r8, %r8
	je	LBB0_2
## %bb.1:
	movl	$1, (%rbx)
LBB0_2:
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TIOCGWINSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	callq	_ioctl
	xorl	%r12d, %r12d
	cmpl	$-1, %eax
	movq	-80(%rbp), %r15
	movq	-72(%rbp), %rdx
	movq	%rdx, %r13
	cmoveq	%r12, %r13
	cmovneq	%r15, %r12
	testq	%r12, %r12
	sete	%cl
	testq	%r13, %r13
	sete	%al
	orb	%cl, %al
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.3:
	testb	%al, %al
	je	LBB0_22
LBB0_4:
	testq	%rbx, %rbx
	je	LBB0_30
## %bb.5:
	movl	$0, (%rbx)
	jmp	LBB0_30
LBB0_6:
	testb	%al, %al
	je	LBB0_13
## %bb.7:
	movq	%rdx, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_31
## %bb.8:
	testq	%r12, %r12
	je	LBB0_9
## %bb.11:
	testq	%r13, %r13
	je	LBB0_33
LBB0_12:
	movq	%rbx, %rdx
LBB0_13:
	testq	%r15, %r15
	movl	$24, %ebx
	cmovneq	%r15, %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_14:
	movq	%rdx, %r12
	leaq	L_.str.5(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, %rbx
LBB0_16:
	leaq	L_.str.6(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	movq	%r12, %rcx
	je	LBB0_18
## %bb.17:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, %rcx
LBB0_18:
	testq	%r15, %r15
	je	LBB0_20
## %bb.19:
	movq	%rbx, (%r15)
LBB0_20:
	testq	%r14, %r14
	je	LBB0_30
## %bb.21:
	movq	%rcx, (%r14)
	jmp	LBB0_30
LBB0_22:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_26
## %bb.23:
	movq	_O_LINES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_O_VAL
	cmpq	%rax, %r12
	jne	LBB0_26
## %bb.24:
	movq	_O_COLUMNS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_O_VAL
	cmpq	%rax, %r13
	je	LBB0_4
LBB0_26:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movq	%r12, (%rax)
LBB0_28:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	movq	%r13, (%rax)
LBB0_30:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movq	%r12, %r15
	jmp	LBB0_35
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	callq	_tigetnum
	testl	%eax, %eax
	js	LBB0_32
## %bb.10:
	movl	%eax, %r15d
	testq	%r13, %r13
	jne	LBB0_12
LBB0_33:
	leaq	L_.str.3(%rip), %rdi
	callq	_tigetnum
	testl	%eax, %eax
	js	LBB0_36
## %bb.34:
	movl	%eax, %r13d
LBB0_35:
	testq	%r15, %r15
	movl	$24, %ebx
	cmovneq	%r15, %rbx
	movq	%r13, %rdx
	testq	%r13, %r13
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_14
	jmp	LBB0_37
LBB0_32:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_msgq
	xorl	%r15d, %r15d
	testq	%r13, %r13
	jne	LBB0_12
	jmp	LBB0_33
LBB0_36:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_msgq
	testq	%r15, %r15
	movl	$24, %ebx
	cmovneq	%r15, %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_37:
	movl	$80, %edx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_STDERR_FILENO,4,2              ## @STDERR_FILENO
	.comm	_TIOCGWINSZ,4,2                 ## @TIOCGWINSZ
	.comm	_O_LINES,4,2                    ## @O_LINES
	.comm	_O_COLUMNS,4,2                  ## @O_COLUMNS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TERM"

L_.str.1:                               ## @.str.1
	.asciz	"lines"

	.comm	_M_SYSERR,4,2                   ## @M_SYSERR
L_.str.2:                               ## @.str.2
	.asciz	"tigetnum: lines"

L_.str.3:                               ## @.str.3
	.asciz	"cols"

L_.str.4:                               ## @.str.4
	.asciz	"tigetnum: cols"

L_.str.5:                               ## @.str.5
	.asciz	"LINES"

L_.str.6:                               ## @.str.6
	.asciz	"COLUMNS"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cl_ssize                       ; -- Begin function cl_ssize
	.p2align	2
_cl_ssize:                              ; @cl_ssize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x24, x1
	mov	x22, x0
	cbz	x4, LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x23]
LBB0_2:
Lloh0:
	adrp	x8, _STDERR_FILENO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STDERR_FILENO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _TIOCGWINSZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIOCGWINSZ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	ldp	x25, x26, [sp]
	cmn	w0, #1
	csel	x21, xzr, x26, eq
	csel	x27, xzr, x25, eq
	cmp	x27, #0
	ccmp	x21, #0, #4, ne
	cset	w8, eq
	cbz	w24, LBB0_6
; %bb.3:
	cbz	w8, LBB0_17
LBB0_4:
	cbz	x23, LBB0_24
; %bb.5:
	str	wzr, [x23]
	b	LBB0_24
LBB0_6:
	cbz	w8, LBB0_10
; %bb.7:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_25
; %bb.8:
	cbz	x27, LBB0_26
; %bb.9:
	cbz	x21, LBB0_28
LBB0_10:
	mov	w8, #24
	cmp	x25, #0
	csel	x22, x8, x25, eq
	mov	x21, x26
LBB0_11:
Lloh8:
	adrp	x0, l_.str.5@PAGE
Lloh9:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_13
; %bb.12:
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
	mov	x22, x0
LBB0_13:
Lloh10:
	adrp	x0, l_.str.6@PAGE
Lloh11:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_15
; %bb.14:
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
	mov	x21, x0
LBB0_15:
	cbz	x20, LBB0_22
; %bb.16:
	str	x22, [x20]
	b	LBB0_22
LBB0_17:
	cbz	x22, LBB0_20
; %bb.18:
Lloh12:
	adrp	x8, _O_LINES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _O_LINES@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_O_VAL
	cmp	x27, x0
	b.ne	LBB0_20
; %bb.19:
Lloh15:
	adrp	x8, _O_COLUMNS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _O_COLUMNS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_O_VAL
	cmp	x21, x0
	b.eq	LBB0_4
LBB0_20:
	cbz	x20, LBB0_22
; %bb.21:
	str	x27, [x20]
LBB0_22:
	cbz	x19, LBB0_24
; %bb.23:
	str	x21, [x19]
LBB0_24:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_25:
	mov	x25, x27
	b	LBB0_30
LBB0_26:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_tigetnum
	tbnz	w0, #31, LBB0_31
; %bb.27:
	mov	w25, w0
	cbnz	x21, LBB0_10
LBB0_28:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_tigetnum
	tbnz	w0, #31, LBB0_32
; %bb.29:
	mov	w21, w0
LBB0_30:
	mov	w8, #24
	cmp	x25, #0
	csel	x22, x8, x25, eq
	cbnz	x21, LBB0_11
	b	LBB0_33
LBB0_31:
Lloh22:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str.2@PAGE
Lloh26:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_msgq
	mov	x25, #0
	cbnz	x21, LBB0_10
	b	LBB0_28
LBB0_32:
Lloh27:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.4@PAGE
Lloh31:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_msgq
	mov	w8, #24
	cmp	x25, #0
	csel	x22, x8, x25, eq
LBB0_33:
	mov	w21, #80
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_STDERR_FILENO,4,2              ; @STDERR_FILENO
	.comm	_TIOCGWINSZ,4,2                 ; @TIOCGWINSZ
	.comm	_O_LINES,4,2                    ; @O_LINES
	.comm	_O_COLUMNS,4,2                  ; @O_COLUMNS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TERM"

l_.str.1:                               ; @.str.1
	.asciz	"lines"

	.comm	_M_SYSERR,4,2                   ; @M_SYSERR
l_.str.2:                               ; @.str.2
	.asciz	"tigetnum: lines"

l_.str.3:                               ; @.str.3
	.asciz	"cols"

l_.str.4:                               ; @.str.4
	.asciz	"tigetnum: cols"

l_.str.5:                               ; @.str.5
	.asciz	"LINES"

l_.str.6:                               ; @.str.6
	.asciz	"COLUMNS"

.subsections_via_symbols
