	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_detach                  ## -- Begin function qlcnic_detach
	.p2align	4, 0x90
_qlcnic_detach:                         ## @qlcnic_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	_QLCNIC_ADAPTER_UP_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	callq	_qlcnic_remove_sysfs_entries
	movq	%rbx, %rdi
	callq	_qlcnic_free_hw_resources
	movq	%rbx, %rdi
	callq	_qlcnic_release_rx_buffers
	movq	%rbx, %rdi
	callq	_qlcnic_free_irq
	movq	%rbx, %rdi
	callq	_qlcnic_napi_del
	movq	%rbx, %rdi
	callq	_qlcnic_free_sw_resources
	movq	$0, (%rbx)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_ADAPTER_UP_MAGIC,8,3    ## @QLCNIC_ADAPTER_UP_MAGIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_detach                  ; -- Begin function qlcnic_detach
	.p2align	2
_qlcnic_detach:                         ; @qlcnic_detach
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _QLCNIC_ADAPTER_UP_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLCNIC_ADAPTER_UP_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
	bl	_qlcnic_remove_sysfs_entries
	mov	x0, x19
	bl	_qlcnic_free_hw_resources
	mov	x0, x19
	bl	_qlcnic_release_rx_buffers
	mov	x0, x19
	bl	_qlcnic_free_irq
	mov	x0, x19
	bl	_qlcnic_napi_del
	mov	x0, x19
	bl	_qlcnic_free_sw_resources
	str	xzr, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_ADAPTER_UP_MAGIC,8,3    ; @QLCNIC_ADAPTER_UP_MAGIC
.subsections_via_symbols
