	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_configure_queue_channels
_i40e_configure_queue_channels:         ## @i40e_configure_queue_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	48(%rdi), %eax
	movq	(%rdi), %rcx
	movl	%eax, (%rcx)
	movq	_I40E_MAX_TRAFFIC_CLASS@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	cmpl	$2, (%r12)
	jl	LBB0_11
## %bb.1:
	movq	%rdi, %r15
	leaq	16(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%r15), %r14d
	movl	%ebx, %edi
	callq	_BIT
	testl	%r14d, %eax
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$20, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movq	%rax, %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_INIT_LIST_HEAD
	movq	40(%r15), %rax
	movl	4(%rax,%rbx,8), %ecx
	movl	%ecx, 4(%r13)
	movl	(%rax,%rbx,8), %eax
	movl	%eax, 16(%r13)
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %r12d
	movq	_I40E_BW_MBPS_DIVISOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_do_div
	movl	%r12d, 12(%r13)
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_i40e_create_queue_channel
	testl	%eax, %eax
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	_I40E_MAX_TRAFFIC_CLASS@GOTPCREL(%rip), %r12
	jmp	LBB0_9
LBB0_10:
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_7
LBB0_6:
	movl	%eax, %r14d
	movq	8(%r15), %rax
	movq	(%rax), %rdi
	movl	4(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_7:
	movq	%r15, %rdi
	callq	_i40e_remove_queue_channels
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_MAX_TRAFFIC_CLASS,4,2     ## @I40E_MAX_TRAFFIC_CLASS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_I40E_BW_MBPS_DIVISOR,4,2       ## @I40E_BW_MBPS_DIVISOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed creating queue channel with TC%d: queues %d\n"

	.no_dead_strip	_i40e_configure_queue_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_configure_queue_channels
_i40e_configure_queue_channels:         ; @i40e_configure_queue_channels
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0, #48]
	ldr	x9, [x0]
	str	w8, [x9]
Lloh0:
	adrp	x25, _I40E_MAX_TRAFFIC_CLASS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _I40E_MAX_TRAFFIC_CLASS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x0
	mov	x26, #0
	add	x21, x0, #16
	mov	w20, #1
Lloh2:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	adrp	x28, _I40E_BW_MBPS_DIVISOR@GOTPAGE
Lloh5:
	ldr	x28, [x28, _I40E_BW_MBPS_DIVISOR@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x25]
	add	x26, x26, #8
	cmp	x20, x8
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x19, #32]
	mov	x0, x20
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x27]
	mov	w0, #20
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	add	x23, x0, #8
	mov	x0, x23
	bl	_INIT_LIST_HEAD
	ldr	x8, [x19, #40]
	add	x8, x8, x26
	ldp	w8, w9, [x8, #8]
	str	w9, [x22, #4]
	str	w8, [x22, #16]
	ldr	x8, [x19, #24]
	ldr	w24, [x8, x20, lsl #2]
	ldr	w1, [x28]
	mov	x0, x24
	bl	_do_div
	str	w24, [x22, #12]
	mov	x0, x23
	mov	x1, x21
	bl	_list_add_tail
	mov	x0, x19
	mov	x1, x22
	bl	_i40e_create_queue_channel
	cbnz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22]
	ldr	x9, [x19]
	str	w8, [x9, x20, lsl #2]
	b	LBB0_2
LBB0_7:
	mov	w23, #0
	b	LBB0_11
LBB0_8:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_10
LBB0_9:
	mov	x23, x0
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	ldr	w3, [x22, #4]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_10:
	mov	x0, x19
	bl	_i40e_remove_queue_channels
LBB0_11:
	mov	x0, x23
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_MAX_TRAFFIC_CLASS,4,2     ; @I40E_MAX_TRAFFIC_CLASS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_I40E_BW_MBPS_DIVISOR,4,2       ; @I40E_BW_MBPS_DIVISOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed creating queue channel with TC%d: queues %d\n"

	.no_dead_strip	_i40e_configure_queue_channels
.subsections_via_symbols
