	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netxen_sysfs_read_dimm
_netxen_sysfs_read_dimm:                ## @netxen_sysfs_read_dimm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %rdi
	callq	_kobj_to_dev
	movq	%rax, %rdi
	callq	_dev_get_drvdata
	movq	(%rax), %r13
	cmpq	%r15, (%r12)
	jbe	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_26
LBB0_2:
	movq	%rax, %rbx
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_NETXEN_DIMM_CAPABILITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	movl	%eax, %r15d
	movq	_NETXEN_DIMM_VALID_FLAG@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movl	$255, -56(%rbp)
LBB0_25:
	leaq	-56(%rbp), %rsi
	movl	$16, %ebx
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_memcpy
LBB0_26:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%r15d, %edi
	callq	_NETXEN_DIMM_NUMROWS
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_NETXEN_DIMM_NUMCOLS
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_NETXEN_DIMM_NUMRANKS
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_NETXEN_DIMM_NUMBANKS
	movl	%eax, %r12d
	movl	%r15d, %edi
	callq	_NETXEN_DIMM_DATAWIDTH
	movq	_NETXEN_DIMM_PRESENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r15d, %ecx
	movl	%ecx, -56(%rbp)
	je	LBB0_5
## %bb.6:
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_NETXEN_DIMM_TYPE
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, -52(%rbp)
	leal	-128(%rax), %ecx
	cmpl	$6, %ecx
	jae	LBB0_7
## %bb.8:
	movq	_NETXEN_DIMM_MEMTYPE_DDR2_SDRAM@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_NETXEN_DIMM_MEM_DDR2_SDRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_25
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	jmp	LBB0_16
LBB0_10:
	movl	%r15d, %edi
	callq	_NETXEN_DIMM_MEMTYPE
LBB0_11:
	movl	%eax, -44(%rbp)
	movq	_NETXEN_DIMM_SIZE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_13
## %bb.12:
	movq	_NETXEN_DIMM_STD_MEM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_24:
	movl	%eax, -48(%rbp)
	jmp	LBB0_25
LBB0_13:
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.17:
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	je	LBB0_18
## %bb.19:
	testl	%r12d, %r12d
	je	LBB0_20
## %bb.21:
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	cmpl	$8, %edx
	jae	LBB0_22
## %bb.23:
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	incl	%esi
	movl	%ebx, %ecx
	shll	%cl, %eax
	movslq	%edx, %rcx
	leaq	l_switch.table.netxen_sysfs_read_dimm(%rip), %rdx
	imull	%eax, %r12d
	imull	%esi, %r12d
	imull	(%rdx,%rcx,4), %r12d
	leal	8388607(%r12), %eax
	testl	%r12d, %r12d
	cmovnsl	%r12d, %eax
	sarl	$23, %eax
	jmp	LBB0_24
LBB0_14:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_15
LBB0_18:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_15
LBB0_20:
	leaq	L_.str.6(%rip), %rsi
LBB0_15:
	movq	%r13, %rdi
	xorl	%edx, %edx
LBB0_16:
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_25
LBB0_22:
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid size\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NETXEN_DIMM_CAPABILITY,4,2     ## @NETXEN_DIMM_CAPABILITY
	.comm	_NETXEN_DIMM_VALID_FLAG,4,2     ## @NETXEN_DIMM_VALID_FLAG
L_.str.1:                               ## @.str.1
	.asciz	"Invalid DIMM flag\n"

	.comm	_NETXEN_DIMM_PRESENT,4,2        ## @NETXEN_DIMM_PRESENT
L_.str.2:                               ## @.str.2
	.asciz	"DIMM not present\n"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid DIMM type %x\n"

	.comm	_NETXEN_DIMM_MEMTYPE_DDR2_SDRAM,4,2 ## @NETXEN_DIMM_MEMTYPE_DDR2_SDRAM
	.comm	_NETXEN_DIMM_MEM_DDR2_SDRAM,4,2 ## @NETXEN_DIMM_MEM_DDR2_SDRAM
	.comm	_NETXEN_DIMM_SIZE,4,2           ## @NETXEN_DIMM_SIZE
	.comm	_NETXEN_DIMM_STD_MEM_SIZE,4,2   ## @NETXEN_DIMM_STD_MEM_SIZE
L_.str.4:                               ## @.str.4
	.asciz	"Invalid no of rows %x\n"

L_.str.5:                               ## @.str.5
	.asciz	"Invalid no of columns %x\n"

L_.str.6:                               ## @.str.6
	.asciz	"Invalid no of banks %x\n"

L_.str.7:                               ## @.str.7
	.asciz	"Invalid data-width %x\n"

	.no_dead_strip	_netxen_sysfs_read_dimm
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.netxen_sysfs_read_dimm
l_switch.table.netxen_sysfs_read_dimm:
	.long	32                              ## 0x20
	.long	33                              ## 0x21
	.long	36                              ## 0x24
	.long	64                              ## 0x40
	.long	72                              ## 0x48
	.long	80                              ## 0x50
	.long	128                             ## 0x80
	.long	144                             ## 0x90

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netxen_sysfs_read_dimm
_netxen_sysfs_read_dimm:                ; @netxen_sysfs_read_dimm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x5
	mov	x19, x3
	mov	x23, x2
	mov	x0, x1
	bl	_kobj_to_dev
	bl	_dev_get_drvdata
	ldr	x20, [x0]
	ldr	x8, [x23]
	cmp	x8, x22
	b.ls	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_16
LBB0_2:
	mov	x21, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh5:
	adrp	x8, _NETXEN_DIMM_CAPABILITY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NETXEN_DIMM_CAPABILITY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_NXRD32
Lloh8:
	adrp	x8, _NETXEN_DIMM_VALID_FLAG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NETXEN_DIMM_VALID_FLAG@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	mov	w8, #255
	str	w8, [sp, #16]
	b	LBB0_15
LBB0_4:
	mov	x24, x0
	bl	_NETXEN_DIMM_NUMROWS
	mov	x21, x0
	mov	x0, x24
	bl	_NETXEN_DIMM_NUMCOLS
	mov	x22, x0
	mov	x0, x24
	bl	_NETXEN_DIMM_NUMRANKS
	mov	x23, x0
	mov	x0, x24
	bl	_NETXEN_DIMM_NUMBANKS
	mov	x25, x0
	mov	x0, x24
	bl	_NETXEN_DIMM_DATAWIDTH
Lloh13:
	adrp	x8, _NETXEN_DIMM_PRESENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NETXEN_DIMM_PRESENT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ands	w8, w8, w24
	str	w8, [sp, #16]
	b.eq	LBB0_8
; %bb.5:
	mov	x26, x0
	mov	x0, x24
	bl	_NETXEN_DIMM_TYPE
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [sp, #20]
	sub	w8, w0, #128
	cmp	w8, #6
	b.hs	LBB0_9
; %bb.6:
Lloh16:
	adrp	x8, _NETXEN_DIMM_MEMTYPE_DDR2_SDRAM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NETXEN_DIMM_MEMTYPE_DDR2_SDRAM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_11
; %bb.7:
Lloh19:
	adrp	x8, _NETXEN_DIMM_MEM_DDR2_SDRAM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NETXEN_DIMM_MEM_DDR2_SDRAM@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_8:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
	str	x0, [sp]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_10:
	mov	x0, x20
	bl	_netdev_err
	b	LBB0_15
LBB0_11:
	mov	x0, x24
	bl	_NETXEN_DIMM_MEMTYPE
LBB0_12:
	str	w0, [sp, #28]
Lloh26:
	adrp	x8, _NETXEN_DIMM_SIZE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NETXEN_DIMM_SIZE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_17
; %bb.13:
Lloh29:
	adrp	x8, _NETXEN_DIMM_STD_MEM_SIZE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _NETXEN_DIMM_STD_MEM_SIZE@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
LBB0_14:
	str	w8, [sp, #24]
LBB0_15:
	mov	w20, #16
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #16
	bl	_memcpy
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	cbz	w21, LBB0_22
; %bb.18:
	cbz	w22, LBB0_23
; %bb.19:
	cbz	w25, LBB0_24
; %bb.20:
	cmp	w26, #8
	b.hs	LBB0_25
; %bb.21:
Lloh32:
	adrp	x8, l_switch.table.netxen_sysfs_read_dimm@PAGE
Lloh33:
	add	x8, x8, l_switch.table.netxen_sysfs_read_dimm@PAGEOFF
	ldr	w8, [x8, w26, sxtw #2]
	mov	w9, #1
	lsl	w9, w9, w22
	lsl	w9, w9, w21
	mul	w9, w25, w9
	madd	w9, w9, w23, w9
	mul	w8, w9, w8
	mov	w9, #8388607
	add	w9, w8, w9
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #23
	b	LBB0_14
LBB0_22:
	str	xzr, [sp]
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_23:
	str	xzr, [sp]
Lloh36:
	adrp	x1, l_.str.5@PAGE
Lloh37:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_10
LBB0_24:
	str	xzr, [sp]
Lloh38:
	adrp	x1, l_.str.6@PAGE
Lloh39:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_10
LBB0_25:
	str	x26, [sp]
Lloh40:
	adrp	x1, l_.str.7@PAGE
Lloh41:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid size\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NETXEN_DIMM_CAPABILITY,4,2     ; @NETXEN_DIMM_CAPABILITY
	.comm	_NETXEN_DIMM_VALID_FLAG,4,2     ; @NETXEN_DIMM_VALID_FLAG
l_.str.1:                               ; @.str.1
	.asciz	"Invalid DIMM flag\n"

	.comm	_NETXEN_DIMM_PRESENT,4,2        ; @NETXEN_DIMM_PRESENT
l_.str.2:                               ; @.str.2
	.asciz	"DIMM not present\n"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid DIMM type %x\n"

	.comm	_NETXEN_DIMM_MEMTYPE_DDR2_SDRAM,4,2 ; @NETXEN_DIMM_MEMTYPE_DDR2_SDRAM
	.comm	_NETXEN_DIMM_MEM_DDR2_SDRAM,4,2 ; @NETXEN_DIMM_MEM_DDR2_SDRAM
	.comm	_NETXEN_DIMM_SIZE,4,2           ; @NETXEN_DIMM_SIZE
	.comm	_NETXEN_DIMM_STD_MEM_SIZE,4,2   ; @NETXEN_DIMM_STD_MEM_SIZE
l_.str.4:                               ; @.str.4
	.asciz	"Invalid no of rows %x\n"

l_.str.5:                               ; @.str.5
	.asciz	"Invalid no of columns %x\n"

l_.str.6:                               ; @.str.6
	.asciz	"Invalid no of banks %x\n"

l_.str.7:                               ; @.str.7
	.asciz	"Invalid data-width %x\n"

	.no_dead_strip	_netxen_sysfs_read_dimm
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.netxen_sysfs_read_dimm
l_switch.table.netxen_sysfs_read_dimm:
	.long	32                              ; 0x20
	.long	33                              ; 0x21
	.long	36                              ; 0x24
	.long	64                              ; 0x40
	.long	72                              ; 0x48
	.long	80                              ; 0x50
	.long	128                             ; 0x80
	.long	144                             ; 0x90

.subsections_via_symbols
