	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_create_diag_entries
_qlcnic_create_diag_entries:            ## @qlcnic_create_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, %r14
	movq	24(%rdi), %rbx
	movq	_bin_attr_port_stats@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_bin_file
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
LBB0_2:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	_QLCNIC_NON_PRIV_FUNC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.3:
	movq	_dev_attr_diag_mode@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_file
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
LBB0_5:
	movq	_bin_attr_crb@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_bin_file
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
LBB0_7:
	movq	_bin_attr_mem@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_bin_file
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
LBB0_9:
	movq	___QLCNIC_MAINTENANCE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r14), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_10
LBB0_23:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movq	_bin_attr_pci_config@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_bin_file
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
LBB0_12:
	movq	_dev_attr_beacon@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_file
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
LBB0_14:
	movq	_QLCNIC_ESWITCH_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_23
## %bb.15:
	movq	_bin_attr_esw_config@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_bin_file
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
LBB0_17:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	_QLCNIC_MGMT_FUNC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.18:
	movq	_bin_attr_npar_config@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_bin_file
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
LBB0_20:
	movq	_bin_attr_pm_config@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_bin_file
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
LBB0_22:
	movq	_bin_attr_esw_stats@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_bin_file
	testq	%rax, %rax
	je	LBB0_23
## %bb.24:
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_bin_attr_port_stats,4,2        ## @bin_attr_port_stats
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create port stats sysfs entry"

	.comm	_QLCNIC_NON_PRIV_FUNC,8,3       ## @QLCNIC_NON_PRIV_FUNC
	.comm	_dev_attr_diag_mode,4,2         ## @dev_attr_diag_mode
L_.str.1:                               ## @.str.1
	.asciz	"failed to create diag_mode sysfs entry\n"

	.comm	_bin_attr_crb,4,2               ## @bin_attr_crb
L_.str.2:                               ## @.str.2
	.asciz	"failed to create crb sysfs entry\n"

	.comm	_bin_attr_mem,4,2               ## @bin_attr_mem
L_.str.3:                               ## @.str.3
	.asciz	"failed to create mem sysfs entry\n"

	.comm	___QLCNIC_MAINTENANCE_MODE,4,2  ## @__QLCNIC_MAINTENANCE_MODE
	.comm	_bin_attr_pci_config,4,2        ## @bin_attr_pci_config
L_.str.4:                               ## @.str.4
	.asciz	"failed to create pci config sysfs entry"

	.comm	_dev_attr_beacon,4,2            ## @dev_attr_beacon
L_.str.5:                               ## @.str.5
	.asciz	"failed to create beacon sysfs entry"

	.comm	_QLCNIC_ESWITCH_ENABLED,4,2     ## @QLCNIC_ESWITCH_ENABLED
	.comm	_bin_attr_esw_config,4,2        ## @bin_attr_esw_config
L_.str.6:                               ## @.str.6
	.asciz	"failed to create esw config sysfs entry"

	.comm	_QLCNIC_MGMT_FUNC,8,3           ## @QLCNIC_MGMT_FUNC
	.comm	_bin_attr_npar_config,4,2       ## @bin_attr_npar_config
L_.str.7:                               ## @.str.7
	.asciz	"failed to create npar config sysfs entry"

	.comm	_bin_attr_pm_config,4,2         ## @bin_attr_pm_config
L_.str.8:                               ## @.str.8
	.asciz	"failed to create pm config sysfs entry"

	.comm	_bin_attr_esw_stats,4,2         ## @bin_attr_esw_stats
L_.str.9:                               ## @.str.9
	.asciz	"failed to create eswitch stats sysfs entry"

	.no_dead_strip	_qlcnic_create_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_create_diag_entries
_qlcnic_create_diag_entries:            ; @qlcnic_create_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_create_bin_file
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_2:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh4:
	adrp	x9, _QLCNIC_NON_PRIV_FUNC@GOTPAGE
Lloh5:
	ldr	x9, [x9, _QLCNIC_NON_PRIV_FUNC@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.3:
Lloh7:
	adrp	x1, _dev_attr_diag_mode@GOTPAGE
Lloh8:
	ldr	x1, [x1, _dev_attr_diag_mode@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	cbz	x0, LBB0_5
; %bb.4:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_5:
Lloh11:
	adrp	x1, _bin_attr_crb@GOTPAGE
Lloh12:
	ldr	x1, [x1, _bin_attr_crb@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_bin_file
	cbz	x0, LBB0_7
; %bb.6:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_7:
Lloh15:
	adrp	x1, _bin_attr_mem@GOTPAGE
Lloh16:
	ldr	x1, [x1, _bin_attr_mem@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_bin_file
	cbz	x0, LBB0_9
; %bb.8:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_9:
Lloh19:
	adrp	x8, ___QLCNIC_MAINTENANCE_MODE@GOTPAGE
Lloh20:
	ldr	x8, [x8, ___QLCNIC_MAINTENANCE_MODE@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	add	x1, x20, #16
	bl	_test_bit
	cbz	x0, LBB0_11
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh22:
	adrp	x1, _bin_attr_pci_config@GOTPAGE
Lloh23:
	ldr	x1, [x1, _bin_attr_pci_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_bin_file
	cbz	x0, LBB0_13
; %bb.12:
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_13:
Lloh26:
	adrp	x1, _dev_attr_beacon@GOTPAGE
Lloh27:
	ldr	x1, [x1, _dev_attr_beacon@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	cbz	x0, LBB0_15
; %bb.14:
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_15:
	ldr	w8, [x20]
Lloh30:
	adrp	x9, _QLCNIC_ESWITCH_ENABLED@GOTPAGE
Lloh31:
	ldr	x9, [x9, _QLCNIC_ESWITCH_ENABLED@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.16:
Lloh33:
	adrp	x1, _bin_attr_esw_config@GOTPAGE
Lloh34:
	ldr	x1, [x1, _bin_attr_esw_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_bin_file
	cbz	x0, LBB0_18
; %bb.17:
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_18:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh37:
	adrp	x9, _QLCNIC_MGMT_FUNC@GOTPAGE
Lloh38:
	ldr	x9, [x9, _QLCNIC_MGMT_FUNC@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.19:
Lloh40:
	adrp	x1, _bin_attr_npar_config@GOTPAGE
Lloh41:
	ldr	x1, [x1, _bin_attr_npar_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_bin_file
	cbz	x0, LBB0_21
; %bb.20:
Lloh42:
	adrp	x1, l_.str.7@PAGE
Lloh43:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_21:
Lloh44:
	adrp	x1, _bin_attr_pm_config@GOTPAGE
Lloh45:
	ldr	x1, [x1, _bin_attr_pm_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_bin_file
	cbz	x0, LBB0_23
; %bb.22:
Lloh46:
	adrp	x1, l_.str.8@PAGE
Lloh47:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_23:
Lloh48:
	adrp	x1, _bin_attr_esw_stats@GOTPAGE
Lloh49:
	ldr	x1, [x1, _bin_attr_esw_stats@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_bin_file
	cbz	x0, LBB0_10
; %bb.24:
Lloh50:
	adrp	x1, l_.str.9@PAGE
Lloh51:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_info
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_bin_attr_port_stats,4,2        ; @bin_attr_port_stats
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create port stats sysfs entry"

	.comm	_QLCNIC_NON_PRIV_FUNC,8,3       ; @QLCNIC_NON_PRIV_FUNC
	.comm	_dev_attr_diag_mode,4,2         ; @dev_attr_diag_mode
l_.str.1:                               ; @.str.1
	.asciz	"failed to create diag_mode sysfs entry\n"

	.comm	_bin_attr_crb,4,2               ; @bin_attr_crb
l_.str.2:                               ; @.str.2
	.asciz	"failed to create crb sysfs entry\n"

	.comm	_bin_attr_mem,4,2               ; @bin_attr_mem
l_.str.3:                               ; @.str.3
	.asciz	"failed to create mem sysfs entry\n"

	.comm	___QLCNIC_MAINTENANCE_MODE,4,2  ; @__QLCNIC_MAINTENANCE_MODE
	.comm	_bin_attr_pci_config,4,2        ; @bin_attr_pci_config
l_.str.4:                               ; @.str.4
	.asciz	"failed to create pci config sysfs entry"

	.comm	_dev_attr_beacon,4,2            ; @dev_attr_beacon
l_.str.5:                               ; @.str.5
	.asciz	"failed to create beacon sysfs entry"

	.comm	_QLCNIC_ESWITCH_ENABLED,4,2     ; @QLCNIC_ESWITCH_ENABLED
	.comm	_bin_attr_esw_config,4,2        ; @bin_attr_esw_config
l_.str.6:                               ; @.str.6
	.asciz	"failed to create esw config sysfs entry"

	.comm	_QLCNIC_MGMT_FUNC,8,3           ; @QLCNIC_MGMT_FUNC
	.comm	_bin_attr_npar_config,4,2       ; @bin_attr_npar_config
l_.str.7:                               ; @.str.7
	.asciz	"failed to create npar config sysfs entry"

	.comm	_bin_attr_pm_config,4,2         ; @bin_attr_pm_config
l_.str.8:                               ; @.str.8
	.asciz	"failed to create pm config sysfs entry"

	.comm	_bin_attr_esw_stats,4,2         ; @bin_attr_esw_stats
l_.str.9:                               ; @.str.9
	.asciz	"failed to create eswitch stats sysfs entry"

	.no_dead_strip	_qlcnic_create_diag_entries
.subsections_via_symbols
