	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_rmpp_ack
_process_rmpp_ack:                      ## @process_rmpp_ack
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %rbx
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.1:
	movq	_IB_MGMT_RMPP_STATUS_BAD_STATUS@GOTPCREL(%rip), %rbx
	jmp	LBB0_2
LBB0_3:
	movl	4(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, %r13d
	movl	(%rbx), %edi
	callq	_be32_to_cpu
	cmpl	%r13d, %eax
	jge	LBB0_5
## %bb.4:
	movq	_IB_MGMT_RMPP_STATUS_W2S@GOTPCREL(%rip), %rbx
LBB0_2:
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_abort_send
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nack_recv                      ## TAILCALL
LBB0_5:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ib_find_send_mad
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %rbx
	movl	(%rax), %ecx
	movl	44(%rax), %eax
	movq	64(%rbx), %rdx
	cmpl	%eax, %ecx
	jne	LBB0_11
## %bb.9:
	testq	%rdx, %rdx
	je	LBB0_29
LBB0_10:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ack_ds_ack                     ## TAILCALL
LBB0_6:
	testl	%r13d, %r13d
	jne	LBB0_29
## %bb.7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_process_ds_ack
	jmp	LBB0_29
LBB0_11:
	testq	%rdx, %rdx
	je	LBB0_29
## %bb.12:
	movq	8(%rbx), %rdx
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	jne	LBB0_29
## %bb.13:
	cmpl	%eax, %r13d
	jg	LBB0_15
## %bb.14:
	movl	16(%rbx), %edx
	cmpl	%edx, %r13d
	jle	LBB0_16
LBB0_15:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_IB_MGMT_RMPP_STATUS_S2B@GOTPCREL(%rip), %rbx
	jmp	LBB0_2
LBB0_16:
	cmpl	%edx, %r12d
	jl	LBB0_29
## %bb.17:
	leaq	44(%rbx), %rdx
	cmpl	%ecx, %r13d
	jl	LBB0_29
## %bb.18:
	jle	LBB0_20
## %bb.19:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%rdx, %r13
	callq	_adjust_last_ack
	movq	%r13, %rdx
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rdi
	movl	52(%rbx), %eax
	movl	%eax, 56(%rbx)
	movl	(%rbx), %ecx
	movl	44(%rbx), %eax
LBB0_20:
	movl	%r12d, 16(%rbx)
	cmpl	%eax, %ecx
	jne	LBB0_24
## %bb.21:
	movl	48(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_30
## %bb.22:
	cmpl	$1, 20(%rbx)
	jne	LBB0_10
## %bb.23:
	movq	%rbx, %rdi
	callq	_ib_reset_mad_timeout
	jmp	LBB0_10
LBB0_24:
	cmpl	$1, 20(%rbx)
	jne	LBB0_29
## %bb.25:
	movl	24(%rbx), %ecx
	cmpl	%r12d, %ecx
	jge	LBB0_29
## %bb.26:
	cmpl	%eax, %ecx
	jge	LBB0_29
## %bb.27:
	movq	%rbx, %rdi
	callq	_send_next_seg
	testl	%eax, %eax
	jne	LBB0_29
## %bb.28:
	incl	20(%rbx)
	movq	%rbx, %rdi
	addq	$40, %rdi
	movq	32(%rbx), %rsi
	callq	_list_move_tail
LBB0_29:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_30:
	movq	%rdi, %r15
	movq	%rbx, %rdi
	movq	%rdx, %r12
	callq	_ib_mark_mad_done
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%r15), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	%r12, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ib_mad_complete_send_wr
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MGMT_RMPP_STATUS_BAD_STATUS,4,2 ## @IB_MGMT_RMPP_STATUS_BAD_STATUS
	.comm	_IB_MGMT_RMPP_STATUS_W2S,4,2    ## @IB_MGMT_RMPP_STATUS_W2S
	.comm	_IB_WC_SUCCESS,8,3              ## @IB_WC_SUCCESS
	.comm	_IB_MGMT_RMPP_STATUS_S2B,4,2    ## @IB_MGMT_RMPP_STATUS_S2B
	.no_dead_strip	_process_rmpp_ack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_rmpp_ack
_process_rmpp_ack:                      ; @process_rmpp_ack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x1]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x21, _IB_MGMT_RMPP_STATUS_BAD_STATUS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IB_MGMT_RMPP_STATUS_BAD_STATUS@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	w0, [x21, #4]
	bl	_be32_to_cpu
	mov	x23, x0
	ldr	w0, [x21]
	bl	_be32_to_cpu
	cmp	w0, w23
	b.ge	LBB0_5
; %bb.3:
Lloh2:
	adrp	x21, _IB_MGMT_RMPP_STATUS_W2S@GOTPAGE
Lloh3:
	ldr	x21, [x21, _IB_MGMT_RMPP_STATUS_W2S@GOTPAGEOFF]
LBB0_4:
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_abort_send
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_nack_recv
LBB0_5:
	mov	x22, x0
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	x1, x20
	bl	_ib_find_send_mad
	cbz	x0, LBB0_9
; %bb.6:
	mov	x21, x0
	ldr	w9, [x0]
	mov	x24, x0
	ldr	w8, [x24, #44]!
	ldr	x10, [x0, #64]
	cmp	w9, w8
	b.ne	LBB0_11
; %bb.7:
	cbz	x10, LBB0_29
LBB0_8:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ack_ds_ack
LBB0_9:
	cbnz	w23, LBB0_29
; %bb.10:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_process_ds_ack
	b	LBB0_29
LBB0_11:
	cbz	x10, LBB0_29
; %bb.12:
	ldr	x10, [x21, #8]
Lloh4:
	adrp	x25, _IB_WC_SUCCESS@GOTPAGE
Lloh5:
	ldr	x25, [x25, _IB_WC_SUCCESS@GOTPAGEOFF]
	ldr	x11, [x25]
	cmp	x10, x11
	b.ne	LBB0_29
; %bb.13:
	cmp	w23, w8
	b.gt	LBB0_15
; %bb.14:
	ldr	w10, [x21, #16]
	cmp	w23, w10
	b.le	LBB0_16
LBB0_15:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh6:
	adrp	x21, _IB_MGMT_RMPP_STATUS_S2B@GOTPAGE
Lloh7:
	ldr	x21, [x21, _IB_MGMT_RMPP_STATUS_S2B@GOTPAGEOFF]
	b	LBB0_4
LBB0_16:
	cmp	w22, w10
	b.lt	LBB0_29
; %bb.17:
	cmp	w23, w9
	b.lt	LBB0_29
; %bb.18:
	b.le	LBB0_20
; %bb.19:
	mov	x0, x21
	mov	x1, x23
	bl	_adjust_last_ack
	ldr	w8, [x21, #52]
	str	w8, [x21, #56]
	ldr	w9, [x21]
	ldr	w8, [x21, #44]
LBB0_20:
	str	w22, [x21, #16]
	cmp	w9, w8
	b.ne	LBB0_24
; %bb.21:
	ldr	w1, [x21, #48]
	cbz	w1, LBB0_30
; %bb.22:
	ldr	w8, [x21, #20]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.23:
	mov	x0, x21
	bl	_ib_reset_mad_timeout
	b	LBB0_8
LBB0_24:
	ldr	w9, [x21, #20]
	cmp	w9, #1
	b.ne	LBB0_29
; %bb.25:
	ldr	w9, [x21, #24]
	cmp	w9, w22
	b.ge	LBB0_29
; %bb.26:
	cmp	w9, w8
	b.ge	LBB0_29
; %bb.27:
	mov	x0, x21
	bl	_send_next_seg
	cbnz	w0, LBB0_29
; %bb.28:
	ldr	w8, [x21, #20]
	add	w8, w8, #1
	str	w8, [x21, #20]
	add	x0, x21, #40
	ldr	x1, [x21, #32]
	bl	_list_move_tail
LBB0_29:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_spin_unlock_irqrestore
LBB0_30:
	mov	x0, x21
	bl	_ib_mark_mad_done
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	x8, [x25]
	stp	xzr, x8, [sp, #16]
	str	x24, [sp, #8]
	add	x1, sp, #8
	mov	x0, x21
	bl	_ib_mad_complete_send_wr
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MGMT_RMPP_STATUS_BAD_STATUS,4,2 ; @IB_MGMT_RMPP_STATUS_BAD_STATUS
	.comm	_IB_MGMT_RMPP_STATUS_W2S,4,2    ; @IB_MGMT_RMPP_STATUS_W2S
	.comm	_IB_WC_SUCCESS,8,3              ; @IB_WC_SUCCESS
	.comm	_IB_MGMT_RMPP_STATUS_S2B,4,2    ; @IB_MGMT_RMPP_STATUS_S2B
	.no_dead_strip	_process_rmpp_ack
.subsections_via_symbols
