	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_create_diag_entries     ## -- Begin function qlcnic_create_diag_entries
	.p2align	4, 0x90
_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	16(%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_26
## %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	_dev_attr_beacon@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_file
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
LBB0_11:
	movq	_dev_attr_max_rss@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_file
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
LBB0_13:
	movq	_dev_attr_elb_mode@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_file
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
LBB0_15:
	movq	_bin_attr_pci_config@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_bin_file
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
LBB0_17:
	movq	_QLCNIC_ESWITCH_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_26
## %bb.18:
	movq	_bin_attr_esw_config@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_bin_file
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
LBB0_20:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	_QLCNIC_MGMT_FUNC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.21:
	movq	_bin_attr_npar_config@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_bin_file
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
LBB0_23:
	movq	_bin_attr_pm_config@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_bin_file
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
LBB0_25:
	movq	_bin_attr_esw_stats@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_bin_file
	testq	%rax, %rax
	je	LBB0_26
## %bb.27:
	leaq	L_.str.11(%rip), %rsi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
LBB0_26:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.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	_dev_attr_beacon,4,2            ## @dev_attr_beacon
L_.str.4:                               ## @.str.4
	.asciz	"failed to create beacon sysfs entry"

	.comm	_dev_attr_max_rss,4,2           ## @dev_attr_max_rss
L_.str.5:                               ## @.str.5
	.asciz	"failed to create rss sysfs entry\n"

	.comm	_dev_attr_elb_mode,4,2          ## @dev_attr_elb_mode
L_.str.6:                               ## @.str.6
	.asciz	"failed to create elb_mode sysfs entry\n"

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

	.comm	_QLCNIC_ESWITCH_ENABLED,4,2     ## @QLCNIC_ESWITCH_ENABLED
	.comm	_bin_attr_esw_config,4,2        ## @bin_attr_esw_config
L_.str.8:                               ## @.str.8
	.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.9:                               ## @.str.9
	.asciz	"failed to create npar config sysfs entry"

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_create_diag_entries     ; -- Begin function qlcnic_create_diag_entries
	.p2align	2
_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, #16]
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_27
; %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	x1, _dev_attr_beacon@GOTPAGE
Lloh20:
	ldr	x1, [x1, _dev_attr_beacon@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	cbz	x0, LBB0_11
; %bb.10:
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_11:
Lloh23:
	adrp	x1, _dev_attr_max_rss@GOTPAGE
Lloh24:
	ldr	x1, [x1, _dev_attr_max_rss@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	cbz	x0, LBB0_13
; %bb.12:
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_13:
Lloh27:
	adrp	x1, _dev_attr_elb_mode@GOTPAGE
Lloh28:
	ldr	x1, [x1, _dev_attr_elb_mode@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	cbz	x0, LBB0_15
; %bb.14:
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_15:
Lloh31:
	adrp	x1, _bin_attr_pci_config@GOTPAGE
Lloh32:
	ldr	x1, [x1, _bin_attr_pci_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_bin_file
	cbz	x0, LBB0_17
; %bb.16:
Lloh33:
	adrp	x1, l_.str.7@PAGE
Lloh34:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_17:
	ldr	w8, [x20]
Lloh35:
	adrp	x9, _QLCNIC_ESWITCH_ENABLED@GOTPAGE
Lloh36:
	ldr	x9, [x9, _QLCNIC_ESWITCH_ENABLED@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.18:
Lloh38:
	adrp	x1, _bin_attr_esw_config@GOTPAGE
Lloh39:
	ldr	x1, [x1, _bin_attr_esw_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_bin_file
	cbz	x0, LBB0_20
; %bb.19:
Lloh40:
	adrp	x1, l_.str.8@PAGE
Lloh41:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_20:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh42:
	adrp	x9, _QLCNIC_MGMT_FUNC@GOTPAGE
Lloh43:
	ldr	x9, [x9, _QLCNIC_MGMT_FUNC@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_27
; %bb.21:
Lloh45:
	adrp	x1, _bin_attr_npar_config@GOTPAGE
Lloh46:
	ldr	x1, [x1, _bin_attr_npar_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_bin_file
	cbz	x0, LBB0_23
; %bb.22:
Lloh47:
	adrp	x1, l_.str.9@PAGE
Lloh48:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_23:
Lloh49:
	adrp	x1, _bin_attr_pm_config@GOTPAGE
Lloh50:
	ldr	x1, [x1, _bin_attr_pm_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_bin_file
	cbz	x0, LBB0_25
; %bb.24:
Lloh51:
	adrp	x1, l_.str.10@PAGE
Lloh52:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_25:
Lloh53:
	adrp	x1, _bin_attr_esw_stats@GOTPAGE
Lloh54:
	ldr	x1, [x1, _bin_attr_esw_stats@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_bin_file
	cbz	x0, LBB0_27
; %bb.26:
Lloh55:
	adrp	x1, l_.str.11@PAGE
Lloh56:
	add	x1, x1, l_.str.11@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
LBB0_27:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.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 AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.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	_dev_attr_beacon,4,2            ; @dev_attr_beacon
l_.str.4:                               ; @.str.4
	.asciz	"failed to create beacon sysfs entry"

	.comm	_dev_attr_max_rss,4,2           ; @dev_attr_max_rss
l_.str.5:                               ; @.str.5
	.asciz	"failed to create rss sysfs entry\n"

	.comm	_dev_attr_elb_mode,4,2          ; @dev_attr_elb_mode
l_.str.6:                               ; @.str.6
	.asciz	"failed to create elb_mode sysfs entry\n"

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

	.comm	_QLCNIC_ESWITCH_ENABLED,4,2     ; @QLCNIC_ESWITCH_ENABLED
	.comm	_bin_attr_esw_config,4,2        ; @bin_attr_esw_config
l_.str.8:                               ; @.str.8
	.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.9:                               ; @.str.9
	.asciz	"failed to create npar config sysfs entry"

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

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

.subsections_via_symbols
