	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cma_query_sa_classport_info
_cma_query_sa_classport_info:           ## @cma_query_sa_classport_info
	.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	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$32, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, 24(%rax)
	movq	%r12, 16(%rax)
	movl	%r14d, 8(%rax)
	movq	%rax, %rdi
	callq	_init_completion
	movq	_CMA_QUERY_CLASSPORT_INFO_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r13), %r8d
	movq	_cma_query_sa_classport_info_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rax
	addq	$4, %rax
	movq	_sa_client@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	pushq	%rax
	pushq	%rbx
	callq	_ib_sa_classport_info_rec_query
	addq	$16, %rsp
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_wait_for_completion
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_6
LBB0_3:
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	callq	_pr_err
LBB0_5:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sa_client,4,2                  ## @sa_client
	.comm	_CMA_QUERY_CLASSPORT_INFO_TIMEOUT,4,2 ## @CMA_QUERY_CLASSPORT_INFO_TIMEOUT
	.comm	_cma_query_sa_classport_info_cb,4,2 ## @cma_query_sa_classport_info_cb
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RDMA CM: %s port %u failed to send ClassPortInfo query, ret: %d\n"

	.no_dead_strip	_cma_query_sa_classport_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cma_query_sa_classport_info
_cma_query_sa_classport_info:           ; @cma_query_sa_classport_info
	.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	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #32
	bl	_kmalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	stp	x22, x21, [x0, #16]
	str	w20, [x0, #8]
	bl	_init_completion
Lloh2:
	adrp	x8, _CMA_QUERY_CLASSPORT_INFO_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMA_QUERY_CLASSPORT_INFO_TIMEOUT@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	ldr	w4, [x23]
Lloh5:
	adrp	x8, _cma_query_sa_classport_info_cb@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cma_query_sa_classport_info_cb@GOTPAGEOFF]
Lloh7:
	ldr	w5, [x8]
	add	x7, x19, #4
Lloh8:
	adrp	x0, _sa_client@GOTPAGE
Lloh9:
	ldr	x0, [x0, _sa_client@GOTPAGEOFF]
	mov	x1, x21
	mov	x2, x20
	mov	x6, x19
	bl	_ib_sa_classport_info_rec_query
	mov	x22, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_wait_for_completion
	b	LBB0_5
LBB0_3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_6
LBB0_4:
	ldr	w1, [x21]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x22
	bl	_pr_err
LBB0_5:
	mov	x0, x19
	bl	_kfree
LBB0_6:
	mov	x0, x22
	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	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sa_client,4,2                  ; @sa_client
	.comm	_CMA_QUERY_CLASSPORT_INFO_TIMEOUT,4,2 ; @CMA_QUERY_CLASSPORT_INFO_TIMEOUT
	.comm	_cma_query_sa_classport_info_cb,4,2 ; @cma_query_sa_classport_info_cb
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RDMA CM: %s port %u failed to send ClassPortInfo query, ret: %d\n"

	.no_dead_strip	_cma_query_sa_classport_info
.subsections_via_symbols
