	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efa_create_ah                  ## -- Begin function efa_create_ah
	.p2align	4, 0x90
_efa_create_ah:                         ## @efa_create_ah
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	callq	_to_edev
	movq	%rax, %r15
	movq	$0, -64(%rbp)
	movl	$0, -48(%rbp)
	movq	%r14, %rdi
	callq	_to_eah
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_RDMA_CREATE_AH_SLEEPABLE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.1:
	movq	8(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ib_is_udata_cleared
	testl	%eax, %eax
	je	LBB0_8
LBB0_3:
	movl	(%r13), %esi
	xorl	%edi, %edi
	movl	$4, %edx
	callq	_memcpy
	movl	(%r14), %edi
	callq	_to_epd
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	8(%r15), %rdi
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	callq	_efa_com_create_ah
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	4(%r14), %edi
	movl	(%r13), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	-56(%rbp), %edx
	movl	%edx, (%r14)
	movl	%edx, -48(%rbp)
	movq	(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.5:
	movl	$4, %edi
	callq	_min
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_ib_copy_to_udata
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:
	movl	%eax, %ebx
	movq	%r15, %rdi
	addq	$4, %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_ibdev_dbg
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_efa_ah_destroy
	jmp	LBB0_10
LBB0_7:
	movq	%r15, %rdi
	addq	$4, %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ibdev_dbg
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	%r15, %rdi
	addq	$4, %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_ibdev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movq	%r15, %rdi
	callq	_atomic64_inc
LBB0_11:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	(%r14), %edx
LBB0_13:
	addq	$4, %r15
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ibdev_dbg
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_RDMA_CREATE_AH_SLEEPABLE,4,2   ## @RDMA_CREATE_AH_SLEEPABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Create address handle is not supported in atomic context\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"Incompatible ABI params\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Failed to copy udata for create_ah response\n"

L_.str.3:                               ## @.str.3
	.asciz	"Created ah[%d]\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efa_create_ah                  ; -- Begin function efa_create_ah
	.p2align	2
_efa_create_ah:                         ; @efa_create_ah
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x3
	mov	x24, x2
	mov	x22, x1
	mov	x23, x0
	ldr	w0, [x0, #4]
	bl	_to_edev
	mov	x19, x0
	str	xzr, [sp, #24]
	str	wzr, [sp, #16]
	mov	x0, x23
	bl	_to_eah
Lloh0:
	adrp	x8, _RDMA_CREATE_AH_SLEEPABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDMA_CREATE_AH_SLEEPABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_7
; %bb.1:
	mov	x21, x0
	ldr	x2, [x20, #8]
	cbz	x2, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	w1, #0
	bl	_ib_is_udata_cleared
	cbz	w0, LBB0_8
LBB0_3:
	ldr	w1, [x22]
	mov	w0, #0
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x23]
	bl	_to_epd
	ldr	w8, [x0]
	str	w8, [sp, #24]
	add	x0, x19, #8
	add	x1, sp, #24
	add	x2, sp, #8
	bl	_efa_com_create_ah
	mov	x23, x0
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	w0, [x21, #4]
	ldr	w1, [x22]
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [sp, #8]
	str	w8, [x21]
	str	w8, [sp, #16]
	ldr	x1, [x20]
	cbz	x1, LBB0_13
; %bb.5:
	mov	w0, #4
	bl	_min
	mov	x2, x0
	add	x1, sp, #16
	mov	x0, x20
	bl	_ib_copy_to_udata
	cbz	w0, LBB0_12
; %bb.6:
	mov	x23, x0
	add	x0, x19, #4
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ibdev_dbg
	mov	x0, x19
	mov	x1, x21
	bl	_efa_ah_destroy
	b	LBB0_10
LBB0_7:
	add	x0, x19, #4
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ibdev_dbg
Lloh7:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	add	x0, x19, #4
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ibdev_dbg
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_10:
	mov	x0, x19
	bl	_atomic64_inc
LBB0_11:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	ldr	w8, [x21]
LBB0_13:
	add	x0, x19, #4
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_ibdev_dbg
	mov	w23, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RDMA_CREATE_AH_SLEEPABLE,4,2   ; @RDMA_CREATE_AH_SLEEPABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Create address handle is not supported in atomic context\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"Incompatible ABI params\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Failed to copy udata for create_ah response\n"

l_.str.3:                               ; @.str.3
	.asciz	"Created ah[%d]\n"

.subsections_via_symbols
