	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cma_query_ib_route
_cma_query_ib_route:                    ## @cma_query_ib_route
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	leaq	12(%rdi), %r13
	leaq	20(%rdi), %rbx
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_rdma_addr_get_sgid
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_rdma_addr_get_dgid
	movq	%rbx, %rdi
	callq	_ib_addr_get_pkey
	movl	%eax, %edi
	callq	_cpu_to_be16
	movq	%rax, -56(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -88(%rbp)
	movq	%r12, %rdi
	callq	_cma_dst_addr
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_rdma_get_service_id
	movq	_IB_SA_PATH_REC_DGID@GOTPCREL(%rip), %rcx
	movq	_IB_SA_PATH_REC_SGID@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movq	_IB_SA_PATH_REC_PKEY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_IB_SA_PATH_REC_NUMB_PATH@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_IB_SA_PATH_REC_REVERSIBLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movl	%eax, -64(%rbp)
	movq	_IB_SA_PATH_REC_SERVICE_ID@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_cma_family
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$130, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.3:
	movl	24(%r12), %edi
	callq	_cpu_to_be16
	movq	%rax, -72(%rbp)
	movq	_IB_SA_PATH_REC_QOS_CLASS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	%r12, %rdi
	callq	_cma_src_addr
	movl	(%rax), %edi
	callq	_be32_to_cpu
	sarl	$20, %eax
	cltq
	movq	%rax, -80(%rbp)
	movq	_IB_SA_PATH_REC_TRAFFIC_CLASS@GOTPCREL(%rip), %rax
LBB0_5:
	orl	(%rax), %ebx
LBB0_6:
	movl	12(%r12), %edx
	movl	16(%r12), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_cma_query_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	leaq	8(%r12), %rax
	movq	_sa_client@GOTPCREL(%rip), %rdi
	leaq	-88(%rbp), %rcx
	movl	%ebx, %r8d
	movl	%r15d, %r9d
	pushq	%rax
	pushq	%r14
	pushq	%r11
	pushq	%r10
	callq	_ib_sa_path_rec_get
	addq	$32, %rsp
	movq	%rax, (%r12)
	movq	%rax, %rcx
	sarq	$63, %rcx
	andl	%eax, %ecx
	movl	%ecx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SA_PATH_REC_DGID,4,2        ## @IB_SA_PATH_REC_DGID
	.comm	_IB_SA_PATH_REC_SGID,4,2        ## @IB_SA_PATH_REC_SGID
	.comm	_IB_SA_PATH_REC_PKEY,4,2        ## @IB_SA_PATH_REC_PKEY
	.comm	_IB_SA_PATH_REC_NUMB_PATH,4,2   ## @IB_SA_PATH_REC_NUMB_PATH
	.comm	_IB_SA_PATH_REC_REVERSIBLE,4,2  ## @IB_SA_PATH_REC_REVERSIBLE
	.comm	_IB_SA_PATH_REC_SERVICE_ID,4,2  ## @IB_SA_PATH_REC_SERVICE_ID
	.comm	_IB_SA_PATH_REC_QOS_CLASS,4,2   ## @IB_SA_PATH_REC_QOS_CLASS
	.comm	_IB_SA_PATH_REC_TRAFFIC_CLASS,4,2 ## @IB_SA_PATH_REC_TRAFFIC_CLASS
	.comm	_sa_client,4,2                  ## @sa_client
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_cma_query_handler,4,2          ## @cma_query_handler
	.no_dead_strip	_cma_query_ib_route
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cma_query_ib_route
_cma_query_ib_route:                    ; @cma_query_ib_route
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	add	x22, x0, #12
	add	x23, x0, #20
	add	x24, sp, #16
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	add	x1, x24, #44
	mov	x0, x23
	bl	_rdma_addr_get_sgid
	add	x1, x24, #40
	mov	x0, x23
	bl	_rdma_addr_get_dgid
	mov	x0, x23
	bl	_ib_addr_get_pkey
	bl	_cpu_to_be16
	str	x0, [sp, #48]
	movi.2s	v0, #1
	str	d0, [sp, #16]
	mov	x0, x19
	bl	_cma_dst_addr
	mov	x1, x0
	mov	x0, x22
	bl	_rdma_get_service_id
	str	w0, [sp, #40]
Lloh0:
	adrp	x8, _IB_SA_PATH_REC_DGID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_SA_PATH_REC_DGID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IB_SA_PATH_REC_SGID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_SA_PATH_REC_SGID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _IB_SA_PATH_REC_PKEY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_SA_PATH_REC_PKEY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _IB_SA_PATH_REC_NUMB_PATH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_SA_PATH_REC_NUMB_PATH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _IB_SA_PATH_REC_REVERSIBLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IB_SA_PATH_REC_REVERSIBLE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _IB_SA_PATH_REC_SERVICE_ID@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IB_SA_PATH_REC_SERVICE_ID@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w22, w8, w9
	mov	x0, x19
	bl	_cma_family
	cmp	w0, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w0, #130
	b.eq	LBB0_4
; %bb.2:
	cmp	w0, #129
	b.ne	LBB0_6
; %bb.3:
	ldr	w0, [x19, #24]
	bl	_cpu_to_be16
	str	x0, [sp, #32]
Lloh18:
	adrp	x8, _IB_SA_PATH_REC_QOS_CLASS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IB_SA_PATH_REC_QOS_CLASS@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_cma_src_addr
	ldr	w0, [x0]
	bl	_be32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sbfx	x8, x0, #20, #12
	str	x8, [sp, #24]
Lloh20:
	adrp	x8, _IB_SA_PATH_REC_TRAFFIC_CLASS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IB_SA_PATH_REC_TRAFFIC_CLASS@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_6:
Lloh22:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
	ldp	w2, w1, [x19, #12]
Lloh24:
	ldr	w6, [x8]
Lloh25:
	adrp	x8, _cma_query_handler@GOTPAGE
Lloh26:
	ldr	x8, [x8, _cma_query_handler@GOTPAGEOFF]
Lloh27:
	ldr	w7, [x8]
	add	x8, x19, #8
	stp	x21, x8, [sp]
Lloh28:
	adrp	x0, _sa_client@GOTPAGE
Lloh29:
	ldr	x0, [x0, _sa_client@GOTPAGEOFF]
	add	x3, sp, #16
	mov	x4, x22
	mov	x5, x20
	bl	_ib_sa_path_rec_get
	str	x0, [x19]
	cmp	x0, #0
	csel	x0, x0, xzr, lt
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SA_PATH_REC_DGID,4,2        ; @IB_SA_PATH_REC_DGID
	.comm	_IB_SA_PATH_REC_SGID,4,2        ; @IB_SA_PATH_REC_SGID
	.comm	_IB_SA_PATH_REC_PKEY,4,2        ; @IB_SA_PATH_REC_PKEY
	.comm	_IB_SA_PATH_REC_NUMB_PATH,4,2   ; @IB_SA_PATH_REC_NUMB_PATH
	.comm	_IB_SA_PATH_REC_REVERSIBLE,4,2  ; @IB_SA_PATH_REC_REVERSIBLE
	.comm	_IB_SA_PATH_REC_SERVICE_ID,4,2  ; @IB_SA_PATH_REC_SERVICE_ID
	.comm	_IB_SA_PATH_REC_QOS_CLASS,4,2   ; @IB_SA_PATH_REC_QOS_CLASS
	.comm	_IB_SA_PATH_REC_TRAFFIC_CLASS,4,2 ; @IB_SA_PATH_REC_TRAFFIC_CLASS
	.comm	_sa_client,4,2                  ; @sa_client
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_cma_query_handler,4,2          ; @cma_query_handler
	.no_dead_strip	_cma_query_ib_route
.subsections_via_symbols
