	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_open_xsk                 ## -- Begin function mlx5e_open_xsk
	.p2align	4, 0x90
_mlx5e_open_xsk:                        ## @mlx5e_open_xsk
	.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	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	(%rdi), %edx
	movq	%rsi, %rdi
	movq	%r13, %rsi
	callq	_mlx5e_validate_xsk_param
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kvzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%rax, %rcx
	callq	_mlx5e_build_xsk_cparam
	leaq	20(%r15), %rdx
	movl	4(%r12), %esi
	movq	%r14, %rdi
	movq	%r14, %rcx
	callq	_mlx5e_open_cq
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_17
## %bb.6:
	leaq	16(%r15), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	%r14, %r9
	callq	_mlx5e_open_rq
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_16
## %bb.7:
	leaq	12(%r15), %rdx
	leaq	4(%r14), %r13
	movl	(%r12), %esi
	movq	%r14, %rdi
	movq	%r13, %rcx
	callq	_mlx5e_open_cq
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_15
## %bb.8:
	leaq	8(%r15), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	movl	$1, %r9d
	callq	_mlx5e_open_xdpsq
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_14
## %bb.9:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdx
	addq	$4, %rdx
	leaq	8(%r14), %r13
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r13, %rcx
	callq	_mlx5e_open_cq
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_13
## %bb.10:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	callq	_mlx5e_open_icosq
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%r13, %rdi
	callq	_mlx5e_close_cq
LBB0_13:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_mlx5e_close_xdpsq
LBB0_14:
	movq	%r13, %rdi
	callq	_mlx5e_close_cq
LBB0_15:
	movq	%r14, %rdi
	callq	_mlx5e_close_rq
LBB0_16:
	movq	%r14, %rdi
	callq	_mlx5e_close_cq
LBB0_17:
	movq	%r15, %rdi
	callq	_kvfree
	jmp	LBB0_18
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r15, %rdi
	callq	_kvfree
	leaq	16(%r14), %rdi
	callq	_spin_lock_init
	movq	_MLX5E_CHANNEL_STATE_XSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r14), %esi
	callq	_set_bit
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLX5E_CHANNEL_STATE_XSK,4,2    ## @MLX5E_CHANNEL_STATE_XSK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_open_xsk                 ; -- Begin function mlx5e_open_xsk
	.p2align	2
_mlx5e_open_xsk:                        ; @mlx5e_open_xsk
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x4
	mov	x23, x3
	mov	x24, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w2, [x0]
	mov	x0, x1
	mov	x1, x24
	bl	_mlx5e_validate_xsk_param
	cbz	w0, LBB0_14
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kvzalloc
	cbz	x0, LBB0_15
; %bb.2:
	mov	x20, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	mov	x3, x20
	bl	_mlx5e_build_xsk_cparam
	add	x2, x20, #20
	ldr	w1, [x21, #4]
	mov	x0, x19
	mov	x3, x19
	bl	_mlx5e_open_cq
	mov	x22, x0
	bl	_unlikely
	cbnz	x0, LBB0_13
; %bb.3:
	add	x2, x20, #16
	mov	x0, x19
	mov	x1, x21
	mov	x3, x24
	mov	x4, x23
	mov	x5, x19
	bl	_mlx5e_open_rq
	mov	x22, x0
	bl	_unlikely
	cbnz	x0, LBB0_12
; %bb.4:
	add	x2, x20, #12
	add	x24, x19, #4
	ldr	w1, [x21]
	mov	x0, x19
	mov	x3, x24
	bl	_mlx5e_open_cq
	mov	x22, x0
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.5:
	add	x2, x20, #8
	mov	x0, x19
	mov	x1, x21
	mov	x3, x23
	mov	x4, x24
	mov	w5, #1
	bl	_mlx5e_open_xdpsq
	mov	x22, x0
	bl	_unlikely
	cbnz	x0, LBB0_10
; %bb.6:
	add	x2, x20, #4
	add	x23, x19, #8
	mov	x0, x19
	mov	x1, #0
	mov	x3, x23
	bl	_mlx5e_open_cq
	mov	x22, x0
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.7:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x23
	bl	_mlx5e_open_icosq
	mov	x22, x0
	bl	_unlikely
	cbz	x0, LBB0_18
; %bb.8:
	mov	x0, x23
	bl	_mlx5e_close_cq
LBB0_9:
	mov	x0, x24
	bl	_mlx5e_close_xdpsq
LBB0_10:
	mov	x0, x24
	bl	_mlx5e_close_cq
LBB0_11:
	mov	x0, x19
	bl	_mlx5e_close_rq
LBB0_12:
	mov	x0, x19
	bl	_mlx5e_close_cq
LBB0_13:
	mov	x0, x20
	bl	_kvfree
	b	LBB0_17
LBB0_14:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_17:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	mov	x0, x20
	bl	_kvfree
	add	x0, x19, #16
	bl	_spin_lock_init
Lloh7:
	adrp	x8, _MLX5E_CHANNEL_STATE_XSK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MLX5E_CHANNEL_STATE_XSK@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	_set_bit
	mov	w22, #0
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLX5E_CHANNEL_STATE_XSK,4,2    ; @MLX5E_CHANNEL_STATE_XSK
.subsections_via_symbols
