	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tty_SetAsyncParams
_tty_SetAsyncParams:                    ## @tty_SetAsyncParams
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rdi), %edi
	callq	_device2tty
	movq	%rax, %rbx
	movq	_NG_PATHSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%rbx, %rdi
	callq	_isngtty
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%rbx), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_snprintf
	leaq	-72(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	$1, -72(%rbp)
	orl	%r13d, %r12d
	movl	%r12d, -68(%rbp)
	movq	_MAX_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_MAX_MRU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_LogDEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_log_Printf
	movl	8(%rbx), %edi
	movq	_NGM_ASYNC_COOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NGM_ASYNC_CMD_SET_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rsi
	movq	%r14, %r8
	movl	$16, %r9d
	callq	_NgSendMsg
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	4(%rax), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_log_Printf
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%r12d, %edx
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_async_SetLinkParams            ## TAILCALL
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_PATHSIZ,4,2                 ## @NG_PATHSIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".:%s"

	.comm	_MAX_MTU,4,2                    ## @MAX_MTU
	.comm	_MAX_MRU,4,2                    ## @MAX_MRU
	.comm	_LogDEBUG,4,2                   ## @LogDEBUG
L_.str.1:                               ## @.str.1
	.asciz	"Configure async node at %s\n"

	.comm	_NGM_ASYNC_COOKIE,4,2           ## @NGM_ASYNC_COOKIE
	.comm	_NGM_ASYNC_CMD_SET_CONFIG,4,2   ## @NGM_ASYNC_CMD_SET_CONFIG
	.comm	_LogWARN,4,2                    ## @LogWARN
L_.str.2:                               ## @.str.2
	.asciz	"%s: Can't configure async node at %s\n"

	.no_dead_strip	_tty_SetAsyncParams
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tty_SetAsyncParams
_tty_SetAsyncParams:                    ; @tty_SetAsyncParams
	.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
	sub	sp, sp, #32
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	w0, [x0, #8]
	bl	_device2tty
	mov	x23, x0
Lloh3:
	adrp	x8, _NG_PATHSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NG_PATHSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	mov	x9, x24
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	bl	_isngtty
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x3, [x23]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x24
	bl	_snprintf
	sub	x0, x29, #72
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	w8, #1
	orr	w9, w21, w22
	stp	w8, w9, [x29, #-72]
Lloh10:
	adrp	x8, _MAX_MTU@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX_MTU@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _MAX_MRU@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MAX_MRU@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x29, #-64]
Lloh16:
	adrp	x8, _LogDEBUG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LogDEBUG@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_log_Printf
	ldr	w0, [x23, #8]
Lloh21:
	adrp	x8, _NGM_ASYNC_COOKIE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NGM_ASYNC_COOKIE@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x8, _NGM_ASYNC_CMD_SET_CONFIG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NGM_ASYNC_CMD_SET_CONFIG@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	sub	x4, x29, #72
	mov	x1, x20
	mov	w5, #16
	bl	_NgSendMsg
	tbz	x0, #63, LBB0_3
; %bb.2:
Lloh27:
	adrp	x8, _LogWARN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldrsw	x2, [x19, #4]
	str	x20, [sp, #-16]!
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_log_Printf
	add	sp, sp, #16
LBB0_3:
	ldur	x8, [x29, #-56]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.4:
	sub	sp, x29, #48
	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
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	sub	sp, x29, #48
	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
	b	_async_SetLinkParams
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_PATHSIZ,4,2                 ; @NG_PATHSIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".:%s"

	.comm	_MAX_MTU,4,2                    ; @MAX_MTU
	.comm	_MAX_MRU,4,2                    ; @MAX_MRU
	.comm	_LogDEBUG,4,2                   ; @LogDEBUG
l_.str.1:                               ; @.str.1
	.asciz	"Configure async node at %s\n"

	.comm	_NGM_ASYNC_COOKIE,4,2           ; @NGM_ASYNC_COOKIE
	.comm	_NGM_ASYNC_CMD_SET_CONFIG,4,2   ; @NGM_ASYNC_CMD_SET_CONFIG
	.comm	_LogWARN,4,2                    ; @LogWARN
l_.str.2:                               ; @.str.2
	.asciz	"%s: Can't configure async node at %s\n"

	.no_dead_strip	_tty_SetAsyncParams
.subsections_via_symbols
