	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_retry_rmpp                  ## -- Begin function ib_retry_rmpp
	.p2align	4, 0x90
_ib_retry_rmpp:                         ## @ib_retry_rmpp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rdi
	callq	_ib_get_rmpp_flags
	movq	_IB_MGMT_RMPP_FLAG_ACTIVE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	cmpq	24(%rbx), %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, 8(%rbx)
	movl	16(%rbx), %eax
	movl	%eax, 20(%rbx)
	movq	%rbx, %rdi
	callq	_send_next_seg
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_IB_RMPP_RESULT_CONSUMED@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_IB_RMPP_RESULT_PROCESSED@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_IB_RMPP_RESULT_UNHANDLED@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.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_RMPP_RESULT_PROCESSED,4,2   ## @IB_RMPP_RESULT_PROCESSED
	.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_retry_rmpp                  ; -- Begin function ib_retry_rmpp
	.p2align	2
_ib_retry_rmpp:                         ; @ib_retry_rmpp
	.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	x0, [x0, #32]
	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_3
; %bb.1:
	ldr	x8, [x19]
	ldr	x9, [x19, #24]
Lloh3:
	adrp	x20, _IB_RMPP_RESULT_PROCESSED@GOTPAGE
Lloh4:
	ldr	x20, [x20, _IB_RMPP_RESULT_PROCESSED@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.2:
	str	x8, [x19, #8]
	ldr	w8, [x19, #16]
	str	w8, [x19, #20]
	mov	x0, x19
	bl	_send_next_seg
Lloh5:
	adrp	x8, _IB_RMPP_RESULT_CONSUMED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IB_RMPP_RESULT_CONSUMED@GOTPAGEOFF]
	cmp	w0, #0
	csel	x20, x8, x20, eq
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x20, _IB_RMPP_RESULT_UNHANDLED@GOTPAGE
Lloh8:
	ldr	x20, [x20, _IB_RMPP_RESULT_UNHANDLED@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x20]
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.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_RMPP_RESULT_PROCESSED,4,2   ; @IB_RMPP_RESULT_PROCESSED
	.comm	_IB_RMPP_RESULT_CONSUMED,4,2    ; @IB_RMPP_RESULT_CONSUMED
.subsections_via_symbols
