	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_req
_send_req:                              ## @send_req
	.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
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.1:
	movq	%rdi, %rbx
	movq	40(%rdi), %rax
	cmpq	$0, 16(%rax)
	jne	LBB0_16
## %bb.2:
	movq	%rbx, %rdi
	callq	_channel_xmit_xon
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	cmpq	%rdx, %rsi
	je	LBB0_16
## %bb.3:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintf
	movl	$1, %edi
	movl	%eax, %esi
	callq	_dbug
	cmpl	$0, 16(%rbx)
	jne	LBB0_16
## %bb.4:
	cmpl	$0, 20(%rbx)
	je	LBB0_5
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	8(%rbx), %rdi
	shlq	$2, %rdi
	addq	24(%rbx), %rdi
	callq	_GET_WORD
	movq	%rax, %r14
	movq	8(%rbx), %rcx
	movq	24(%rbx), %rax
	leaq	(%rax,%rcx,4), %rdx
	addq	$8, %rdx
	movq	48(%rbx), %rsi
	movq	%rdx, (%rsi)
	leaq	(%rcx,%r14), %rsi
	addq	$2, %rsi
	movl	(%rax,%rsi,4), %edx
	cmpl	$1, %edx
	jne	LBB0_9
## %bb.6:
	movl	4(%rax,%rsi,4), %ecx
	movl	%ecx, 16(%rbx)
	movl	%ecx, 80(%rbx)
	leaq	3(%rsi), %rdx
	movq	%rdx, 8(%rbx)
	movl	8(%rax,%rsi,4), %r8d
	movl	%r8d, 84(%rbx)
	movl	88(%rbx), %edx
	testb	$31, %dl
	jne	LBB0_8
## %bb.7:
	movq	_NL_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 88(%rbx)
	movq	_CAI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -4(%rax,%rsi,4)
	movl	$1, (%rax,%rsi,4)
	movl	64(%rbx), %ecx
	xorl	%edx, %edx
	cmpl	$255, %ecx
	cmovnel	%ecx, %edx
	movl	%edx, 4(%rax,%rsi,4)
	movl	$0, 8(%rax,%rsi,4)
	addq	$3, %r14
	movl	16(%rbx), %eax
	movl	80(%rbx), %ecx
	movl	%eax, 32(%rbx)
	movl	88(%rbx), %edx
	movl	84(%rbx), %r8d
LBB0_8:
	leaq	80(%rbx), %r15
	movq	40(%rbx), %rax
	movl	8(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_15
LBB0_9:
	testl	%edx, %edx
	je	LBB0_10
## %bb.11:
	movl	%edx, 64(%rbx)
	jmp	LBB0_12
LBB0_10:
	movl	64(%rbx), %edx
LBB0_12:
	movl	4(%rax,%rsi,4), %ecx
	movl	%ecx, 20(%rbx)
	movl	%ecx, 56(%rbx)
	leaq	3(%rsi), %rdi
	movq	%rdi, 8(%rbx)
	movl	8(%rax,%rsi,4), %r8d
	movl	%r8d, 60(%rbx)
	testb	$31, %dl
	jne	LBB0_14
## %bb.13:
	movl	%ecx, 36(%rbx)
LBB0_14:
	leaq	56(%rbx), %r15
	movq	40(%rbx), %rax
	movl	8(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
LBB0_15:
	xorl	%eax, %eax
	callq	_dprintf
	movl	$1, %edi
	movl	%eax, %esi
	callq	_dbug
	movq	48(%rbx), %rax
	movq	%r14, 8(%rax)
	movq	%rax, 16(%r15)
	movq	40(%rbx), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintf
	movl	$1, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dbug                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"send_req(in=%d,out=%d)"

	.comm	_NL_ID,4,2                      ## @NL_ID
	.comm	_CAI,4,2                        ## @CAI
L_.str.1:                               ## @.str.1
	.asciz	"%x:NLREQ(%x:%x:%x)"

L_.str.2:                               ## @.str.2
	.asciz	"%x:SIGREQ(%x:%x:%x)"

L_.str.3:                               ## @.str.3
	.asciz	"send_ok"

	.no_dead_strip	_send_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_req
_send_req:                              ; @send_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #40]
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_channel_xmit_xon
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.3:
	stp	x8, x9, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintf
	mov	x1, x0
	mov	w0, #1
	bl	_dbug
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_5
; %bb.4:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	ldr	x8, [x19, #24]
	ldr	x9, [x19, #8]
	add	x0, x8, x9, lsl #2
	bl	_GET_WORD
	mov	x20, x0
	ldr	x8, [x19, #8]
	add	x9, x8, #2
	ldr	x8, [x19, #24]
	add	x10, x8, x9, lsl #2
	ldr	x11, [x19, #48]
	str	x10, [x11]
	add	x9, x9, x0
	ldr	w10, [x8, x9, lsl #2]
	cmp	w10, #1
	b.ne	LBB0_10
; %bb.7:
	add	x13, x9, #1
	ldr	w10, [x8, x13, lsl #2]
	mov	x21, x19
	str	w10, [x21, #80]!
	add	x14, x9, #2
	stur	w10, [x21, #-64]
	add	x11, x9, #3
	stur	x11, [x21, #-72]
	ldr	w12, [x8, x14, lsl #2]
	str	w12, [x21, #4]
	ldr	w11, [x21, #8]
	tst	w11, #0x1f
	b.ne	LBB0_9
; %bb.8:
Lloh2:
	adrp	x10, _NL_ID@GOTPAGE
Lloh3:
	ldr	x10, [x10, _NL_ID@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	str	w10, [x19, #88]
Lloh5:
	adrp	x10, _CAI@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CAI@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x10]
	add	x9, x8, x9, lsl #2
	mov	w10, #1
	stp	w11, w10, [x9, #-4]
	ldr	w9, [x19, #64]
	cmp	w9, #255
	csel	w9, wzr, w9, eq
	str	w9, [x8, x13, lsl #2]
	str	wzr, [x8, x14, lsl #2]
	add	x20, x20, #3
	ldr	w8, [x19, #16]
	str	w8, [x19, #32]
	ldp	w12, w11, [x19, #84]
	ldr	w10, [x19, #80]
LBB0_9:
	ldr	x8, [x19, #40]
	ldr	w8, [x8, #8]
	stp	x10, x12, [sp, #16]
	stp	x8, x11, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_10:
	cbz	w10, LBB0_12
; %bb.11:
	str	w10, [x19, #64]
	b	LBB0_13
LBB0_12:
	ldr	w10, [x19, #64]
LBB0_13:
	add	x21, x19, #56
	add	x11, x8, x9, lsl #2
	ldr	w8, [x11, #4]
	str	w8, [x19, #20]
	str	w8, [x19, #56]
	add	x9, x9, #3
	str	x9, [x19, #8]
	ldr	w9, [x11, #8]
	str	w9, [x19, #60]
	tst	w10, #0x1f
	b.ne	LBB0_15
; %bb.14:
	str	w8, [x19, #36]
LBB0_15:
	ldr	x11, [x19, #40]
	ldr	w11, [x11, #8]
	stp	x8, x9, [sp, #16]
	stp	x11, x10, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_16:
	bl	_dprintf
	mov	x1, x0
	mov	w0, #1
	bl	_dbug
	ldp	x9, x8, [x19, #40]
	str	x20, [x8, #8]
	str	x8, [x21, #16]
	ldr	x8, [x9]
	mov	x0, x21
	blr	x8
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_dprintf
	mov	x1, x0
	mov	w0, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_dbug
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"send_req(in=%d,out=%d)"

	.comm	_NL_ID,4,2                      ; @NL_ID
	.comm	_CAI,4,2                        ; @CAI
l_.str.1:                               ; @.str.1
	.asciz	"%x:NLREQ(%x:%x:%x)"

l_.str.2:                               ; @.str.2
	.asciz	"%x:SIGREQ(%x:%x:%x)"

l_.str.3:                               ; @.str.3
	.asciz	"send_ok"

	.no_dead_strip	_send_req
.subsections_via_symbols
