	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_esw_offloads_enable            ## -- Begin function esw_offloads_enable
	.p2align	4, 0x90
_esw_offloads_enable:                   ## @esw_offloads_enable
	.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
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_reformat@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_ESW_FLOWTABLE_FDB
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	(%rbx), %edi
	movq	_decap@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_ESW_FLOWTABLE_FDB
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_DEVLINK_ESWITCH_ENCAP_MODE_BASIC@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_DEVLINK_ESWITCH_ENCAP_MODE_NONE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	(%rbx), %edi
	callq	_mlx5_rdma_enable_roce
	movq	%rbx, %rdi
	callq	_esw_offloads_steering_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_esw_set_passing_vport_metadata
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	_MLX5_VPORT_UC_ADDR_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mlx5_eswitch_enable_pf_vf_vports
	movq	%rbx, %rdi
	callq	_esw_offloads_load_all_reps
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_mlx5_eswitch_disable_pf_vf_vports
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_esw_set_passing_vport_metadata
LBB0_9:
	movq	%rbx, %rdi
	callq	_esw_offloads_steering_cleanup
LBB0_10:
	movl	(%rbx), %edi
	callq	_mlx5_rdma_disable_roce
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	callq	_esw_offloads_devcom_init
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_mutex_init
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_reformat,4,2                   ## @reformat
	.comm	_decap,4,2                      ## @decap
	.comm	_DEVLINK_ESWITCH_ENCAP_MODE_BASIC,4,2 ## @DEVLINK_ESWITCH_ENCAP_MODE_BASIC
	.comm	_DEVLINK_ESWITCH_ENCAP_MODE_NONE,4,2 ## @DEVLINK_ESWITCH_ENCAP_MODE_NONE
	.comm	_MLX5_VPORT_UC_ADDR_CHANGE,4,2  ## @MLX5_VPORT_UC_ADDR_CHANGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_esw_offloads_enable            ; -- Begin function esw_offloads_enable
	.p2align	2
_esw_offloads_enable:                   ; @esw_offloads_enable
	.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
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _reformat@GOTPAGE
Lloh1:
	ldr	x8, [x8, _reformat@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MLX5_CAP_ESW_FLOWTABLE_FDB
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _decap@GOTPAGE
Lloh4:
	ldr	x8, [x8, _decap@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_MLX5_CAP_ESW_FLOWTABLE_FDB
	cbz	x0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _DEVLINK_ESWITCH_ENCAP_MODE_BASIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DEVLINK_ESWITCH_ENCAP_MODE_BASIC@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _DEVLINK_ESWITCH_ENCAP_MODE_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DEVLINK_ESWITCH_ENCAP_MODE_NONE@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w0, [x19]
	bl	_mlx5_rdma_enable_roce
	mov	x0, x19
	bl	_esw_offloads_steering_init
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.5:
	mov	x0, x19
	mov	w1, #1
	bl	_esw_set_passing_vport_metadata
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.6:
Lloh10:
	adrp	x8, _MLX5_VPORT_UC_ADDR_CHANGE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MLX5_VPORT_UC_ADDR_CHANGE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mlx5_eswitch_enable_pf_vf_vports
	mov	x0, x19
	bl	_esw_offloads_load_all_reps
	mov	x20, x0
	cbz	w0, LBB0_11
; %bb.7:
	mov	x0, x19
	bl	_mlx5_eswitch_disable_pf_vf_vports
	mov	x0, x19
	mov	w1, #0
	bl	_esw_set_passing_vport_metadata
LBB0_8:
	mov	x0, x19
	bl	_esw_offloads_steering_cleanup
LBB0_9:
	ldr	w0, [x19]
	bl	_mlx5_rdma_disable_roce
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x0, x19
	bl	_esw_offloads_devcom_init
	add	x0, x19, #4
	bl	_mutex_init
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_reformat,4,2                   ; @reformat
	.comm	_decap,4,2                      ; @decap
	.comm	_DEVLINK_ESWITCH_ENCAP_MODE_BASIC,4,2 ; @DEVLINK_ESWITCH_ENCAP_MODE_BASIC
	.comm	_DEVLINK_ESWITCH_ENCAP_MODE_NONE,4,2 ; @DEVLINK_ESWITCH_ENCAP_MODE_NONE
	.comm	_MLX5_VPORT_UC_ADDR_CHANGE,4,2  ; @MLX5_VPORT_UC_ADDR_CHANGE
.subsections_via_symbols
