	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_setup_channel
_i40e_setup_channel:                    ## @i40e_setup_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	(%rsi), %rdx
	movq	_I40E_VSI_MAIN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_5
## %bb.1:
	movq	_I40E_VSI_VMDQ2@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_i40e_setup_hw_channel
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_4
LBB0_5:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_4
LBB0_3:
	xorl	%ebx, %ebx
	cmpq	$0, (%r14)
	setne	%bl
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_VSI_MAIN,8,3              ## @I40E_VSI_MAIN
	.comm	_I40E_VSI_VMDQ2,4,2             ## @I40E_VSI_VMDQ2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported parent vsi type(%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to setup hw_channel\n"

	.no_dead_strip	_i40e_setup_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_channel
_i40e_setup_channel:                    ; @i40e_setup_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _I40E_VSI_MAIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I40E_VSI_MAIN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x2
Lloh3:
	adrp	x8, _I40E_VSI_VMDQ2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40E_VSI_VMDQ2@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w3, [x8]
	mov	x0, x19
	bl	_i40e_setup_hw_channel
	cbz	w0, LBB0_5
; %bb.2:
	ldr	x0, [x19, #8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	ldr	x0, [x19, #8]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	bl	_dev_err
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, ne
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_VSI_MAIN,8,3              ; @I40E_VSI_MAIN
	.comm	_I40E_VSI_VMDQ2,4,2             ; @I40E_VSI_VMDQ2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported parent vsi type(%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to setup hw_channel\n"

	.no_dead_strip	_i40e_setup_channel
.subsections_via_symbols
