	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ib_mad_complete_recv
_ib_mad_complete_recv:                  ## @ib_mad_complete_recv
	.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, %r13
	movq	%rdi, %r14
	leaq	16(%rsi), %rbx
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	leaq	8(%r13), %rdi
	movq	%rbx, %rsi
	callq	_list_add
	movq	%r14, %rdi
	callq	_ib_mad_kernel_rmpp_agent
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ib_process_rmpp_recv_wc
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_10
LBB0_2:
	movq	(%r13), %rdi
	callq	_ib_response_mad
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	leaq	12(%r14), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ib_find_send_mad
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_ib_mark_mad_done
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	*(%r14)
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_atomic_dec
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	%r15, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ib_mad_complete_send_wr
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	*(%r14)
	jmp	LBB0_10
LBB0_4:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	callq	_ib_mad_kernel_rmpp_agent
	testq	%rax, %rax
	je	LBB0_5
LBB0_7:
	movq	%r13, %rdi
	callq	_ib_free_recv_mad
LBB0_10:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_deref_mad_agent                ## TAILCALL
LBB0_5:
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_ib_is_mad_class_rmpp
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%r13), %rdi
	callq	_ib_get_rmpp_flags
	movq	_IB_MGMT_RMPP_FLAG_ACTIVE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.11:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	*(%r14)
	addq	$8, %r14
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atomic_dec                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MGMT_RMPP_FLAG_ACTIVE,4,2   ## @IB_MGMT_RMPP_FLAG_ACTIVE
	.comm	_IB_WC_SUCCESS,4,2              ## @IB_WC_SUCCESS
	.no_dead_strip	_ib_mad_complete_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ib_mad_complete_recv
_ib_mad_complete_recv:                  ; @ib_mad_complete_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
	add	x21, x1, #16
	mov	x0, x21
	bl	_INIT_LIST_HEAD
	add	x0, x20, #8
	mov	x1, x21
	bl	_list_add
	mov	x0, x19
	bl	_ib_mad_kernel_rmpp_agent
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_ib_process_rmpp_recv_wc
	mov	x20, x0
	cbz	x0, LBB0_8
LBB0_2:
	ldr	x0, [x20]
	bl	_ib_response_mad
	cbz	x0, LBB0_5
; %bb.3:
	add	x22, x19, #12
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	x1, x20
	bl	_ib_find_send_mad
	cbz	x0, LBB0_6
; %bb.4:
	mov	x21, x0
	bl	_ib_mark_mad_done
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x22, x19
	ldr	x8, [x22], #8
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	blr	x8
	mov	x0, x22
	bl	_atomic_dec
Lloh0:
	adrp	x8, _IB_WC_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_WC_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	stp	x21, xzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, x21
	bl	_ib_mad_complete_send_wr
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	ldr	x8, [x19]
	mov	x0, x19
	mov	x1, #0
	mov	x2, x20
	blr	x8
	b	LBB0_8
LBB0_6:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_ib_mad_kernel_rmpp_agent
	cbz	x0, LBB0_9
LBB0_7:
	mov	x0, x20
	bl	_ib_free_recv_mad
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_deref_mad_agent
LBB0_9:
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_ib_is_mad_class_rmpp
	cbz	x0, LBB0_7
; %bb.10:
	ldr	x0, [x20]
	bl	_ib_get_rmpp_flags
Lloh3:
	adrp	x8, _IB_MGMT_RMPP_FLAG_ACTIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_MGMT_RMPP_FLAG_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.11:
	mov	x21, x19
	ldr	x8, [x21], #8
	mov	x0, x19
	mov	x1, #0
	mov	x2, x20
	blr	x8
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_atomic_dec
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MGMT_RMPP_FLAG_ACTIVE,4,2   ; @IB_MGMT_RMPP_FLAG_ACTIVE
	.comm	_IB_WC_SUCCESS,4,2              ; @IB_WC_SUCCESS
	.no_dead_strip	_ib_mad_complete_recv
.subsections_via_symbols
