	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x25_asy_open_tty
_x25_asy_open_tty:                      ## @x25_asy_open_tty
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_x25_asy_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%rbx, 8(%rax)
	movq	%rax, 8(%rbx)
	movl	$65536, (%rbx)                  ## imm = 0x10000
	movq	%rbx, %rdi
	callq	_tty_driver_flush_buffer
	movq	%rbx, %rdi
	callq	_tty_ldisc_flush
	movq	_ARPHRD_X25@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rdi
	movl	%eax, (%rdi)
	callq	_x25_asy_open
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_x25_asy_free
	movl	%ebx, %r15d
	jmp	LBB0_7
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENFILE@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENFILE,4,2                     ## @ENFILE
	.comm	_ARPHRD_X25,4,2                 ## @ARPHRD_X25
	.no_dead_strip	_x25_asy_open_tty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x25_asy_open_tty
_x25_asy_open_tty:                      ; @x25_asy_open_tty
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x20, x0
	bl	_x25_asy_alloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x0
	str	x20, [x0, #8]
	str	x0, [x20, #8]
	mov	w8, #65536
	str	w8, [x20]
	mov	x0, x20
	bl	_tty_driver_flush_buffer
	mov	x0, x20
	bl	_tty_ldisc_flush
Lloh0:
	adrp	x8, _ARPHRD_X25@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARPHRD_X25@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x0, [x19]
	str	w8, [x0]
	bl	_x25_asy_open
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_x25_asy_free
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _ENFILE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENFILE@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENFILE,4,2                     ; @ENFILE
	.comm	_ARPHRD_X25,4,2                 ; @ARPHRD_X25
	.no_dead_strip	_x25_asy_open_tty
.subsections_via_symbols
