	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cma_validate_port
_cma_validate_port:                     ## @cma_validate_port
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movl	%esi, %ecx
	movq	%rdi, %r13
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	(%r8), %r14d
	movq	_ARPHRD_INFINIBAND@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	cmpl	%eax, %r14d
	jne	LBB0_3
## %bb.1:
	movq	%r13, %rdi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %esi
	callq	_rdma_protocol_ib
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movl	(%r15), %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_3:
	movl	%ebx, %r15d
	cmpl	%eax, %r14d
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	movl	%ecx, %esi
	movl	%ecx, %ebx
	callq	_rdma_protocol_ib
	movl	%ebx, %ecx
	testq	%rax, %rax
	jne	LBB0_9
LBB0_5:
	movq	_ARPHRD_ETHER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_10
## %bb.6:
	movq	%r13, %rdi
	movl	%ecx, %esi
	movl	%ecx, %ebx
	callq	_rdma_protocol_roce
	movl	%ebx, %ecx
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movl	8(%rax), %edi
	movl	%ecx, %r14d
	callq	_dev_get_by_index
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movq	%rax, %r8
	xorl	%r9d, %r9d
	callq	_ib_find_cached_gid_by_port
	movl	%eax, %r12d
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_dev_put
LBB0_9:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_IB_GID_TYPE_IB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ib_find_cached_gid_by_port     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ARPHRD_INFINIBAND,4,2          ## @ARPHRD_INFINIBAND
	.comm	_ARPHRD_ETHER,4,2               ## @ARPHRD_ETHER
	.comm	_IB_GID_TYPE_IB,4,2             ## @IB_GID_TYPE_IB
	.no_dead_strip	_cma_validate_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cma_validate_port
_cma_validate_port:                     ; @cma_validate_port
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x4
	mov	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w25, [x4]
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w24, w8
Lloh3:
	adrp	x26, _ARPHRD_INFINIBAND@GOTPAGE
Lloh4:
	ldr	x26, [x26, _ARPHRD_INFINIBAND@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w25, w8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	bl	_rdma_protocol_ib
	cbz	x0, LBB0_9
; %bb.2:
	ldr	w8, [x26]
LBB0_3:
	cmp	w25, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x21
	mov	x1, x19
	bl	_rdma_protocol_ib
	cbnz	x0, LBB0_9
LBB0_5:
Lloh5:
	adrp	x8, _ARPHRD_ETHER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ARPHRD_ETHER@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w25, w8
	b.ne	LBB0_10
; %bb.6:
	mov	x0, x21
	mov	x1, x19
	bl	_rdma_protocol_roce
	cbz	x0, LBB0_10
; %bb.7:
	ldp	w1, w0, [x23, #4]
	bl	_dev_get_by_index
	mov	x23, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x19
	mov	x4, x23
	mov	x5, #0
	bl	_ib_find_cached_gid_by_port
	mov	x24, x0
	cbz	x23, LBB0_9
; %bb.8:
	mov	x0, x23
	bl	_dev_put
LBB0_9:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh8:
	adrp	x8, _IB_GID_TYPE_IB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_GID_TYPE_IB@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	mov	x4, #0
	mov	x5, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ib_find_cached_gid_by_port
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ARPHRD_INFINIBAND,4,2          ; @ARPHRD_INFINIBAND
	.comm	_ARPHRD_ETHER,4,2               ; @ARPHRD_ETHER
	.comm	_IB_GID_TYPE_IB,4,2             ; @IB_GID_TYPE_IB
	.no_dead_strip	_cma_validate_port
.subsections_via_symbols
