	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_setup_hw_channel
_i40e_setup_hw_channel:                 ## @i40e_setup_hw_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	$0, (%rdx)
	movq	(%rsi), %rax
	movq	%rax, 32(%rdx)
	movl	%r8d, 28(%rdx)
	movl	%ecx, %esi
	callq	_i40e_add_channel
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_dev_info
	jmp	LBB0_5
LBB0_2:
	movl	$1, (%rbx)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_i40e_channel_config_tx_ring
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	movq	(%r14), %rdi
	movl	24(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	jmp	LBB0_5
LBB0_4:
	movq	8(%rbx), %r9
	movq	(%r12), %rax
	addq	%r9, %rax
	movq	%rax, (%r12)
	movq	(%r14), %rdi
	movl	24(%rbx), %edx
	movl	16(%rbx), %r8d
	movl	20(%rbx), %ecx
	movq	%rax, (%rsp)
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
	xorl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to add_channel using uplink_seid %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to configure TX rings for channel %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"Added channel: vsi_seid %u, vsi_number %u, stat_counter_idx %u, num_queue_pairs %u, pf->next_base_queue %d\n"

	.no_dead_strip	_i40e_setup_hw_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_setup_hw_channel
_i40e_setup_hw_channel:                 ; @i40e_setup_hw_channel
	.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	x23, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	str	wzr, [x2]
	ldr	x8, [x1]
	str	x8, [x2, #32]
	str	w4, [x2, #28]
	mov	x1, x3
	bl	_i40e_add_channel
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	x0, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_dev_info
	b	LBB0_5
LBB0_2:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_i40e_channel_config_tx_ring
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x0, [x20]
	ldr	w2, [x19, #24]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	b	LBB0_5
LBB0_4:
	ldr	x8, [x22]
	ldr	x5, [x19, #8]
	add	x6, x5, x8
	str	x6, [x22]
	ldr	x0, [x20]
	ldp	w3, w2, [x19, #20]
	ldr	w4, [x19, #16]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
LBB0_5:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to add_channel using uplink_seid %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to configure TX rings for channel %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"Added channel: vsi_seid %u, vsi_number %u, stat_counter_idx %u, num_queue_pairs %u, pf->next_base_queue %d\n"

	.no_dead_strip	_i40e_setup_hw_channel
.subsections_via_symbols
