	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_esw_offloads_devcom_event
_mlx5_esw_offloads_devcom_event:        ## @mlx5_esw_offloads_devcom_event
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	(%rsi), %rax
	movq	(%rax), %r12
	xorl	%r14d, %r14d
	cmpl	$128, %edi
	je	LBB0_7
## %bb.1:
	cmpl	$129, %edi
	jne	LBB0_12
## %bb.2:
	movq	%rbx, %rdi
	callq	_mlx5_eswitch_vport_match_metadata_enabled
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_mlx5_eswitch_vport_match_metadata_enabled
	cmpl	%eax, %r13d
	jne	LBB0_12
## %bb.3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_mlx5_esw_offloads_set_ns_peer
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mlx5_esw_offloads_pair
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mlx5_esw_offloads_pair
	testl	%eax, %eax
	je	LBB0_6
## %bb.9:
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_mlx5_esw_offloads_unpair
LBB0_10:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_mlx5_esw_offloads_set_ns_peer
LBB0_11:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$129, %edx
	movl	%r13d, %ecx
	callq	_mlx5_core_err
	movl	%r13d, %r14d
	jmp	LBB0_12
LBB0_7:
	movq	_MLX5_DEVCOM_ESW_OFFLOADS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_mlx5_devcom_is_paired
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:
	movl	(%r13), %esi
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_mlx5_devcom_set_paired
	movq	%r15, %rdi
	callq	_mlx5_esw_offloads_unpair
	movq	%rbx, %rdi
	callq	_mlx5_esw_offloads_unpair
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_mlx5_esw_offloads_set_ns_peer
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_MLX5_DEVCOM_ESW_OFFLOADS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_mlx5_devcom_set_paired
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_DEVCOM_ESW_OFFLOADS,4,2   ## @MLX5_DEVCOM_ESW_OFFLOADS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"esw offloads devcom event failure, event %u err %d"

	.no_dead_strip	_mlx5_esw_offloads_devcom_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_esw_offloads_devcom_event
_mlx5_esw_offloads_devcom_event:        ; @mlx5_esw_offloads_devcom_event
	.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	x20, x2
	mov	x19, x1
	ldr	x8, [x1]
	ldr	x21, [x8]
	cmp	w0, #128
	b.eq	LBB0_9
; %bb.1:
	cmp	w0, #129
	b.ne	LBB0_11
; %bb.2:
	mov	x0, x19
	bl	_mlx5_eswitch_vport_match_metadata_enabled
	mov	x22, x0
	mov	x0, x20
	bl	_mlx5_eswitch_vport_match_metadata_enabled
	cmp	w22, w0
	b.ne	LBB0_11
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_mlx5_esw_offloads_set_ns_peer
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_mlx5_esw_offloads_pair
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_mlx5_esw_offloads_pair
	mov	x22, x0
	cbz	w0, LBB0_13
; %bb.6:
	mov	x0, x19
	bl	_mlx5_esw_offloads_unpair
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_mlx5_esw_offloads_set_ns_peer
LBB0_8:
	ldr	x0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #129
	mov	x3, x22
	bl	_mlx5_core_err
	b	LBB0_12
LBB0_9:
Lloh2:
	adrp	x22, _MLX5_DEVCOM_ESW_OFFLOADS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MLX5_DEVCOM_ESW_OFFLOADS@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_mlx5_devcom_is_paired
	cbz	w0, LBB0_11
; %bb.10:
	ldr	w1, [x22]
	mov	x0, x21
	mov	w2, #0
	bl	_mlx5_devcom_set_paired
	mov	x0, x20
	bl	_mlx5_esw_offloads_unpair
	mov	x0, x19
	bl	_mlx5_esw_offloads_unpair
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_mlx5_esw_offloads_set_ns_peer
LBB0_11:
	mov	w22, #0
LBB0_12:
	mov	x0, x22
	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
LBB0_13:
Lloh4:
	adrp	x8, _MLX5_DEVCOM_ESW_OFFLOADS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MLX5_DEVCOM_ESW_OFFLOADS@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #1
	bl	_mlx5_devcom_set_paired
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_DEVCOM_ESW_OFFLOADS,4,2   ; @MLX5_DEVCOM_ESW_OFFLOADS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"esw offloads devcom event failure, event %u err %d"

	.no_dead_strip	_mlx5_esw_offloads_devcom_event
.subsections_via_symbols
