	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function tty_alloc
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_tty_alloc
	.p2align	4, 0x90
_tty_alloc:                             ## @tty_alloc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	$128, %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	$0, 120(%rbx)
	movq	%r12, 112(%rbx)
	movl	%r15d, (%rbx)
	movl	%r14d, 4(%rbx)
	movq	$0, 8(%rbx)
	leaq	88(%rbx), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 96(%rbx)
	callq	_list_init
	movq	_ICRNL_@GOTPCREL(%rip), %rax
	movq	_IXON_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 64(%rbx)
	movq	_OPOST_@GOTPCREL(%rip), %rax
	movq	_ONLCR_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 68(%rbx)
	movq	$0, 80(%rbx)
	movq	_ISIG_@GOTPCREL(%rip), %rax
	movq	_ICANON_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_ECHO_@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_ECHOE_@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_ECHOK_@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_ECHOCTL_@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_ECHOKE_@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_IEXTEN_@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 72(%rbx)
	movl	76(%rbx), %edi
	leaq	l_.str(%rip), %rsi
	movl	$19, %edx
	callq	_memcpy
	leaq	56(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	52(%rbx), %rdi
	callq	_lock_init
	leaq	48(%rbx), %rdi
	callq	_lock_init
	leaq	44(%rbx), %rdi
	callq	_cond_init
	movq	%rbx, %rdi
	addq	$40, %rdi
	callq	_cond_init
	movq	32(%rbx), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
LBB0_2:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICRNL_,4,2                     ## @ICRNL_
	.comm	_IXON_,4,2                      ## @IXON_
	.comm	_OPOST_,4,2                     ## @OPOST_
	.comm	_ONLCR_,4,2                     ## @ONLCR_
	.comm	_ISIG_,4,2                      ## @ISIG_
	.comm	_ICANON_,4,2                    ## @ICANON_
	.comm	_ECHO_,4,2                      ## @ECHO_
	.comm	_ECHOE_,4,2                     ## @ECHOE_
	.comm	_ECHOK_,4,2                     ## @ECHOK_
	.comm	_ECHOCTL_,4,2                   ## @ECHOCTL_
	.comm	_ECHOKE_,4,2                    ## @ECHOKE_
	.comm	_IEXTEN_,4,2                    ## @IEXTEN_
	.section	__TEXT,__const
l_.str:                                 ## @.str
	.asciz	"\003\034\177\025\004\000\001\000\021\023\032\000\022\017\027\026\000\000\000"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tty_alloc                      ; -- Begin function tty_alloc
	.p2align	2
_tty_alloc:                             ; @tty_alloc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w0, #128
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	stp	x22, xzr, [x19, #112]
	stp	w21, w20, [x19]
	str	xzr, [x19, #8]
	add	x0, x19, #88
	stp	xzr, xzr, [x19, #96]
	bl	_list_init
Lloh0:
	adrp	x8, _ICRNL_@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICRNL_@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IXON_@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IXON_@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _OPOST_@GOTPAGE
Lloh7:
	ldr	x10, [x10, _OPOST_@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh8:
	ldr	w9, [x10]
Lloh9:
	adrp	x10, _ONLCR_@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ONLCR_@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	stp	w8, w9, [x19, #64]
	str	xzr, [x19, #80]
Lloh12:
	adrp	x8, _ISIG_@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ISIG_@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _ICANON_@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ICANON_@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _ECHO_@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ECHO_@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _ECHOE_@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ECHOE_@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _ECHOK_@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ECHOK_@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _ECHOCTL_@GOTPAGE
Lloh28:
	ldr	x9, [x9, _ECHOCTL_@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh30:
	adrp	x9, _ECHOKE_@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ECHOKE_@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh33:
	adrp	x9, _IEXTEN_@GOTPAGE
Lloh34:
	ldr	x9, [x9, _IEXTEN_@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #72]
	ldr	w0, [x19, #76]
Lloh36:
	adrp	x1, l_.str@PAGE
Lloh37:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #19
	bl	_memcpy
	add	x0, x19, #56
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, x19, #52
	bl	_lock_init
	add	x0, x19, #48
	bl	_lock_init
	add	x0, x19, #44
	bl	_cond_init
	add	x0, x19, #40
	bl	_cond_init
	ldr	x0, [x19, #32]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	stp	xzr, xzr, [x19, #16]
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ICRNL_,4,2                     ; @ICRNL_
	.comm	_IXON_,4,2                      ; @IXON_
	.comm	_OPOST_,4,2                     ; @OPOST_
	.comm	_ONLCR_,4,2                     ; @ONLCR_
	.comm	_ISIG_,4,2                      ; @ISIG_
	.comm	_ICANON_,4,2                    ; @ICANON_
	.comm	_ECHO_,4,2                      ; @ECHO_
	.comm	_ECHOE_,4,2                     ; @ECHOE_
	.comm	_ECHOK_,4,2                     ; @ECHOK_
	.comm	_ECHOCTL_,4,2                   ; @ECHOCTL_
	.comm	_ECHOKE_,4,2                    ; @ECHOKE_
	.comm	_IEXTEN_,4,2                    ; @IEXTEN_
	.section	__TEXT,__const
l_.str:                                 ; @.str
	.asciz	"\003\034\177\025\004\000\001\000\021\023\032\000\022\017\027\026\000\000\000"

.subsections_via_symbols
