	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_send_rmpp_mad               ## -- Begin function ib_send_rmpp_mad
	.p2align	4, 0x90
_ib_send_rmpp_mad:                      ## @ib_send_rmpp_mad
	.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, %r14
	movq	24(%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, %rdi
	callq	_init_newwin
	movl	%eax, 16(%r14)
	cmpq	$1, 8(%r14)
	adcl	$0, 4(%r14)
	movq	%r14, %rdi
	callq	_send_next_seg
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	_IB_RMPP_RESULT_CONSUMED@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_IB_RMPP_RESULT_UNHANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movl	$1, (%r14)
	movq	_IB_RMPP_RESULT_INTERNAL@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	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_MGMT_RMPP_TYPE_DATA,8,3     ## @IB_MGMT_RMPP_TYPE_DATA
	.comm	_IB_RMPP_RESULT_INTERNAL,4,2    ## @IB_RMPP_RESULT_INTERNAL
	.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_send_rmpp_mad               ; -- Begin function ib_send_rmpp_mad
	.p2align	2
_ib_send_rmpp_mad:                      ; @ib_send_rmpp_mad
	.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, #24]
	mov	x0, x20
	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, [x20]
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_4
; %bb.2:
	mov	x0, x19
	bl	_init_newwin
	str	w0, [x19, #16]
	ldr	x8, [x19, #8]
	cmp	x8, #0
	ldr	w8, [x19, #4]
	cinc	w8, w8, eq
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_send_next_seg
Lloh6:
	adrp	x8, _IB_RMPP_RESULT_CONSUMED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_RMPP_RESULT_CONSUMED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w8, w0, eq
	b	LBB0_6
LBB0_3:
Lloh9:
	adrp	x8, _IB_RMPP_RESULT_UNHANDLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_RMPP_RESULT_UNHANDLED@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	w8, #1
	str	w8, [x19]
Lloh11:
	adrp	x8, _IB_RMPP_RESULT_INTERNAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_RMPP_RESULT_INTERNAL@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.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_RMPP_RESULT_CONSUMED,4,2    ; @IB_RMPP_RESULT_CONSUMED
.subsections_via_symbols
