	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tty_buffer_find
_tty_buffer_find:                       ## @tty_buffer_find
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	(%rax), %rcx
	cmpq	%rsi, %rcx
	jae	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdx
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rax), %rcx
	cmpq	%rsi, %rcx
	jb	LBB0_6
## %bb.4:
	addq	$8, %rdx
	jmp	LBB0_5
LBB0_7:
	addq	$255, %rsi
	andq	$-256, %rsi
	popq	%rbp
	jmp	_tty_buffer_alloc               ## TAILCALL
LBB0_2:
	leaq	8(%rdi), %rdx
LBB0_5:
	movq	8(%rax), %rsi
	movq	%rsi, (%rdx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rax)
	movups	%xmm0, 8(%rax)
	addq	%rcx, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tty_buffer_find
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tty_buffer_find
_tty_buffer_find:                       ; @tty_buffer_find
	.cfi_startproc
; %bb.0:
	mov	x10, x0
	ldr	x8, [x10, #8]!
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x9, [x8]
	cmp	x9, x1
	b.hs	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x10, x8
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x8]
	cmp	x9, x1
	b.lo	LBB0_2
; %bb.4:
	add	x10, x10, #8
LBB0_5:
	ldr	x11, [x8, #8]
	str	x11, [x10]
	movi.2d	v0, #0000000000000000
	stur	q0, [x8, #24]
	stur	q0, [x8, #8]
	ldr	x10, [x0]
	add	x9, x10, x9
	str	x9, [x0]
	mov	x0, x8
	ret
LBB0_6:
	add	x8, x1, #255
	and	x1, x8, #0xffffffffffffff00
	b	_tty_buffer_alloc
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tty_buffer_find
.subsections_via_symbols
