	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netxen_create_diag_entries
_netxen_create_diag_entries:            ## @netxen_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	movq	_dev_attr_diag_mode@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_file
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
LBB0_2:
	movq	_bin_attr_crb@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_bin_file
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
LBB0_4:
	movq	_bin_attr_mem@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_bin_file
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
LBB0_6:
	movq	_bin_attr_dimm@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_bin_file
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_attr_diag_mode,4,2         ## @dev_attr_diag_mode
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create diag_mode sysfs entry\n"

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

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

	.comm	_bin_attr_dimm,4,2              ## @bin_attr_dimm
L_.str.3:                               ## @.str.3
	.asciz	"failed to create dimm sysfs entry\n"

	.no_dead_strip	_netxen_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 netxen_create_diag_entries
_netxen_create_diag_entries:            ; @netxen_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
	ldr	x19, [x0]
Lloh0:
	adrp	x1, _dev_attr_diag_mode@GOTPAGE
Lloh1:
	ldr	x1, [x1, _dev_attr_diag_mode@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_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:
Lloh4:
	adrp	x1, _bin_attr_crb@GOTPAGE
Lloh5:
	ldr	x1, [x1, _bin_attr_crb@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_bin_file
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_4:
Lloh8:
	adrp	x1, _bin_attr_mem@GOTPAGE
Lloh9:
	ldr	x1, [x1, _bin_attr_mem@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_bin_file
	cbz	x0, LBB0_6
; %bb.5:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_6:
Lloh12:
	adrp	x1, _bin_attr_dimm@GOTPAGE
Lloh13:
	ldr	x1, [x1, _bin_attr_dimm@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_bin_file
	cbz	x0, LBB0_8
; %bb.7:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@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_8:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_attr_diag_mode,4,2         ; @dev_attr_diag_mode
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create diag_mode sysfs entry\n"

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

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

	.comm	_bin_attr_dimm,4,2              ; @bin_attr_dimm
l_.str.3:                               ; @.str.3
	.asciz	"failed to create dimm sysfs entry\n"

	.no_dead_strip	_netxen_create_diag_entries
.subsections_via_symbols
