	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rdma_create_ah
__rdma_create_ah:                       ## @_rdma_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	_RDMA_CREATE_AH_SLEEPABLE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	andl	%edx, %edi
	callq	_might_sleep_if
	cmpq	$0, (%rbx)
	je	LBB0_1
## %bb.4:
	movq	_ib_ah@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %eax
	andl	%r12d, %eax
	jne	LBB0_5
## %bb.6:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_rdma_zalloc_drv_obj_gfp
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r14
	movq	%rbx, 16(%rax)
	movq	%r15, 8(%rax)
	movl	(%r13), %eax
	movl	%eax, 4(%r14)
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_rdma_update_sgid_attr
	movl	%eax, (%r14)
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	*(%rbx)
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_kfree
	movl	%ebx, %edi
	jmp	LBB0_3
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_11:
	movq	%r15, %rdi
	callq	_atomic_inc
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDMA_CREATE_AH_SLEEPABLE,4,2   ## @RDMA_CREATE_AH_SLEEPABLE
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ib_ah,4,2                      ## @ib_ah
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	__rdma_create_ah
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rdma_create_ah
__rdma_create_ah:                       ; @_rdma_create_ah
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x23, [x0, #8]
Lloh0:
	adrp	x24, _RDMA_CREATE_AH_SLEEPABLE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _RDMA_CREATE_AH_SLEEPABLE@GOTPAGEOFF]
	ldr	w8, [x24]
	and	w0, w8, w2
	bl	_might_sleep_if
	ldr	x8, [x23]
	cbz	x8, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _ib_ah@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ib_ah@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh7:
	adrp	x10, _GFP_ATOMIC@GOTPAGE
Lloh8:
	ldr	x10, [x10, _GFP_ATOMIC@GOTPAGEOFF]
	tst	w9, w21
	csel	x8, x10, x8, eq
	ldr	w2, [x8]
	mov	x0, x23
	bl	_rdma_zalloc_drv_obj_gfp
	cbz	x0, LBB0_5
; %bb.2:
	mov	x24, x0
	stp	x19, x23, [x0, #8]
	ldr	w8, [x22]
	str	w8, [x0, #4]
	mov	x0, x22
	mov	x1, #0
	bl	_rdma_update_sgid_attr
	str	w0, [x24]
	ldr	x8, [x23]
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	blr	x8
	cbz	w0, LBB0_8
; %bb.3:
	mov	x20, x0
	mov	x0, x24
	bl	_kfree
	mov	x0, x20
	b	LBB0_7
LBB0_4:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
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
	b	_ERR_PTR
LBB0_8:
	mov	x0, x19
	bl	_atomic_inc
	mov	x0, x24
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RDMA_CREATE_AH_SLEEPABLE,4,2   ; @RDMA_CREATE_AH_SLEEPABLE
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ib_ah,4,2                      ; @ib_ah
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	__rdma_create_ah
.subsections_via_symbols
