	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cma_select_ib_ps
_cma_select_ib_ps:                      ## @cma_select_ib_ps
	.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	%rdi, %r15
	callq	_cma_src_addr
	movq	%rax, %r14
	movq	(%rax), %rdi
	callq	_be64_to_cpu
	movl	%eax, %ebx
	movq	_RDMA_IB_IP_PS_MASK@GOTPCREL(%rip), %r13
	andl	(%r13), %ebx
	movq	8(%r14), %rdi
	callq	_be64_to_cpu
	andl	%ebx, %eax
	movq	(%r15), %rcx
	movq	_RDMA_PS_IB@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_4
## %bb.1:
	movq	_RDMA_IB_IP_PS_IB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	movl	%r12d, %edx
	andl	%ebx, %edx
	cmpl	%edx, %eax
	jne	LBB0_3
## %bb.2:
	movq	%rcx, %rdx
	jmp	LBB0_9
LBB0_4:
	movq	_RDMA_PS_TCP@GOTPCREL(%rip), %rdi
	movq	%rcx, %rdx
	cmpq	(%rdi), %rcx
	je	LBB0_5
	jmp	LBB0_6
LBB0_3:
	movq	_RDMA_PS_TCP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
LBB0_5:
	movq	_RDMA_IB_IP_PS_TCP@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r12d
	movl	%r12d, %edi
	andl	%ebx, %edi
	cmpl	%edi, %eax
	je	LBB0_9
LBB0_6:
	xorl	%r15d, %r15d
	movq	_RDMA_PS_UDP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rsi, %rcx
	je	LBB0_8
## %bb.7:
	cmpq	%rdx, %rcx
	jne	LBB0_12
LBB0_8:
	movq	_RDMA_IB_IP_PS_UDP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	andl	%r12d, %ebx
	cmpl	%ebx, %eax
	jne	LBB0_12
LBB0_9:
	testl	%edx, %edx
	je	LBB0_10
## %bb.11:
	movl	%edx, %r15d
	movq	%r14, %rdi
	callq	_cma_port
	movl	%eax, %edi
	callq	_ntohs
	orl	%eax, %r12d
	movl	%r12d, %edi
	callq	_cpu_to_be64
	movq	%rax, 8(%r14)
	movl	(%r13), %ebx
	movq	(%r14), %rdi
	callq	_be64_to_cpu
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be64
	movq	%rax, (%r14)
	jmp	LBB0_12
LBB0_10:
	xorl	%r15d, %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDMA_IB_IP_PS_MASK,4,2         ## @RDMA_IB_IP_PS_MASK
	.comm	_RDMA_PS_IB,8,3                 ## @RDMA_PS_IB
	.comm	_RDMA_IB_IP_PS_IB,4,2           ## @RDMA_IB_IP_PS_IB
	.comm	_RDMA_PS_TCP,8,3                ## @RDMA_PS_TCP
	.comm	_RDMA_IB_IP_PS_TCP,4,2          ## @RDMA_IB_IP_PS_TCP
	.comm	_RDMA_PS_UDP,8,3                ## @RDMA_PS_UDP
	.comm	_RDMA_IB_IP_PS_UDP,4,2          ## @RDMA_IB_IP_PS_UDP
	.no_dead_strip	_cma_select_ib_ps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cma_select_ib_ps
_cma_select_ib_ps:                      ; @cma_select_ib_ps
	.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, x0
	bl	_cma_src_addr
	mov	x19, x0
	ldr	x0, [x0]
	bl	_be64_to_cpu
Lloh0:
	adrp	x21, _RDMA_IB_IP_PS_MASK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RDMA_IB_IP_PS_MASK@GOTPAGEOFF]
	ldr	w8, [x21]
	and	w22, w8, w0
	ldr	x0, [x19, #8]
	bl	_be64_to_cpu
	and	w8, w0, w22
	ldr	x9, [x20]
	mov	x20, x9
Lloh2:
	adrp	x10, _RDMA_PS_IB@GOTPAGE
Lloh3:
	ldr	x10, [x10, _RDMA_PS_IB@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.1:
Lloh5:
	adrp	x11, _RDMA_IB_IP_PS_IB@GOTPAGE
Lloh6:
	ldr	x11, [x11, _RDMA_IB_IP_PS_IB@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x11]
	and	w11, w23, w22
	cmp	w8, w11
	b.eq	LBB0_7
; %bb.2:
Lloh8:
	adrp	x11, _RDMA_PS_TCP@GOTPAGE
Lloh9:
	ldr	x11, [x11, _RDMA_PS_TCP@GOTPAGEOFF]
Lloh10:
	ldr	x20, [x11]
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x11, _RDMA_PS_TCP@GOTPAGE
Lloh12:
	ldr	x11, [x11, _RDMA_PS_TCP@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
	cmp	x9, x11
	b.ne	LBB0_5
LBB0_4:
Lloh14:
	adrp	x11, _RDMA_IB_IP_PS_TCP@GOTPAGE
Lloh15:
	ldr	x11, [x11, _RDMA_IB_IP_PS_TCP@GOTPAGEOFF]
Lloh16:
	ldr	w23, [x11]
	and	w11, w23, w22
	cmp	w8, w11
	b.eq	LBB0_7
LBB0_5:
Lloh17:
	adrp	x11, _RDMA_PS_UDP@GOTPAGE
Lloh18:
	ldr	x11, [x11, _RDMA_PS_UDP@GOTPAGEOFF]
Lloh19:
	ldr	x20, [x11]
	cmp	x9, x10
	ccmp	x9, x20, #4, ne
	b.ne	LBB0_9
; %bb.6:
Lloh20:
	adrp	x9, _RDMA_IB_IP_PS_UDP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RDMA_IB_IP_PS_UDP@GOTPAGEOFF]
Lloh22:
	ldr	w23, [x9]
	and	w9, w23, w22
	cmp	w8, w9
	b.ne	LBB0_9
LBB0_7:
	cbz	w20, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_cma_port
	bl	_ntohs
	orr	w0, w0, w23
	bl	_cpu_to_be64
	str	x0, [x19, #8]
	ldr	w21, [x21]
	ldr	x0, [x19]
	bl	_be64_to_cpu
	orr	w0, w0, w21
	bl	_cpu_to_be64
	str	x0, [x19]
	b	LBB0_10
LBB0_9:
	mov	w20, #0
LBB0_10:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_RDMA_IB_IP_PS_MASK,4,2         ; @RDMA_IB_IP_PS_MASK
	.comm	_RDMA_PS_IB,8,3                 ; @RDMA_PS_IB
	.comm	_RDMA_IB_IP_PS_IB,4,2           ; @RDMA_IB_IP_PS_IB
	.comm	_RDMA_PS_TCP,8,3                ; @RDMA_PS_TCP
	.comm	_RDMA_IB_IP_PS_TCP,4,2          ; @RDMA_IB_IP_PS_TCP
	.comm	_RDMA_PS_UDP,8,3                ; @RDMA_PS_UDP
	.comm	_RDMA_IB_IP_PS_UDP,4,2          ; @RDMA_IB_IP_PS_UDP
	.no_dead_strip	_cma_select_ib_ps
.subsections_via_symbols
