	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function data_b3_res
_data_b3_res:                           ## @data_b3_res
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movl	%edi, %r13d
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dprintf
	movl	$1, %edi
	movl	%eax, %esi
	callq	_dbug
	cmpl	$65536, %r13d                   ## imm = 0x10000
	jb	LBB0_12
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	callq	_GET_WORD
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_dprintf
	movl	$1, %edi
	movl	%eax, %esi
	callq	_dbug
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpl	(%rdx), %ebx
	jge	LBB0_12
## %bb.3:
	sarl	$16, %r13d
	movl	8(%r12), %eax
	shll	$8, %eax
	orl	%r13d, %eax
	movq	8(%rdx), %rcx
	movslq	%ebx, %rbx
	cmpl	%eax, (%rcx,%rbx,4)
	jne	LBB0_9
## %bb.4:
	movq	16(%rdx), %rax
	movl	(%rax,%rbx,4), %eax
	sarl	$8, %eax
	cltq
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	cmpq	%rax, (%r15)
	jne	LBB0_9
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	movq	%rdx, %r14
	callq	_dprintf
	movl	$1, %edi
	movl	%eax, %esi
	callq	_dbug
	movq	8(%r14), %rax
	movl	$0, (%rax,%rbx,4)
	movq	(%r12), %rax
	movslq	%r13d, %r14
	movl	(%rax,%r14,4), %esi
	movq	%r15, %rdi
	callq	_channel_can_xon
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%r12), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r15, %rdi
	callq	_channel_request_xon
LBB0_7:
	movq	%r15, %rdi
	callq	_channel_xmit_xon
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	testb	$4, (%rax,%rbx,4)
	jne	LBB0_11
LBB0_9:
	xorl	%r14d, %r14d
LBB0_12:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_N_DATA_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_nl_req_ncci
	movl	$1, %r14d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"data_b3_res"

L_.str.1:                               ## @.str.1
	.asciz	"free(%d)"

L_.str.2:                               ## @.str.2
	.asciz	"found"

	.comm	_N_DATA_ACK,4,2                 ## @N_DATA_ACK
	.no_dead_strip	_data_b3_res
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function data_b3_res
_data_b3_res:                           ; @data_b3_res
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x5
	mov	x20, x4
	mov	x19, x3
	mov	x21, x2
	mov	x22, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintf
	mov	x1, x0
	mov	w0, #1
	bl	_dbug
	mov	x0, #0
	cmp	w22, #16, lsl #12               ; =65536
	b.lo	LBB0_9
; %bb.1:
	cbz	x19, LBB0_9
; %bb.2:
	ldr	w0, [x23]
	bl	_GET_WORD
	mov	x23, x0
	str	x23, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintf
	mov	x1, x0
	mov	w0, #1
	bl	_dbug
	ldr	w8, [x20]
	cmp	w23, w8
	b.ge	LBB0_8
; %bb.3:
	asr	w24, w22, #16
	ldr	w8, [x21, #8]
	orr	w8, w24, w8, lsl #8
	ldr	x9, [x20, #8]
	ldr	w9, [x9, w23, sxtw #2]
	cmp	w9, w8
	b.ne	LBB0_8
; %bb.4:
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	sxtw	x23, w23
	ldr	x8, [x20, #16]
	ldr	w8, [x8, x23, lsl #2]
	asr	w8, w8, #8
	ldr	x9, [x19]
	cmp	x9, w8, sxtw
	b.ne	LBB0_8
; %bb.5:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dprintf
	mov	x1, x0
	mov	w0, #1
	bl	_dbug
	ldr	x8, [x20, #8]
	str	wzr, [x8, x23, lsl #2]
	ldr	x8, [x21]
	sxtw	x22, w24
	ldr	w1, [x8, w24, sxtw #2]
	mov	x0, x19
	bl	_channel_can_xon
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x21]
	ldr	w1, [x8, x22, lsl #2]
	mov	x0, x19
	bl	_channel_request_xon
LBB0_7:
	mov	x0, x19
	bl	_channel_xmit_xon
	ldr	x8, [x20, #16]
	ldr	w8, [x8, x23, lsl #2]
	tbnz	w8, #2, LBB0_10
LBB0_8:
	mov	x0, #0
LBB0_9:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
Lloh6:
	adrp	x8, _N_DATA_ACK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _N_DATA_ACK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_nl_req_ncci
	mov	w0, #1
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"data_b3_res"

l_.str.1:                               ; @.str.1
	.asciz	"free(%d)"

l_.str.2:                               ; @.str.2
	.asciz	"found"

	.comm	_N_DATA_ACK,4,2                 ; @N_DATA_ACK
	.no_dead_strip	_data_b3_res
.subsections_via_symbols
