	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_open_channel
_mlx5e_open_channel:                    ## @mlx5e_open_channel
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_mlx5_comp_irq_get_affinity_mask
	movl	%eax, %edi
	callq	_cpumask_first
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	16(%rbx), %r12
	movq	(%rbx), %rdi
	leaq	-100(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movl	%r14d, %esi
	callq	_mlx5_vector2eqn
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_node
	movl	$80, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_kvzalloc_node
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r13
	movq	%rbx, 72(%rax)
	movq	(%rbx), %rax
	movq	%rax, 64(%r13)
	leaq	24(%rbx), %rcx
	movq	%rcx, 56(%r13)
	movl	%r14d, (%r13)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 4(%r13)
	movl	4(%rax), %ecx
	movl	%ecx, 48(%r13)
	movq	16(%rbx), %rcx
	movq	%rcx, 40(%r13)
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movl	%eax, 36(%r13)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	4(%r15), %eax
	movl	%eax, 32(%r13)
	xorl	%eax, %eax
	cmpl	$0, (%r15)
	setne	%al
	movl	%eax, 8(%r13)
	movslq	%r14d, %rax
	shlq	$2, %rax
	addq	8(%rbx), %rax
	movq	%rax, 24(%r13)
	movl	-48(%rbp), %edi
	callq	_irq_to_desc
	movl	%eax, 20(%r13)
	movq	(%rbx), %rdi
	movl	%r14d, %esi
	movq	%r15, %r14
	callq	_mlx5e_enumerate_lag_port
	movl	%eax, 16(%r13)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_mlx5e_alloc_xps_cpumask
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movq	%r14, %r15
	movq	%r13, %r14
	addq	$12, %r14
	movq	_mlx5e_napi_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	$64, %ecx
	callq	_netif_napi_add
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_mlx5e_open_queues
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:
	testq	%r12, %r12
	je	LBB0_7
## %bb.6:
	leaq	-96(%rbp), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mlx5e_build_xsk_param
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r12, %rcx
	movq	%r13, %r8
	callq	_mlx5e_open_xsk
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r13, %rdi
	callq	_mlx5e_close_queues
LBB0_9:
	movq	%r14, %rdi
	callq	_netif_napi_del
	movq	%r13, %rdi
	callq	_mlx5e_free_xps_cpumask
LBB0_10:
	movq	%r13, %rdi
	callq	_kvfree
	jmp	LBB0_11
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mlx5e_napi_poll,4,2            ## @mlx5e_napi_poll
	.no_dead_strip	_mlx5e_open_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_open_channel
_mlx5e_open_channel:                    ; @mlx5e_open_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x20, x4
	mov	x24, x3
	mov	x21, x2
	mov	x26, x1
	mov	x22, x0
	ldr	x0, [x0]
	bl	_mlx5_comp_irq_get_affinity_mask
	bl	_cpumask_first
	mov	x28, x0
	ldr	x25, [x22, #16]
	ldr	x0, [x22]
	mov	x2, sp
	add	x3, sp, #4
	mov	x1, x26
	bl	_mlx5_vector2eqn
	mov	x27, x0
	cbnz	w0, LBB0_10
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	mov	x0, x28
	bl	_cpu_to_node
	mov	x2, x0
	mov	w0, #80
	mov	x1, x23
	bl	_kvzalloc_node
	cbz	x0, LBB0_9
; %bb.2:
	mov	x23, x0
	str	x22, [x0, #72]
	ldr	x8, [x22]
	add	x9, x22, #24
	stp	x9, x8, [x0, #56]
	stp	w26, w28, [x0]
	ldp	w0, w9, [x8]
	str	w9, [x23, #48]
	ldr	x8, [x22, #16]
	str	x8, [x23, #40]
	bl	_cpu_to_be32
	ldp	w9, w8, [x21]
	stp	w8, w0, [x23, #32]
	cmp	w9, #0
	cset	w8, ne
	str	w8, [x23, #8]
	ldr	x8, [x22, #8]
	add	x8, x8, w26, sxtw #2
	str	x8, [x23, #24]
	ldr	w0, [sp, #4]
	bl	_irq_to_desc
	str	w0, [x23, #20]
	ldr	x0, [x22]
	mov	x1, x26
	bl	_mlx5e_enumerate_lag_port
	str	w0, [x23, #16]
	mov	x0, x23
	mov	x1, x21
	bl	_mlx5e_alloc_xps_cpumask
	mov	x27, x0
	cbnz	w0, LBB0_8
; %bb.3:
	add	x26, x23, #12
Lloh3:
	adrp	x8, _mlx5e_napi_poll@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mlx5e_napi_poll@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x25
	mov	x1, x26
	mov	w3, #64
	bl	_netif_napi_add
	mov	x0, x23
	mov	x1, x21
	mov	x2, x24
	bl	_mlx5e_open_queues
	mov	x27, x0
	bl	_unlikely
	cbnz	x0, LBB0_7
; %bb.4:
	cbz	x20, LBB0_11
; %bb.5:
	add	x1, sp, #8
	mov	x0, x20
	bl	_mlx5e_build_xsk_param
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x21
	mov	x3, x20
	mov	x4, x23
	bl	_mlx5e_open_xsk
	mov	x27, x0
	bl	_unlikely
	cbz	x0, LBB0_11
; %bb.6:
	mov	x0, x23
	bl	_mlx5e_close_queues
LBB0_7:
	mov	x0, x26
	bl	_netif_napi_del
	mov	x0, x23
	bl	_mlx5e_free_xps_cpumask
LBB0_8:
	mov	x0, x23
	bl	_kvfree
	b	LBB0_10
LBB0_9:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w27, w8
LBB0_10:
	mov	x0, x27
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
	mov	w27, #0
	str	x23, [x19]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mlx5e_napi_poll,4,2            ; @mlx5e_napi_poll
	.no_dead_strip	_mlx5e_open_channel
.subsections_via_symbols
