	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmvmc_send_open
_ibmvmc_send_open:                      ## @ibmvmc_send_open
	.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
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r15
	movq	16(%rsi), %r14
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	movq	%rdi, %rbx
	movl	(%r14), %edi
	movq	24(%rbx), %rdx
	movq	16(%r14), %rcx
	movq	8(%rbx), %rax
	movq	16(%rbx), %r8
	movq	8(%r14), %r9
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	24(%rbx), %rdi
	movq	8(%r14), %rcx
	movq	16(%r14), %rsi
	movq	8(%rbx), %r8
	movq	16(%rbx), %rdx
	callq	_h_copy_rdma
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ibmhmc_state_opening@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movl	(%rbx), %edi
	callq	_cpu_to_be16
	movl	$128, %edi
	callq	_be64_to_cpu
	movl	%eax, %ebx
	callq	_be64_to_cpu
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_ibmvmc_send_crq
	xorl	%eax, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"send_open: 0x%lx 0x%lx 0x%lx 0x%lx 0x%lx\n"

L_.str.1:                               ## @.str.1
	.asciz	"Error: In send_open, h_copy_rdma rc 0x%x\n"

	.comm	_ibmhmc_state_opening,4,2       ## @ibmhmc_state_opening
	.comm	_VMC_MSG_OPEN,4,2               ## @VMC_MSG_OPEN
	.no_dead_strip	_ibmvmc_send_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmvmc_send_open
_ibmvmc_send_open:                      ; @ibmvmc_send_open
	.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
	cbz	x1, LBB0_4
; %bb.1:
	mov	x21, x1
	ldr	x19, [x1, #16]
	cbz	x19, LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	w0, [x19]
	ldp	x4, x2, [x20, #16]
	ldp	x5, x3, [x19, #8]
	ldr	x6, [x20, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldp	x2, x0, [x20, #16]
	ldp	x3, x1, [x19, #8]
	ldr	x4, [x20, #8]
	bl	_h_copy_rdma
	cbz	w0, LBB0_6
; %bb.3:
	mov	x2, x0
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_4:
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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_6:
Lloh7:
	adrp	x8, _ibmhmc_state_opening@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ibmhmc_state_opening@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	ldr	w0, [x20]
	bl	_cpu_to_be16
	mov	w0, #128
	bl	_be64_to_cpu
	mov	x20, x0
	bl	_be64_to_cpu
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_ibmvmc_send_crq
	mov	w0, #0
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"send_open: 0x%lx 0x%lx 0x%lx 0x%lx 0x%lx\n"

l_.str.1:                               ; @.str.1
	.asciz	"Error: In send_open, h_copy_rdma rc 0x%x\n"

	.comm	_ibmhmc_state_opening,4,2       ; @ibmhmc_state_opening
	.comm	_VMC_MSG_OPEN,4,2               ; @VMC_MSG_OPEN
	.no_dead_strip	_ibmvmc_send_open
.subsections_via_symbols
