	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdma_port_get_link_layer       ## -- Begin function rdma_port_get_link_layer
	.p2align	4, 0x90
_rdma_port_get_link_layer:              ## @rdma_port_get_link_layer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	movl	8(%rdi), %edi
	callq	_rdma_node_get_transport
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_2
## %bb.4:
	movq	_IB_LINK_LAYER_ETHERNET@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	cmpl	$131, %eax
	jne	LBB0_5
## %bb.3:
	movq	_IB_LINK_LAYER_INFINIBAND@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_IB_LINK_LAYER_UNSPECIFIED@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_LINK_LAYER_INFINIBAND,4,2   ## @IB_LINK_LAYER_INFINIBAND
	.comm	_IB_LINK_LAYER_ETHERNET,4,2     ## @IB_LINK_LAYER_ETHERNET
	.comm	_IB_LINK_LAYER_UNSPECIFIED,4,2  ## @IB_LINK_LAYER_UNSPECIFIED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdma_port_get_link_layer       ; -- Begin function rdma_port_get_link_layer
	.p2align	2
_rdma_port_get_link_layer:              ; @rdma_port_get_link_layer
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x2, [x0]
	cbz	x2, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	br	x2
LBB0_2:
	ldr	w0, [x0, #8]
	bl	_rdma_node_get_transport
	sub	w8, w0, #128
	cmp	w8, #3
	b.hs	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _IB_LINK_LAYER_ETHERNET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_LINK_LAYER_ETHERNET@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	cmp	w0, #131
	b.ne	LBB0_6
; %bb.5:
Lloh2:
	adrp	x8, _IB_LINK_LAYER_INFINIBAND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB_LINK_LAYER_INFINIBAND@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _IB_LINK_LAYER_UNSPECIFIED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IB_LINK_LAYER_UNSPECIFIED@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_LINK_LAYER_INFINIBAND,4,2   ; @IB_LINK_LAYER_INFINIBAND
	.comm	_IB_LINK_LAYER_ETHERNET,4,2     ; @IB_LINK_LAYER_ETHERNET
	.comm	_IB_LINK_LAYER_UNSPECIFIED,4,2  ; @IB_LINK_LAYER_UNSPECIFIED
.subsections_via_symbols
