	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ntb_process_tx
_ntb_process_tx:                        ## @ntb_process_tx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	12(%rdi), %eax
	movq	48(%rdi), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	incl	40(%rbx)
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_2:
	movq	%rsi, %r14
	movslq	(%rsi), %rax
	movslq	(%rbx), %rcx
	addq	$-4, %rcx
	cmpq	%rax, %rcx
	jae	LBB0_6
## %bb.3:
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	24(%rbx), %esi
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	*%rax
LBB0_5:
	leaq	20(%rbx), %rdi
	addq	$4, %r14
	addq	$16, %rbx
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_ntb_list_add
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ntb_async_tx
	movl	12(%rbx), %eax
	incl	%eax
	cltd
	idivl	8(%rbx)
	movl	%edx, 12(%rbx)
	incl	4(%rbx)
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ntb_process_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ntb_process_tx
_ntb_process_tx:                        ; @ntb_process_tx
	.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
	mov	x19, x0
	ldr	w8, [x0, #12]
	ldr	x9, [x0, #48]
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19, #40]
	add	w8, w8, #1
	str	w8, [x19, #40]
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	mov	x20, x1
	ldrsw	x8, [x1]
	ldrsw	x9, [x19]
	sub	x9, x9, #4
	cmp	x9, x8
	b.hs	LBB0_6
; %bb.3:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w1, [x19, #24]
Lloh3:
	adrp	x9, _EIO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	neg	w3, w9
	mov	x0, x19
	mov	x2, #0
	blr	x8
LBB0_5:
	add	x0, x19, #20
	add	x1, x20, #4
	add	x2, x19, #16
	bl	_ntb_list_add
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_ntb_async_tx
	mov	w0, #0
	ldp	w9, w8, [x19, #8]
	add	w8, w8, #1
	ldr	w10, [x19, #4]
	sdiv	w11, w8, w9
	msub	w8, w11, w9, w8
	str	w8, [x19, #12]
	add	w8, w10, #1
	str	w8, [x19, #4]
LBB0_7:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ntb_process_tx
.subsections_via_symbols
