	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esw_offloads_steering_init
_esw_offloads_steering_init:            ## @esw_offloads_steering_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	8(%rdi), %edi
	movl	12(%r15), %ebx
	callq	_mlx5_core_is_ecpf_esw_manager
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %r14d
	jmp	LBB0_3
LBB0_2:
	movl	8(%r15), %edi
	callq	_MLX5_SPECIAL_VPORTS
	movl	%eax, %r14d
	addl	%ebx, %r14d
LBB0_3:
	leaq	4(%r15), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	callq	_esw_create_offloads_acl_tables
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_esw_create_offloads_fdb_tables
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_esw_create_offloads_table
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_esw_create_vport_rx_group
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_esw_destroy_offloads_table
LBB0_9:
	movq	%r15, %rdi
	callq	_esw_destroy_offloads_fdb_tables
LBB0_10:
	movq	%r15, %rdi
	callq	_esw_destroy_offloads_acl_tables
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_esw_offloads_steering_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esw_offloads_steering_init
_esw_offloads_steering_init:            ; @esw_offloads_steering_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldp	w0, w20, [x0, #8]
	bl	_mlx5_core_is_ecpf_esw_manager
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w20, [x19]
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19, #8]
	bl	_MLX5_SPECIAL_VPORTS
	add	w20, w0, w20
LBB0_3:
	add	x21, x19, #4
	mov	x0, x21
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x21
	bl	_mutex_init
	mov	x0, x19
	bl	_esw_create_offloads_acl_tables
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_esw_create_offloads_fdb_tables
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_esw_create_offloads_table
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_esw_create_vport_rx_group
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.7:
	mov	x0, x19
	bl	_esw_destroy_offloads_table
LBB0_8:
	mov	x0, x19
	bl	_esw_destroy_offloads_fdb_tables
LBB0_9:
	mov	x0, x19
	bl	_esw_destroy_offloads_acl_tables
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_esw_offloads_steering_init
.subsections_via_symbols
