	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tty_update_char
_tty_update_char:                       ## @tty_update_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	%edx, %r14d
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movslq	%esi, %r15
	movq	(%rax,%r15,8), %rax
	movq	_MD_CHAR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,8), %r13d
	movl	%edx, %edi
	callq	_C_SH
	movslq	%r14d, %r12
	testl	%r13d, %eax
	jne	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	_TS_IO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	_EX_IO@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rax,%rdx,8), %rdx
	cmpq	(%rdx,%r12,8), %rcx
	je	LBB0_3
## %bb.2:
	movq	(%rax,%r15,8), %rax
	movq	%rcx, (%rax,%r12,8)
LBB0_3:
	movq	16(%rbx), %rax
	movq	(%rax,%r15,8), %rax
	movq	_MD_CHAR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	4(%rax,%rcx,8), %r13d
	movl	%r14d, %edi
	callq	_C_SH
	testl	%r13d, %eax
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	(%rax,%r15,8), %rax
	movq	%rcx, (%rax,%r12,8)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MD_CHAR,8,3                    ## @MD_CHAR
	.comm	_TS_IO,8,3                      ## @TS_IO
	.comm	_EX_IO,8,3                      ## @EX_IO
	.no_dead_strip	_tty_update_char
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tty_update_char
_tty_update_char:                       ; @tty_update_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	x19, x2
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	sxtw	x21, w1
	ldr	x8, [x8, w1, sxtw #3]
Lloh0:
	adrp	x22, _MD_CHAR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MD_CHAR@GOTPAGEOFF]
	ldr	x9, [x22]
	lsl	x9, x9, #3
	ldr	w23, [x8, x9]
	mov	x0, x2
	bl	_C_SH
	tst	w0, w23
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _TS_IO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TS_IO@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	sbfiz	x10, x19, #3, #32
	ldr	x9, [x9, x10]
Lloh5:
	adrp	x11, _EX_IO@GOTPAGE
Lloh6:
	ldr	x11, [x11, _EX_IO@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	ldr	x11, [x8, x11, lsl #3]
	ldr	x10, [x11, x10]
	cmp	x9, x10
	b.eq	LBB0_3
; %bb.2:
	sxtw	x10, w19
	ldr	x8, [x8, x21, lsl #3]
	str	x9, [x8, x10, lsl #3]
LBB0_3:
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x21, lsl #3]
	ldr	x9, [x22]
	add	x8, x8, x9, lsl #3
	ldr	w22, [x8, #4]
	mov	x0, x19
	bl	_C_SH
	tst	w0, w22
	b.eq	LBB0_5
; %bb.4:
	ldp	x9, x8, [x20]
	ldr	x9, [x9, x21, lsl #3]
	str	x8, [x9, w19, sxtw #3]
LBB0_5:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MD_CHAR,8,3                    ; @MD_CHAR
	.comm	_TS_IO,8,3                      ; @TS_IO
	.comm	_EX_IO,8,3                      ; @EX_IO
	.no_dead_strip	_tty_update_char
.subsections_via_symbols
