	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tty_push_char
_tty_push_char:                         ## @tty_push_char
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	28(%rdi), %r13
	leaq	24(%rdi), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	cmpq	$8, %rax
	jb	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_wait_for
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	__EINTR@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	8(%rbx), %rcx
	movb	%r15b, (%rcx,%rax)
	movq	16(%rbx), %rax
	movslq	(%rbx), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%rbx)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%rax,%rcx,4)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	movq	__EAGAIN@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__EAGAIN,4,2                    ## @_EAGAIN
	.comm	__EINTR,4,2                     ## @_EINTR
	.no_dead_strip	_tty_push_char
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tty_push_char
_tty_push_char:                         ; @tty_push_char
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	add	x23, x0, #28
	add	x24, x0, #24
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	cmp	w8, #8
	b.lo	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w22, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	mov	x1, x24
	mov	x2, #0
	bl	_wait_for
	cbz	x0, LBB0_1
; %bb.4:
Lloh0:
	adrp	x8, __EINTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, __EINTR@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	ldr	x9, [x20, #8]
	strb	w21, [x9, x8]
	ldr	x8, [x20, #16]
	ldrsw	x9, [x20]
	add	w10, w9, #1
	str	w10, [x20]
	str	w19, [x8, x9, lsl #2]
	b	LBB0_8
LBB0_6:
Lloh2:
	adrp	x8, __EAGAIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, __EAGAIN@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	__EAGAIN,4,2                    ; @_EAGAIN
	.comm	__EINTR,4,2                     ; @_EINTR
	.no_dead_strip	_tty_push_char
.subsections_via_symbols
