	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_xsk_enable_locked
_mlx5e_xsk_enable_locked:               ## @mlx5e_xsk_enable_locked
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r13
	leaq	16(%rdi), %r15
	leaq	4(%rdi), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mlx5e_xsk_get_umem
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_mlx5e_xsk_is_umem_sane
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mlx5e_xsk_map_umem
	movq	%r14, %rbx
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_16
## %bb.6:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_mlx5e_xsk_add_umem
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_15
## %bb.7:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mlx5e_build_xsk_param
	movq	_MLX5E_STATE_OPENED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r13), %rsi
	callq	_test_bit
	testl	%eax, %eax
	movq	%rbx, %r14
	je	LBB0_17
## %bb.8:
	cmpl	$0, (%r15)
	je	LBB0_17
## %bb.9:
	movq	8(%r13), %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %r8
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %r15
	movq	%r14, %rcx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	callq	_mlx5e_open_xsk
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_unlikely
	movq	%rbx, %rsi
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rsi, %rbx
	callq	_mlx5e_activate_xsk
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r13, %rdi
	callq	_mlx5e_xsk_redirect_rqt_to_channel
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_mlx5e_deactivate_xsk
	movq	%rbx, %rdi
	callq	_mlx5e_close_xsk
	jmp	LBB0_13
LBB0_17:
	movl	(%r13), %edx
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_mlx5e_validate_xsk_param
	movq	%r14, %r15
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_13:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_14:
	movq	%r12, %rdi
	callq	_mlx5e_xsk_remove_umem
	movq	%r15, %rbx
LBB0_15:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_mlx5e_xsk_unmap_umem
	jmp	LBB0_16
LBB0_11:
	xorl	%r14d, %r14d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLX5E_STATE_OPENED,4,2         ## @MLX5E_STATE_OPENED
	.no_dead_strip	_mlx5e_xsk_enable_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_xsk_enable_locked
_mlx5e_xsk_enable_locked:               ; @mlx5e_xsk_enable_locked
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	x23, x0, #16
	add	x22, x0, #4
	mov	x0, x23
	mov	x1, x22
	bl	_mlx5e_xsk_get_umem
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_mlx5e_xsk_is_umem_sane
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_5:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_mlx5e_xsk_map_umem
	mov	x24, x0
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.7:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	bl	_mlx5e_xsk_add_umem
	mov	x24, x0
	bl	_unlikely
	cbnz	x0, LBB0_17
; %bb.8:
	add	x1, sp, #8
	mov	x0, x19
	bl	_mlx5e_build_xsk_param
Lloh4:
	adrp	x8, _MLX5E_STATE_OPENED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MLX5E_STATE_OPENED@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	add	x1, x20, #24
	bl	_test_bit
	cbz	w0, LBB0_13
; %bb.9:
	ldr	w8, [x23]
	cbz	w8, LBB0_13
; %bb.10:
	ldr	x8, [x20, #8]
	ldr	x25, [x8, x21, lsl #3]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x23
	mov	x3, x19
	mov	x4, x25
	bl	_mlx5e_open_xsk
	mov	x24, x0
	bl	_unlikely
	cbnz	x0, LBB0_16
; %bb.11:
	mov	x0, x25
	bl	_mlx5e_activate_xsk
	ldr	x8, [x20, #8]
	ldr	x1, [x8, x21, lsl #3]
	mov	x0, x20
	bl	_mlx5e_xsk_redirect_rqt_to_channel
	mov	x24, x0
	bl	_unlikely
	cbz	x0, LBB0_14
; %bb.12:
	mov	x0, x25
	bl	_mlx5e_deactivate_xsk
	mov	x0, x25
	bl	_mlx5e_close_xsk
	b	LBB0_16
LBB0_13:
	ldr	w2, [x20]
	add	x1, sp, #8
	mov	x0, x23
	bl	_mlx5e_validate_xsk_param
	cbz	w0, LBB0_15
LBB0_14:
	mov	w24, #0
	b	LBB0_5
LBB0_15:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_16:
	mov	x0, x22
	mov	x1, x21
	bl	_mlx5e_xsk_remove_umem
LBB0_17:
	mov	x0, x20
	mov	x1, x19
	bl	_mlx5e_xsk_unmap_umem
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX5E_STATE_OPENED,4,2         ; @MLX5E_STATE_OPENED
	.no_dead_strip	_mlx5e_xsk_enable_locked
.subsections_via_symbols
