	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_process_rmpp_send_wc        ## -- Begin function ib_process_rmpp_send_wc
	.p2align	4, 0x90
_ib_process_rmpp_send_wc:               ## @ib_process_rmpp_send_wc
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	48(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_ib_get_rmpp_flags
	movq	_IB_MGMT_RMPP_FLAG_ACTIVE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	_IB_MGMT_RMPP_TYPE_DATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	(%r14), %rax
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rcx
	movq	_IB_RMPP_RESULT_PROCESSED@GOTPCREL(%rip), %rbx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.5:
	cmpq	%rax, (%r15)
	jne	LBB0_14
## %bb.6:
	cmpq	$0, 56(%r15)
	je	LBB0_14
## %bb.7:
	movq	32(%r15), %rax
	cmpq	%rax, 8(%r15)
	jne	LBB0_9
## %bb.8:
	movl	40(%r15), %edi
	callq	_msecs_to_jiffies
	movq	%rax, 56(%r15)
	jmp	LBB0_14
LBB0_1:
	movq	_IB_RMPP_RESULT_UNHANDLED@GOTPCREL(%rip), %rbx
	jmp	LBB0_14
LBB0_3:
	movq	_IB_RMPP_RESULT_INTERNAL@GOTPCREL(%rip), %rbx
LBB0_14:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	16(%r15), %rcx
	cmpq	24(%r15), %rcx
	je	LBB0_14
## %bb.10:
	cmpq	%rax, %rcx
	je	LBB0_14
## %bb.11:
	movq	%r15, %rdi
	callq	_send_next_seg
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movq	_IB_WC_GENERAL_ERR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	jmp	LBB0_14
LBB0_12:
	movq	_IB_RMPP_RESULT_CONSUMED@GOTPCREL(%rip), %rbx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MGMT_RMPP_FLAG_ACTIVE,4,2   ## @IB_MGMT_RMPP_FLAG_ACTIVE
	.comm	_IB_RMPP_RESULT_UNHANDLED,4,2   ## @IB_RMPP_RESULT_UNHANDLED
	.comm	_IB_MGMT_RMPP_TYPE_DATA,8,3     ## @IB_MGMT_RMPP_TYPE_DATA
	.comm	_IB_RMPP_RESULT_INTERNAL,4,2    ## @IB_RMPP_RESULT_INTERNAL
	.comm	_IB_WC_SUCCESS,8,3              ## @IB_WC_SUCCESS
	.comm	_IB_RMPP_RESULT_PROCESSED,4,2   ## @IB_RMPP_RESULT_PROCESSED
	.comm	_IB_WC_GENERAL_ERR,8,3          ## @IB_WC_GENERAL_ERR
	.comm	_IB_RMPP_RESULT_CONSUMED,4,2    ## @IB_RMPP_RESULT_CONSUMED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_process_rmpp_send_wc        ; -- Begin function ib_process_rmpp_send_wc
	.p2align	2
_ib_process_rmpp_send_wc:               ; @ib_process_rmpp_send_wc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #48]
	mov	x0, x21
	bl	_ib_get_rmpp_flags
Lloh0:
	adrp	x8, _IB_MGMT_RMPP_FLAG_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_MGMT_RMPP_FLAG_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.1:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _IB_MGMT_RMPP_TYPE_DATA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_MGMT_RMPP_TYPE_DATA@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.2:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _IB_WC_SUCCESS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_WC_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.3:
	ldr	x9, [x20]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.4:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_13
; %bb.5:
	ldr	x8, [x20, #8]
	ldr	x9, [x20, #32]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.6:
	ldr	w0, [x20, #40]
	bl	_msecs_to_jiffies
	str	x0, [x20, #56]
	b	LBB0_13
LBB0_7:
Lloh9:
	adrp	x8, _IB_RMPP_RESULT_UNHANDLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_RMPP_RESULT_UNHANDLED@GOTPAGEOFF]
	b	LBB0_14
LBB0_8:
Lloh11:
	adrp	x8, _IB_RMPP_RESULT_INTERNAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_RMPP_RESULT_INTERNAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
	ldp	x10, x11, [x20, #16]
Lloh13:
	adrp	x8, _IB_RMPP_RESULT_PROCESSED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IB_RMPP_RESULT_PROCESSED@GOTPAGEOFF]
	cmp	x10, x11
	b.eq	LBB0_14
; %bb.10:
	cmp	x10, x9
	b.eq	LBB0_14
; %bb.11:
	mov	x0, x20
	bl	_send_next_seg
	cbz	w0, LBB0_15
; %bb.12:
Lloh15:
	adrp	x8, _IB_WC_GENERAL_ERR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IB_WC_GENERAL_ERR@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_13:
Lloh18:
	adrp	x8, _IB_RMPP_RESULT_PROCESSED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IB_RMPP_RESULT_PROCESSED@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh20:
	adrp	x8, _IB_RMPP_RESULT_CONSUMED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IB_RMPP_RESULT_CONSUMED@GOTPAGEOFF]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MGMT_RMPP_FLAG_ACTIVE,4,2   ; @IB_MGMT_RMPP_FLAG_ACTIVE
	.comm	_IB_RMPP_RESULT_UNHANDLED,4,2   ; @IB_RMPP_RESULT_UNHANDLED
	.comm	_IB_MGMT_RMPP_TYPE_DATA,8,3     ; @IB_MGMT_RMPP_TYPE_DATA
	.comm	_IB_RMPP_RESULT_INTERNAL,4,2    ; @IB_RMPP_RESULT_INTERNAL
	.comm	_IB_WC_SUCCESS,8,3              ; @IB_WC_SUCCESS
	.comm	_IB_RMPP_RESULT_PROCESSED,4,2   ; @IB_RMPP_RESULT_PROCESSED
	.comm	_IB_WC_GENERAL_ERR,8,3          ; @IB_WC_GENERAL_ERR
	.comm	_IB_RMPP_RESULT_CONSUMED,4,2    ; @IB_RMPP_RESULT_CONSUMED
.subsections_via_symbols
