	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_remove_diag_entries
_qlcnic_remove_diag_entries:            ## @qlcnic_remove_diag_entries
	.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, %rbx
	movq	24(%rdi), %r14
	movq	_bin_attr_port_stats@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_remove_bin_file
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_QLCNIC_NON_PRIV_FUNC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.1:
	movq	_dev_attr_diag_mode@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_remove_file
	movq	_bin_attr_crb@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_remove_bin_file
	movq	_bin_attr_mem@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_remove_bin_file
	movq	___QLCNIC_MAINTENANCE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_bin_attr_pci_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_remove_bin_file
	movq	_dev_attr_beacon@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_remove_file
	movq	_QLCNIC_ESWITCH_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	_bin_attr_esw_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_remove_bin_file
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_QLCNIC_MGMT_FUNC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	_bin_attr_npar_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_remove_bin_file
	movq	_bin_attr_pm_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_remove_bin_file
	movq	_bin_attr_esw_stats@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_device_remove_bin_file         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_bin_attr_port_stats,4,2        ## @bin_attr_port_stats
	.comm	_QLCNIC_NON_PRIV_FUNC,8,3       ## @QLCNIC_NON_PRIV_FUNC
	.comm	_dev_attr_diag_mode,4,2         ## @dev_attr_diag_mode
	.comm	_bin_attr_crb,4,2               ## @bin_attr_crb
	.comm	_bin_attr_mem,4,2               ## @bin_attr_mem
	.comm	___QLCNIC_MAINTENANCE_MODE,4,2  ## @__QLCNIC_MAINTENANCE_MODE
	.comm	_bin_attr_pci_config,4,2        ## @bin_attr_pci_config
	.comm	_dev_attr_beacon,4,2            ## @dev_attr_beacon
	.comm	_QLCNIC_ESWITCH_ENABLED,4,2     ## @QLCNIC_ESWITCH_ENABLED
	.comm	_bin_attr_esw_config,4,2        ## @bin_attr_esw_config
	.comm	_QLCNIC_MGMT_FUNC,8,3           ## @QLCNIC_MGMT_FUNC
	.comm	_bin_attr_npar_config,4,2       ## @bin_attr_npar_config
	.comm	_bin_attr_pm_config,4,2         ## @bin_attr_pm_config
	.comm	_bin_attr_esw_stats,4,2         ## @bin_attr_esw_stats
	.no_dead_strip	_qlcnic_remove_diag_entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_remove_diag_entries
_qlcnic_remove_diag_entries:            ; @qlcnic_remove_diag_entries
	.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	x20, x0
	ldr	x19, [x0, #24]
Lloh0:
	adrp	x1, _bin_attr_port_stats@GOTPAGE
Lloh1:
	ldr	x1, [x1, _bin_attr_port_stats@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_bin_file
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _QLCNIC_NON_PRIV_FUNC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _QLCNIC_NON_PRIV_FUNC@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, _dev_attr_diag_mode@GOTPAGE
Lloh6:
	ldr	x1, [x1, _dev_attr_diag_mode@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_file
Lloh7:
	adrp	x1, _bin_attr_crb@GOTPAGE
Lloh8:
	ldr	x1, [x1, _bin_attr_crb@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_bin_file
Lloh9:
	adrp	x1, _bin_attr_mem@GOTPAGE
Lloh10:
	ldr	x1, [x1, _bin_attr_mem@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_bin_file
Lloh11:
	adrp	x8, ___QLCNIC_MAINTENANCE_MODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, ___QLCNIC_MAINTENANCE_MODE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x1, x20, #16
	bl	_test_bit
	cbz	x0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh14:
	adrp	x1, _bin_attr_pci_config@GOTPAGE
Lloh15:
	ldr	x1, [x1, _bin_attr_pci_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_bin_file
Lloh16:
	adrp	x1, _dev_attr_beacon@GOTPAGE
Lloh17:
	ldr	x1, [x1, _dev_attr_beacon@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_file
	ldr	w8, [x20]
Lloh18:
	adrp	x9, _QLCNIC_ESWITCH_ENABLED@GOTPAGE
Lloh19:
	ldr	x9, [x9, _QLCNIC_ESWITCH_ENABLED@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.4:
Lloh21:
	adrp	x1, _bin_attr_esw_config@GOTPAGE
Lloh22:
	ldr	x1, [x1, _bin_attr_esw_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_bin_file
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _QLCNIC_MGMT_FUNC@GOTPAGE
Lloh24:
	ldr	x9, [x9, _QLCNIC_MGMT_FUNC@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.5:
Lloh26:
	adrp	x1, _bin_attr_npar_config@GOTPAGE
Lloh27:
	ldr	x1, [x1, _bin_attr_npar_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_bin_file
Lloh28:
	adrp	x1, _bin_attr_pm_config@GOTPAGE
Lloh29:
	ldr	x1, [x1, _bin_attr_pm_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_bin_file
Lloh30:
	adrp	x1, _bin_attr_esw_stats@GOTPAGE
Lloh31:
	ldr	x1, [x1, _bin_attr_esw_stats@GOTPAGEOFF]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_device_remove_bin_file
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_bin_attr_port_stats,4,2        ; @bin_attr_port_stats
	.comm	_QLCNIC_NON_PRIV_FUNC,8,3       ; @QLCNIC_NON_PRIV_FUNC
	.comm	_dev_attr_diag_mode,4,2         ; @dev_attr_diag_mode
	.comm	_bin_attr_crb,4,2               ; @bin_attr_crb
	.comm	_bin_attr_mem,4,2               ; @bin_attr_mem
	.comm	___QLCNIC_MAINTENANCE_MODE,4,2  ; @__QLCNIC_MAINTENANCE_MODE
	.comm	_bin_attr_pci_config,4,2        ; @bin_attr_pci_config
	.comm	_dev_attr_beacon,4,2            ; @dev_attr_beacon
	.comm	_QLCNIC_ESWITCH_ENABLED,4,2     ; @QLCNIC_ESWITCH_ENABLED
	.comm	_bin_attr_esw_config,4,2        ; @bin_attr_esw_config
	.comm	_QLCNIC_MGMT_FUNC,8,3           ; @QLCNIC_MGMT_FUNC
	.comm	_bin_attr_npar_config,4,2       ; @bin_attr_npar_config
	.comm	_bin_attr_pm_config,4,2         ; @bin_attr_pm_config
	.comm	_bin_attr_esw_stats,4,2         ; @bin_attr_esw_stats
	.no_dead_strip	_qlcnic_remove_diag_entries
.subsections_via_symbols
