	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ConsoleLocalGetWidth           ## -- Begin function ConsoleLocalGetWidth
	.p2align	4, 0x90
_ConsoleLocalGetWidth:                  ## @ConsoleLocalGetWidth
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	leaq	-16(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_Zero
	movq	_TIOCGWINSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	movq	%rbx, %rdx
	callq	_ioctl
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.3:
	movl	-16(%rbp), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIOCGWINSZ,4,2                 ## @TIOCGWINSZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ConsoleLocalGetWidth           ; -- Begin function ConsoleLocalGetWidth
	.p2align	2
_ConsoleLocalGetWidth:                  ; @ConsoleLocalGetWidth
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_2
; %bb.1:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	add	x0, sp, #8
	mov	w1, #4
	bl	_Zero
Lloh0:
	adrp	x8, _TIOCGWINSZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIOCGWINSZ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w0, #1
	bl	_ioctl
	ldr	w8, [sp, #8]
	cmp	x0, #0
	csel	w0, w8, wzr, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TIOCGWINSZ,4,2                 ; @TIOCGWINSZ
.subsections_via_symbols
