	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_vf_detach
_qlcnic_sriov_vf_detach:                ## @qlcnic_sriov_vf_detach
	.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
	movq	%rdi, %r13
	movq	(%rdi), %r14
	movq	8(%rdi), %r15
	movq	(%r15), %r12
	movq	16(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	-1(%r12), %rbx
	movq	%r14, %rdi
	callq	_netif_device_detach
	movq	%r13, %rdi
	callq	_qlcnic_83xx_detach_mailbox_work
	movq	%r13, %rdi
	callq	_qlcnic_83xx_disable_mbx_intr
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_qlcnic_down
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.3:
	addq	$-2, %r12
	movl	%ebx, %ecx
	andl	$3, %ecx
	cmpq	$3, %r12
	jae	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	andq	$-4, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	80(%rax), %rdx
	xorl	%eax, %eax
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -80(%rdx)
	movups	%xmm0, -72(%rdx)
	leaq	1(%rax), %rsi
	movq	%rsi, -56(%rdx)
	movups	%xmm0, -48(%rdx)
	leaq	2(%rax), %rsi
	movq	%rsi, -32(%rdx)
	movups	%xmm0, -24(%rdx)
	leaq	3(%rax), %rsi
	movq	%rsi, -8(%rdx)
	addq	$4, %rax
	movups	%xmm0, (%rdx)
	addq	$96, %rdx
	cmpq	%rbx, %rax
	jne	LBB0_6
LBB0_7:
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.8:
	leaq	(%rax,%rax,2), %rdx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rdx,8), %rdx
	addq	$8, %rdx
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	xorl	%esi, %esi
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -8(%rdx,%rsi)
	incq	%rax
	movups	%xmm0, (%rdx,%rsi)
	addq	$24, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_9
LBB0_10:
	movq	$0, 8(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_qlcnic_sriov_vf_detach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sriov_vf_detach
_qlcnic_sriov_vf_detach:                ; @qlcnic_sriov_vf_detach
	.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	x19, x0
	ldp	x20, x21, [x0]
	ldr	x23, [x21, #16]
	ldr	x8, [x21]
	sub	x22, x8, #1
	mov	x0, x20
	bl	_netif_device_detach
	mov	x0, x19
	bl	_qlcnic_83xx_detach_mailbox_work
	mov	x0, x19
	bl	_qlcnic_83xx_disable_mbx_intr
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_qlcnic_down
LBB0_2:
	cbz	x22, LBB0_5
; %bb.3:
	mov	x8, #0
	add	x9, x23, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	stp	x8, xzr, [x9, #-8]
	add	x8, x8, #1
	str	xzr, [x9, #8]
	add	x9, x9, #24
	cmp	x22, x8
	b.ne	LBB0_4
LBB0_5:
	str	xzr, [x21, #8]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_qlcnic_sriov_vf_detach
.subsections_via_symbols
