	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbevf_reset_queues
_ixgbevf_reset_queues:                  ## @ixgbevf_reset_queues
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	leaq	52(%rdi), %r14
	movl	$0, -52(%rbp)
	movl	$0, -44(%rbp)
	leaq	48(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	leaq	-44(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	movq	%r14, %rdi
	callq	_ixgbevf_get_queues
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	testl	%r12d, %r12d
	jne	LBB0_14
## %bb.1:
	movl	$1, %ebx
	cmpl	$2, -44(%rbp)
	jb	LBB0_3
## %bb.2:
	movl	-52(%rbp), %eax
	movq	40(%r13), %rcx
	movl	%eax, (%rcx)
	movl	-44(%rbp), %ebx
LBB0_3:
	xorl	%r12d, %r12d
	cmpl	%ebx, (%r13)
	je	LBB0_14
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	$32, %esi
	callq	_kcalloc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_15
## %bb.5:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.6:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%r13), %eax
	movl	%eax, 24(%r15)
	movl	%ebx, (%r15)
	movl	%ebx, 4(%r15)
	movq	24(%r13), %rax
	movq	%rax, 16(%r15)
	movl	16(%r13), %eax
	movl	%eax, 8(%r15)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_ixgbevf_setup_rx_resources
	testl	%eax, %eax
	jne	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	addq	$32, %r15
	cmpq	%rbx, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_7
LBB0_13:
	movq	%r13, %rdi
	callq	_ixgbevf_free_all_rx_resources
	movl	$0, (%r13)
	movq	8(%r13), %rdi
	callq	_kfree
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r13)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r13)
	movq	%r13, %rdi
	callq	_ixgbevf_reset_q_vectors
	movq	%r13, %rdi
	callq	_ixgbevf_map_rings_to_vectors
	jmp	LBB0_14
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_8:
	movl	%eax, %r14d
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.9:
	movq	%rbx, %r15
	negq	%r15
	movslq	%ebx, %rax
	shlq	$5, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %rbx
	addq	$-32, %rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ixgbevf_free_rx_resources
	addq	$-32, %rbx
	incl	%r15d
	jne	LBB0_10
LBB0_11:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movl	%r14d, %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ixgbevf_reset_queues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbevf_reset_queues
_ixgbevf_reset_queues:                  ; @ixgbevf_reset_queues
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	add	x20, x0, #52
	str	xzr, [sp, #8]
	add	x21, x0, #48
	mov	x0, x21
	bl	_spin_lock_bh
	add	x1, sp, #8
	add	x2, sp, #12
	mov	x0, x20
	bl	_ixgbevf_get_queues
	mov	x22, x0
	mov	x0, x21
	bl	_spin_unlock_bh
	cbnz	w22, LBB0_17
; %bb.1:
	ldr	w8, [sp, #8]
	cmp	w8, #2
	b.lo	LBB0_3
; %bb.2:
	ldr	w8, [sp, #12]
	ldr	x9, [x19, #40]
	str	w8, [x9]
	ldr	w21, [sp, #8]
	b	LBB0_4
LBB0_3:
	mov	w21, #1
LBB0_4:
	ldr	w8, [x19]
	cmp	w8, w21
	b.eq	LBB0_11
; %bb.5:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #32
	bl	_kcalloc
	cbz	x0, LBB0_12
; %bb.6:
	mov	x20, x0
	cbz	w21, LBB0_10
; %bb.7:
	mov	x24, #0
	mov	w25, w21
	mov	x23, x20
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #32]
	str	w8, [x23, #24]
	stp	w24, w24, [x23]
	ldr	x8, [x19, #24]
	str	x8, [x23, #16]
	ldr	w8, [x19, #16]
	str	w8, [x23, #8]
	mov	x0, x19
	mov	x1, x23
	bl	_ixgbevf_setup_rx_resources
	cbnz	w0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x24, #1
	add	x23, x23, #32
	cmp	x25, x24
	b.ne	LBB0_8
LBB0_10:
	mov	x0, x19
	bl	_ixgbevf_free_all_rx_resources
	str	wzr, [x19]
	ldr	x0, [x19, #8]
	bl	_kfree
	str	x20, [x19, #8]
	str	w21, [x19]
	mov	x0, x19
	bl	_ixgbevf_reset_q_vectors
	mov	x0, x19
	bl	_ixgbevf_map_rings_to_vectors
LBB0_11:
	mov	w22, #0
	b	LBB0_17
LBB0_12:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_17
LBB0_13:
	mov	x22, x0
	cbz	w24, LBB0_16
; %bb.14:
	neg	x23, x24
	sxtw	x8, w24
	add	x8, x20, x8, lsl #5
	sub	x21, x8, #32
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_ixgbevf_free_rx_resources
	sub	x21, x21, #32
	adds	w23, w23, #1
	b.lo	LBB0_15
LBB0_16:
	mov	x0, x20
	bl	_kfree
LBB0_17:
	mov	x0, x22
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ixgbevf_reset_queues
.subsections_via_symbols
