	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vema_recv
_vema_recv:                             ## @vema_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.1:
	movq	%rdx, %r13
	cmpq	$0, (%rdx)
	je	LBB0_13
## %bb.2:
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	movq	16(%r13), %rsi
	movl	8(%r13), %edx
	movl	(%rbx), %ecx
	callq	_ib_create_ah_from_wc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_12
## %bb.3:
	movq	16(%r13), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	_IB_MGMT_VENDOR_HDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_OPA_VNIC_EMA_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_OPA_MGMT_BASE_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	pushq	%rax
	pushq	%r10
	callq	_ib_create_send_mad
	addq	$16, %rsp
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_11
## %bb.4:
	movq	%r14, 8(%r12)
	movq	(%r12), %rbx
	movq	(%r13), %rsi
	movq	_IB_MGMT_VENDOR_HDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_memcpy
	movq	_IB_MGMT_METHOD_GET_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	$0, (%rbx)
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%r13), %rsi
	movl	(%rsi), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.5:
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.6:
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_vema_get
	jmp	LBB0_9
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_vema_set
	jmp	LBB0_9
LBB0_8:
	movq	_OPA_VNIC_UNSUP_ATTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_9:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ib_post_send_mad
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movq	%r12, %rdi
	callq	_ib_free_send_mad
LBB0_11:
	movq	_RDMA_DESTROY_AH_SLEEPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rdma_destroy_ah
LBB0_12:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ib_free_recv_mad               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MGMT_VENDOR_HDR,4,2         ## @IB_MGMT_VENDOR_HDR
	.comm	_OPA_VNIC_EMA_DATA,4,2          ## @OPA_VNIC_EMA_DATA
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_OPA_MGMT_BASE_VERSION,4,2      ## @OPA_MGMT_BASE_VERSION
	.comm	_IB_MGMT_METHOD_GET_RESP,4,2    ## @IB_MGMT_METHOD_GET_RESP
	.comm	_OPA_VNIC_UNSUP_ATTR,8,3        ## @OPA_VNIC_UNSUP_ATTR
	.comm	_RDMA_DESTROY_AH_SLEEPABLE,4,2  ## @RDMA_DESTROY_AH_SLEEPABLE
	.no_dead_strip	_vema_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vema_recv
_vema_recv:                             ; @vema_recv
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x2, LBB0_7
; %bb.1:
	mov	x19, x2
	ldr	x8, [x2]
	cbz	x8, LBB0_7
; %bb.2:
	mov	x22, x0
	ldp	x8, x21, [x0, #8]
	ldr	w0, [x8]
	ldr	x1, [x19, #16]
	ldr	w2, [x19, #8]
	ldr	w3, [x22]
	bl	_ib_create_ah_from_wc
	mov	x20, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_13
; %bb.3:
	ldr	x8, [x19, #16]
	ldp	w2, w1, [x8]
Lloh0:
	adrp	x24, _IB_MGMT_VENDOR_HDR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IB_MGMT_VENDOR_HDR@GOTPAGEOFF]
	ldr	w4, [x24]
Lloh2:
	adrp	x8, _OPA_VNIC_EMA_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OPA_VNIC_EMA_DATA@GOTPAGEOFF]
Lloh4:
	ldr	w5, [x8]
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w6, [x8]
Lloh8:
	adrp	x8, _OPA_MGMT_BASE_VERSION@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OPA_MGMT_BASE_VERSION@GOTPAGEOFF]
Lloh10:
	ldr	w7, [x8]
	mov	x0, x22
	mov	w3, #0
	bl	_ib_create_send_mad
	mov	x22, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_12
; %bb.4:
	str	x20, [x22, #8]
	ldr	x23, [x22]
	ldr	x1, [x19]
	ldr	w2, [x24]
	mov	x0, x23
	bl	_memcpy
Lloh11:
	adrp	x8, _IB_MGMT_METHOD_GET_RESP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_MGMT_METHOD_GET_RESP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x23, #8]
	str	xzr, [x23]
	mov	x0, x21
	bl	_mutex_lock
	ldr	x1, [x19]
	ldr	w8, [x1]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #129
	b.ne	LBB0_9
; %bb.6:
	mov	x0, x21
	mov	x2, x23
	bl	_vema_get
	b	LBB0_10
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x21
	mov	x2, x23
	bl	_vema_set
	b	LBB0_10
LBB0_9:
Lloh14:
	adrp	x8, _OPA_VNIC_UNSUP_ATTR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OPA_VNIC_UNSUP_ATTR@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [x23]
LBB0_10:
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x22
	mov	x1, #0
	bl	_ib_post_send_mad
	cbz	w0, LBB0_13
; %bb.11:
	mov	x0, x22
	bl	_ib_free_send_mad
LBB0_12:
Lloh17:
	adrp	x8, _RDMA_DESTROY_AH_SLEEPABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RDMA_DESTROY_AH_SLEEPABLE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rdma_destroy_ah
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ib_free_recv_mad
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MGMT_VENDOR_HDR,4,2         ; @IB_MGMT_VENDOR_HDR
	.comm	_OPA_VNIC_EMA_DATA,4,2          ; @OPA_VNIC_EMA_DATA
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_OPA_MGMT_BASE_VERSION,4,2      ; @OPA_MGMT_BASE_VERSION
	.comm	_IB_MGMT_METHOD_GET_RESP,4,2    ; @IB_MGMT_METHOD_GET_RESP
	.comm	_OPA_VNIC_UNSUP_ATTR,8,3        ; @OPA_VNIC_UNSUP_ATTR
	.comm	_RDMA_DESTROY_AH_SLEEPABLE,4,2  ; @RDMA_DESTROY_AH_SLEEPABLE
	.no_dead_strip	_vema_recv
.subsections_via_symbols
