	.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, %r14
	callq	_cma_src_addr
	movq	%rax, %r15
	movq	(%rax), %rdi
	callq	_be64_to_cpu
	movl	%eax, %ebx
	movq	_RDMA_IB_IP_PS_MASK@GOTPCREL(%rip), %r13
	andl	(%r13), %ebx
	movq	8(%r15), %rdi
	callq	_be64_to_cpu
	andl	%ebx, %eax
	movq	(%r14), %rcx
	movq	_RDMA_PS_IB@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_3
## %bb.1:
	movq	_RDMA_IB_IP_PS_IB@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r12d
	movl	%r12d, %esi
	andl	%ebx, %esi
	cmpl	%esi, %eax
	jne	LBB0_4
## %bb.2:
	movq	_ib_ps@GOTPCREL(%rip), %r14
	jmp	LBB0_11
LBB0_3:
	movq	_RDMA_PS_TCP@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_6
LBB0_4:
	movq	_RDMA_IB_IP_PS_TCP@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r12d
	movl	%r12d, %esi
	andl	%ebx, %esi
	cmpl	%esi, %eax
	jne	LBB0_6
## %bb.5:
	movq	_tcp_ps@GOTPCREL(%rip), %r14
	jmp	LBB0_11
LBB0_6:
	cmpq	%rdx, %rcx
	je	LBB0_9
## %bb.7:
	movq	_RDMA_PS_UDP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
LBB0_9:
	movq	_RDMA_IB_IP_PS_UDP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	andl	%r12d, %ebx
	cmpl	%ebx, %eax
	jne	LBB0_8
## %bb.10:
	movq	_udp_ps@GOTPCREL(%rip), %r14
LBB0_11:
	movq	%r15, %rdi
	callq	_cma_port
	movl	%eax, %edi
	callq	_ntohs
	orl	%eax, %r12d
	movl	%r12d, %edi
	callq	_cpu_to_be64
	movq	%rax, 8(%r15)
	movl	(%r13), %ebx
	movq	(%r15), %rdi
	callq	_be64_to_cpu
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be64
	movq	%rax, (%r15)
	jmp	LBB0_12
LBB0_8:
	xorl	%r14d, %r14d
LBB0_12:
	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_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	_ib_ps,4,2                      ## @ib_ps
	.comm	_RDMA_PS_TCP,8,3                ## @RDMA_PS_TCP
	.comm	_RDMA_IB_IP_PS_TCP,4,2          ## @RDMA_IB_IP_PS_TCP
	.comm	_tcp_ps,4,2                     ## @tcp_ps
	.comm	_RDMA_PS_UDP,8,3                ## @RDMA_PS_UDP
	.comm	_RDMA_IB_IP_PS_UDP,4,2          ## @RDMA_IB_IP_PS_UDP
	.comm	_udp_ps,4,2                     ## @udp_ps
	.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	w23, w8, w0
	ldr	x0, [x19, #8]
	bl	_be64_to_cpu
	and	w8, w0, w23
	ldr	x9, [x20]
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	w22, [x11]
	and	w11, w22, w23
	cmp	w8, w11
	b.ne	LBB0_4
; %bb.2:
Lloh8:
	adrp	x20, _ib_ps@GOTPAGE
Lloh9:
	ldr	x20, [x20, _ib_ps@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
Lloh10:
	adrp	x11, _RDMA_PS_TCP@GOTPAGE
Lloh11:
	ldr	x11, [x11, _RDMA_PS_TCP@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x11]
	cmp	x9, x11
	b.ne	LBB0_6
LBB0_4:
Lloh13:
	adrp	x11, _RDMA_IB_IP_PS_TCP@GOTPAGE
Lloh14:
	ldr	x11, [x11, _RDMA_IB_IP_PS_TCP@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x11]
	and	w11, w22, w23
	cmp	w8, w11
	b.ne	LBB0_6
; %bb.5:
Lloh16:
	adrp	x20, _tcp_ps@GOTPAGE
Lloh17:
	ldr	x20, [x20, _tcp_ps@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh18:
	adrp	x11, _RDMA_PS_UDP@GOTPAGE
Lloh19:
	ldr	x11, [x11, _RDMA_PS_UDP@GOTPAGEOFF]
Lloh20:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_10
; %bb.7:
Lloh21:
	adrp	x9, _RDMA_IB_IP_PS_UDP@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RDMA_IB_IP_PS_UDP@GOTPAGEOFF]
Lloh23:
	ldr	w22, [x9]
	and	w9, w22, w23
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.8:
Lloh24:
	adrp	x20, _udp_ps@GOTPAGE
Lloh25:
	ldr	x20, [x20, _udp_ps@GOTPAGEOFF]
LBB0_9:
	mov	x0, x19
	bl	_cma_port
	bl	_ntohs
	orr	w0, w0, w22
	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_11
LBB0_10:
	mov	x20, #0
LBB0_11:
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.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	_ib_ps,4,2                      ; @ib_ps
	.comm	_RDMA_PS_TCP,8,3                ; @RDMA_PS_TCP
	.comm	_RDMA_IB_IP_PS_TCP,4,2          ; @RDMA_IB_IP_PS_TCP
	.comm	_tcp_ps,4,2                     ; @tcp_ps
	.comm	_RDMA_PS_UDP,8,3                ; @RDMA_PS_UDP
	.comm	_RDMA_IB_IP_PS_UDP,4,2          ; @RDMA_IB_IP_PS_UDP
	.comm	_udp_ps,4,2                     ; @udp_ps
	.no_dead_strip	_cma_select_ib_ps
.subsections_via_symbols
