	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_devlink_eswitch_check
_mlx5_devlink_eswitch_check:            ## @mlx5_devlink_eswitch_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_devlink_priv
	movq	%rax, %r14
	movq	_port_type@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_MLX5_CAP_GEN
	movq	_MLX5_CAP_PORT_TYPE_ETH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	%r14, %rdi
	callq	_MLX5_ESWITCH_MANAGER
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_MLX5_ESWITCH_NONE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	callq	_mlx5_core_is_ecpf_esw_manager
	testl	%eax, %eax
	jne	LBB0_7
LBB0_5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_port_type,4,2                  ## @port_type
	.comm	_MLX5_CAP_PORT_TYPE_ETH,8,3     ## @MLX5_CAP_PORT_TYPE_ETH
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_MLX5_ESWITCH_NONE,8,3          ## @MLX5_ESWITCH_NONE
	.no_dead_strip	_mlx5_devlink_eswitch_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_devlink_eswitch_check
_mlx5_devlink_eswitch_check:            ; @mlx5_devlink_eswitch_check
	.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
	bl	_devlink_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _port_type@GOTPAGE
Lloh1:
	ldr	x8, [x8, _port_type@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN
Lloh3:
	adrp	x8, _MLX5_CAP_PORT_TYPE_ETH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5_CAP_PORT_TYPE_ETH@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_MLX5_ESWITCH_MANAGER
	cbz	w0, LBB0_6
; %bb.2:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _MLX5_ESWITCH_NONE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MLX5_ESWITCH_NONE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_mlx5_core_is_ecpf_esw_manager
	cbz	w0, LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _EPERM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_port_type,4,2                  ; @port_type
	.comm	_MLX5_CAP_PORT_TYPE_ETH,8,3     ; @MLX5_CAP_PORT_TYPE_ETH
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_MLX5_ESWITCH_NONE,8,3          ; @MLX5_ESWITCH_NONE
	.no_dead_strip	_mlx5_devlink_eswitch_check
.subsections_via_symbols
