	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_next_seg
_send_next_seg:                         ## @send_next_seg
	.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
	movq	32(%rdi), %r14
	movq	_IB_MGMT_RMPP_FLAG_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ib_set_rmpp_flags
	movl	(%rbx), %edi
	incl	%edi
	movl	%edi, (%rbx)
	callq	_cpu_to_be32
	movq	%rax, 16(%r14)
	movl	(%rbx), %eax
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.2:
	movq	_IB_MGMT_RMPP_FLAG_FIRST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 8(%r14)
	movl	16(%rbx), %ecx
	movl	20(%rbx), %edi
	imull	%ecx, %edi
	subl	4(%rbx), %edi
	cmpl	%ecx, %eax
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movl	16(%rbx), %ecx
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	jne	LBB0_5
LBB0_4:
	movq	_IB_MGMT_RMPP_FLAG_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
	movl	20(%rbx), %edi
	subl	4(%rbx), %edi
LBB0_5:
	callq	_cpu_to_be32
	movq	%rax, (%r14)
	movl	24(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	cmpl	$2001, %eax                     ## imm = 0x7D1
	jl	LBB0_8
LBB0_7:
	movl	$2000, %edi                     ## imm = 0x7D0
	callq	_msecs_to_jiffies
	movl	%eax, 8(%rbx)
LBB0_8:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ib_send_mad                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MGMT_RMPP_FLAG_ACTIVE,4,2   ## @IB_MGMT_RMPP_FLAG_ACTIVE
	.comm	_IB_MGMT_RMPP_FLAG_FIRST,4,2    ## @IB_MGMT_RMPP_FLAG_FIRST
	.comm	_IB_MGMT_RMPP_FLAG_LAST,4,2     ## @IB_MGMT_RMPP_FLAG_LAST
	.no_dead_strip	_send_next_seg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_next_seg
_send_next_seg:                         ; @send_next_seg
	.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	x20, [x0, #32]
Lloh0:
	adrp	x8, _IB_MGMT_RMPP_FLAG_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_MGMT_RMPP_FLAG_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ib_set_rmpp_flags
	ldr	w8, [x19]
	add	w0, w8, #1
	str	w0, [x19]
	bl	_cpu_to_be32
	str	x0, [x20, #16]
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _IB_MGMT_RMPP_FLAG_FIRST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_MGMT_RMPP_FLAG_FIRST@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	w10, [x20, #8]
	orr	w9, w10, w9
	str	w9, [x20, #8]
	ldp	w9, w10, [x19, #16]
	ldr	w11, [x19, #4]
	neg	w11, w11
	madd	w0, w10, w9, w11
	cmp	w8, w9
	b.eq	LBB0_3
	b	LBB0_4
LBB0_2:
	mov	w0, #0
	ldr	w9, [x19, #16]
	cmp	w8, w9
	b.ne	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _IB_MGMT_RMPP_FLAG_LAST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_MGMT_RMPP_FLAG_LAST@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
	str	w8, [x20, #8]
	ldr	w8, [x19, #20]
	ldr	w9, [x19, #4]
	sub	w0, w8, w9
LBB0_4:
	bl	_cpu_to_be32
	str	x0, [x20]
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_6
; %bb.5:
	cmp	w8, #2001
	b.lt	LBB0_7
LBB0_6:
	mov	w0, #2000
	bl	_msecs_to_jiffies
	str	w0, [x19, #8]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ib_send_mad
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MGMT_RMPP_FLAG_ACTIVE,4,2   ; @IB_MGMT_RMPP_FLAG_ACTIVE
	.comm	_IB_MGMT_RMPP_FLAG_FIRST,4,2    ; @IB_MGMT_RMPP_FLAG_FIRST
	.comm	_IB_MGMT_RMPP_FLAG_LAST,4,2     ; @IB_MGMT_RMPP_FLAG_LAST
	.no_dead_strip	_send_next_seg
.subsections_via_symbols
