	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_open_channels            ## -- Begin function mlx5e_open_channels
	.p2align	4, 0x90
_mlx5e_open_channels:                   ## @mlx5e_open_channels
	.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	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movl	16(%rsi), %edi
	movl	%edi, (%rsi)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 8(%r12)
	movl	(%rbx), %esi
	movl	$4, %edi
	callq	_kvzalloc
	movq	%rax, %rbx
	cmpq	$0, 8(%r12)
	je	LBB0_12
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.2:
	leaq	16(%r12), %r15
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	callq	_mlx5e_build_channel_param
	cmpl	$0, (%r12)
	jle	LBB0_14
## %bb.3:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 24(%r12)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	20(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_mlx5e_xsk_get_umem
	movq	%rax, %r8
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r8d, %r8d
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r12), %r9
	addq	%r14, %r9
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r15, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_mlx5e_open_channel
	testl	%eax, %eax
	jne	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_14:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlx5e_health_channels_update
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kvfree
	xorl	%r13d, %r13d
	jmp	LBB0_15
LBB0_8:
	movl	%eax, %r13d
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.9:
	incq	%rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	-8(%rax,%rbx,4), %edi
	callq	_mlx5e_close_channel
	decq	%rbx
	cmpq	$1, %rbx
	jg	LBB0_10
LBB0_11:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_12:
	movq	8(%r12), %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kvfree
	movl	$0, (%r12)
LBB0_15:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_open_channels            ; -- Begin function mlx5e_open_channels
	.p2align	2
_mlx5e_open_channels:                   ; @mlx5e_open_channels
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w23, w8
	mov	x22, x1
	ldr	w0, [x22, #16]!
	str	w0, [x1]
Lloh3:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19, #8]
	ldr	w1, [x20]
	mov	w0, #4
	bl	_kvzalloc
	mov	x20, x0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
; %bb.1:
	cbz	x20, LBB0_13
; %bb.2:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_mlx5e_build_channel_param
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x25, #0
	mov	x24, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x19, #20]
	mov	x0, x22
	mov	x2, x24
	bl	_mlx5e_xsk_get_umem
	mov	x4, x0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x4, #0
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	add	x5, x8, x25
	mov	x0, x21
	mov	x1, x24
	mov	x2, x22
	mov	x3, x20
	bl	_mlx5e_open_channel
	cbnz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19]
	add	x25, x25, #4
	cmp	x24, x8
	b.lt	LBB0_4
LBB0_9:
	mov	x0, x21
	bl	_mlx5e_health_channels_update
	mov	x0, x20
	bl	_kvfree
	mov	w23, #0
	b	LBB0_14
LBB0_10:
	mov	x23, x0
	cbz	w24, LBB0_13
; %bb.11:
	sub	x21, x24, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x21, lsl #2]
	bl	_mlx5e_close_channel
	add	x8, x21, #1
	sub	x21, x21, #1
	cmp	x8, #1
	b.gt	LBB0_12
LBB0_13:
	ldr	x0, [x19, #8]
	bl	_kfree
	mov	x0, x20
	bl	_kvfree
	str	wzr, [x19]
LBB0_14:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
