	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_get_vport_access_method
_mlx5_get_vport_access_method:          ## @mlx5_get_vport_access_method
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_to_mdev
	movl	%eax, %edi
	callq	_mlx5_use_mad_ifc
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_MLX5_VPORT_ACCESS_METHOD_MAD@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_mlx5_ib_port_link_layer
	movq	_IB_LINK_LAYER_ETHERNET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_MLX5_VPORT_ACCESS_METHOD_NIC@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_MLX5_VPORT_ACCESS_METHOD_HCA@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_VPORT_ACCESS_METHOD_MAD,4,2 ## @MLX5_VPORT_ACCESS_METHOD_MAD
	.comm	_IB_LINK_LAYER_ETHERNET,8,3     ## @IB_LINK_LAYER_ETHERNET
	.comm	_MLX5_VPORT_ACCESS_METHOD_NIC,4,2 ## @MLX5_VPORT_ACCESS_METHOD_NIC
	.comm	_MLX5_VPORT_ACCESS_METHOD_HCA,4,2 ## @MLX5_VPORT_ACCESS_METHOD_HCA
	.no_dead_strip	_mlx5_get_vport_access_method
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_get_vport_access_method
_mlx5_get_vport_access_method:          ; @mlx5_get_vport_access_method
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_to_mdev
	bl	_mlx5_use_mad_ifc
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MLX5_VPORT_ACCESS_METHOD_MAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_VPORT_ACCESS_METHOD_MAD@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	w1, #1
	bl	_mlx5_ib_port_link_layer
Lloh2:
	adrp	x8, _IB_LINK_LAYER_ETHERNET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB_LINK_LAYER_ETHERNET@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _MLX5_VPORT_ACCESS_METHOD_HCA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MLX5_VPORT_ACCESS_METHOD_HCA@GOTPAGEOFF]
Lloh7:
	adrp	x10, _MLX5_VPORT_ACCESS_METHOD_NIC@GOTPAGE
Lloh8:
	ldr	x10, [x10, _MLX5_VPORT_ACCESS_METHOD_NIC@GOTPAGEOFF]
	cmp	x0, x8
	csel	x8, x10, x9, eq
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_VPORT_ACCESS_METHOD_MAD,4,2 ; @MLX5_VPORT_ACCESS_METHOD_MAD
	.comm	_IB_LINK_LAYER_ETHERNET,8,3     ; @IB_LINK_LAYER_ETHERNET
	.comm	_MLX5_VPORT_ACCESS_METHOD_NIC,4,2 ; @MLX5_VPORT_ACCESS_METHOD_NIC
	.comm	_MLX5_VPORT_ACCESS_METHOD_HCA,4,2 ; @MLX5_VPORT_ACCESS_METHOD_HCA
	.no_dead_strip	_mlx5_get_vport_access_method
.subsections_via_symbols
