	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_83xx_idc_detach_driver
_qlcnic_83xx_idc_detach_driver:         ## @qlcnic_83xx_idc_detach_driver
	.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	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_netif_device_detach
	movq	%r14, %rdi
	callq	_qlcnic_83xx_detach_mailbox_work
	movq	%r14, %rdi
	callq	_qlcnic_83xx_disable_mbx_intr
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_qlcnic_down
	movq	(%r14), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_8
## %bb.1:
	movq	8(%rax), %rdx
	leaq	-1(%rsi), %rax
	movl	%esi, %ecx
	andl	$3, %ecx
	cmpq	$3, %rax
	jae	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	andl	$-4, %esi
	leaq	80(%rdx), %rdi
	xorl	%eax, %eax
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -80(%rdi)
	movups	%xmm0, -72(%rdi)
	leal	1(%rax), %ebx
	movl	%ebx, -56(%rdi)
	movups	%xmm0, -48(%rdi)
	leal	2(%rax), %ebx
	movl	%ebx, -32(%rdi)
	movups	%xmm0, -24(%rdi)
	leal	3(%rax), %ebx
	movl	%ebx, -8(%rdi)
	addq	$4, %rax
	movups	%xmm0, (%rdi)
	addq	$96, %rdi
	cmpq	%rsi, %rax
	jne	LBB0_4
LBB0_5:
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.6:
	leaq	(%rax,%rax,2), %rsi
	leaq	(%rdx,%rsi,8), %rdx
	addq	$8, %rdx
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	xorl	%esi, %esi
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -8(%rdx,%rsi)
	movups	%xmm0, (%rdx,%rsi)
	addq	$24, %rsi
	incl	%eax
	cmpq	%rsi, %rcx
	jne	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	callq	_qlcnic_sriov_pf_check
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_qlcnic_sriov_pf_reset          ## TAILCALL
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_qlcnic_83xx_idc_detach_driver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_83xx_idc_detach_driver
_qlcnic_83xx_idc_detach_driver:         ; @qlcnic_83xx_idc_detach_driver
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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	x20, [x0, #8]
	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, x19
	mov	x1, x20
	bl	_qlcnic_down
	ldr	x10, [x19]
	ldr	w8, [x10]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
	ldr	x10, [x10, #8]
	add	x10, x10, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	stur	w9, [x10, #-8]
	add	x9, x9, #1
	stp	xzr, xzr, [x10], #24
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_qlcnic_sriov_pf_check
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_qlcnic_sriov_pf_reset
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_qlcnic_83xx_idc_detach_driver
.subsections_via_symbols
