	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ionic_lif_alloc
_ionic_lif_alloc:                       ## @ionic_lif_alloc
	.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	%esi, %r12d
	movq	%rdi, %r15
	movq	24(%rdi), %r13
	movl	8(%rdi), %edx
	movl	$120, %edi
	movl	%edx, %esi
	callq	_alloc_etherdev_mqs
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_SET_NETDEV_DEV
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rbx, 16(%rax)
	movq	%rax, 16(%r15)
	movq	_ionic_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_ionic_ethtool_set_ops
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	movl	%eax, (%rbx)
	movq	_IONIC_MIN_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_IONIC_MAX_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	12(%r15), %eax
	movl	%eax, 116(%r14)
	movl	8(%r15), %eax
	movl	%eax, 112(%r14)
	movq	%r15, 64(%r14)
	movl	%r12d, (%r14)
	movq	_IONIC_DEF_TXRX_DESC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 104(%r14)
	movq	%rax, 96(%r14)
	movq	_IONIC_ITR_COAL_USEC_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ionic_coal_usec_to_hw
	movq	64(%r14), %rdi
	movl	%eax, %esi
	callq	_ionic_coal_hw_to_usec
	movl	%eax, 92(%r14)
	movl	88(%r14), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	movl	%r12d, %ecx
	callq	_snprintf
	leaq	84(%r14), %rdi
	callq	_spin_lock_init
	leaq	72(%r14), %rbx
	leaq	80(%r14), %rdi
	callq	_spin_lock_init
	leaq	76(%r14), %rdi
	callq	_INIT_LIST_HEAD
	movq	_ionic_lif_deferred_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_WORK
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_ALIGN
	movl	%eax, 4(%r14)
	leaq	24(%r14), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_dma_alloc_coherent
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ionic_qcqs_alloc
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_5
LBB0_7:
	movl	4(%r14), %esi
	movq	32(%r14), %rdx
	movq	24(%r14), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_free_coherent
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_8:
	movq	16(%r14), %rdi
	callq	_free_netdev
	movl	%r13d, %edi
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_5:
	movq	64(%r14), %rax
	movl	4(%rax), %edi
	callq	_le16_to_cpu
	movl	%eax, 8(%r14)
	leaq	56(%r14), %rdx
	movl	(%rbx), %ecx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 48(%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.10:
	movq	%r14, %rdi
	addq	$40, %rdi
	movq	%r15, %rsi
	callq	_list_add_tail
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	%r14, %rdi
	callq	_ionic_qcqs_free
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot allocate netdev, aborting\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ionic_netdev_ops,4,2           ## @ionic_netdev_ops
	.comm	_HZ,4,2                         ## @HZ
	.comm	_IONIC_MIN_MTU,4,2              ## @IONIC_MIN_MTU
	.comm	_IONIC_MAX_MTU,4,2              ## @IONIC_MAX_MTU
	.comm	_IONIC_DEF_TXRX_DESC,8,3        ## @IONIC_DEF_TXRX_DESC
	.comm	_IONIC_ITR_COAL_USEC_DEFAULT,4,2 ## @IONIC_ITR_COAL_USEC_DEFAULT
L_.str.1:                               ## @.str.1
	.asciz	"lif%u"

	.comm	_ionic_lif_deferred_work,4,2    ## @ionic_lif_deferred_work
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.2:                               ## @.str.2
	.asciz	"Failed to allocate lif info, aborting\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to allocate rss indirection table, aborting\n"

	.no_dead_strip	_ionic_lif_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ionic_lif_alloc
_ionic_lif_alloc:                       ; @ionic_lif_alloc
	.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	x22, x1
	mov	x21, x0
	ldr	x20, [x0, #24]
	ldr	w1, [x0, #8]
	mov	w0, #120
	mov	x2, x1
	bl	_alloc_etherdev_mqs
	cbz	x0, LBB0_4
; %bb.1:
	mov	x23, x0
	mov	x1, x20
	bl	_SET_NETDEV_DEV
	mov	x0, x23
	bl	_netdev_priv
	mov	x19, x0
	str	x23, [x0, #16]
	str	x0, [x21, #16]
Lloh0:
	adrp	x8, _ionic_netdev_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ionic_netdev_ops@GOTPAGEOFF]
	str	x8, [x23, #16]
	mov	x0, x23
	bl	_ionic_ethtool_set_ops
Lloh2:
	adrp	x8, _HZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	str	w8, [x23]
Lloh5:
	adrp	x8, _IONIC_MIN_MTU@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IONIC_MIN_MTU@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _IONIC_MAX_MTU@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IONIC_MAX_MTU@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x23, #4]
	ldr	d0, [x21, #8]
	str	d0, [x19, #112]
	str	x21, [x19, #64]
	str	w22, [x19]
Lloh11:
	adrp	x8, _IONIC_DEF_TXRX_DESC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IONIC_DEF_TXRX_DESC@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #96]
Lloh14:
	adrp	x8, _IONIC_ITR_COAL_USEC_DEFAULT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IONIC_ITR_COAL_USEC_DEFAULT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_ionic_coal_usec_to_hw
	mov	x1, x0
	ldr	x0, [x19, #64]
	bl	_ionic_coal_hw_to_usec
	str	w0, [x19, #92]
	ldr	w0, [x19, #88]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	mov	x3, x22
	bl	_snprintf
	add	x0, x19, #84
	bl	_spin_lock_init
	add	x22, x19, #72
	add	x0, x19, #80
	bl	_spin_lock_init
	add	x0, x19, #76
	bl	_INIT_LIST_HEAD
Lloh19:
	adrp	x8, _ionic_lif_deferred_work@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ionic_lif_deferred_work@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_INIT_WORK
Lloh22:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_ALIGN
	mov	x1, x0
	str	w0, [x19, #4]
	add	x22, x19, #24
Lloh25:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh26:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x0, x20
	mov	x2, x22
	bl	_dma_alloc_coherent
	str	x0, [x19, #32]
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_ionic_qcqs_alloc
	mov	x23, x0
	cbz	w0, LBB0_8
LBB0_3:
	ldr	w1, [x19, #4]
	ldp	x3, x2, [x19, #24]
	mov	x0, x20
	bl	_dma_free_coherent
	stp	xzr, xzr, [x22]
	b	LBB0_6
LBB0_4:
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_6:
	ldr	x0, [x19, #16]
	bl	_free_netdev
	mov	x0, x23
LBB0_7:
	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
	b	_ERR_PTR
LBB0_8:
	ldr	x8, [x19, #64]
	ldr	w0, [x8, #4]
	bl	_le16_to_cpu
	mov	x1, x0
	str	w0, [x19, #8]
	add	x2, x19, #56
	ldr	w3, [x24]
	mov	x0, x20
	bl	_dma_alloc_coherent
	str	x0, [x19, #48]
	cbz	x0, LBB0_10
; %bb.9:
	add	x0, x19, #40
	mov	x1, x21
	bl	_list_add_tail
	mov	x0, x19
	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
LBB0_10:
Lloh37:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w23, w8
Lloh40:
	adrp	x1, l_.str.3@PAGE
Lloh41:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x19
	bl	_ionic_qcqs_free
	b	LBB0_3
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot allocate netdev, aborting\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ionic_netdev_ops,4,2           ; @ionic_netdev_ops
	.comm	_HZ,4,2                         ; @HZ
	.comm	_IONIC_MIN_MTU,4,2              ; @IONIC_MIN_MTU
	.comm	_IONIC_MAX_MTU,4,2              ; @IONIC_MAX_MTU
	.comm	_IONIC_DEF_TXRX_DESC,8,3        ; @IONIC_DEF_TXRX_DESC
	.comm	_IONIC_ITR_COAL_USEC_DEFAULT,4,2 ; @IONIC_ITR_COAL_USEC_DEFAULT
l_.str.1:                               ; @.str.1
	.asciz	"lif%u"

	.comm	_ionic_lif_deferred_work,4,2    ; @ionic_lif_deferred_work
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.2:                               ; @.str.2
	.asciz	"Failed to allocate lif info, aborting\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to allocate rss indirection table, aborting\n"

	.no_dead_strip	_ionic_lif_alloc
.subsections_via_symbols
