	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skx_tad_decode
_skx_tad_decode:                        ## @skx_tad_decode
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_SKX_MAX_TAD@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	(%r15), %ebx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	28(%r14), %esi
	movl	32(%r14), %edi
	movl	%ebx, %edx
	callq	_SKX_GET_TADBASE
	movl	28(%r14), %esi
	movl	32(%r14), %edi
	movl	%ebx, %edx
	callq	_SKX_GET_TADWAYNESS
	callq	_SKX_TAD_BASE
	movq	(%r14), %r12
	cmpq	%r12, %rax
	jg	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_SKX_TAD_LIMIT
	cmpq	%rax, %r12
	jg	LBB0_4
## %bb.6:
	callq	_SKX_TAD_SKTWAYS
	movl	%eax, 8(%r14)
	callq	_SKX_TAD_CHNWAYS
	movl	%eax, 12(%r14)
	movq	_skx_granularity@GOTPCREL(%rip), %r12
	movq	(%r12), %r15
	callq	_SKX_TAD_SKT_GRAN
	movl	(%r15,%rax,4), %r15d
	movq	(%r12), %r12
	callq	_SKX_TAD_CHN_GRAN
	movl	(%r12,%rax,4), %r12d
	movl	32(%r14), %edi
	movl	24(%r14), %edx
	movl	28(%r14), %esi
	movl	%ebx, %ecx
	callq	_SKX_GET_TADCHNILVOFFSET
	movq	(%r14), %rbx
	callq	_SKX_TAD_OFFSET
	subq	%rax, %rbx
	cmpl	$3, 12(%r14)
	jne	LBB0_9
## %bb.7:
	cmpl	%r12d, %r15d
	jle	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	$3, %edx
	movq	%rbx, %rcx
	callq	_skx_do_interleave
	movl	8(%r14), %edx
	movq	%rax, %rdi
	movl	%r15d, %esi
	movq	%rax, %rcx
	jmp	LBB0_10
LBB0_5:
	movq	(%r14), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_edac_dbg
	jmp	LBB0_11
LBB0_9:
	movl	8(%r14), %edx
	movq	(%r14), %rcx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_skx_do_interleave
	movl	12(%r14), %edx
	movq	(%r14), %rcx
	movq	%rax, %rdi
	movl	%r12d, %esi
LBB0_10:
	callq	_skx_do_interleave
	movq	%rax, 16(%r14)
	movq	(%r14), %rdx
	movl	8(%r14), %r8d
	movl	12(%r14), %r9d
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_edac_dbg
	movl	$1, %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SKX_MAX_TAD,4,2                ## @SKX_MAX_TAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No TAD entry for 0x%llx\n"

	.comm	_skx_granularity,8,3            ## @skx_granularity
L_.str.1:                               ## @.str.1
	.asciz	"0x%llx: chan_addr=0x%llx sktways=%d chanways=%d\n"

	.no_dead_strip	_skx_tad_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skx_tad_decode
_skx_tad_decode:                        ; @skx_tad_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _SKX_MAX_TAD@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SKX_MAX_TAD@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w20, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x19, #28]
	mov	x2, x20
	bl	_SKX_GET_TADBASE
	ldp	w1, w0, [x19, #28]
	mov	x2, x20
	bl	_SKX_GET_TADWAYNESS
	bl	_SKX_TAD_BASE
	ldr	x22, [x19]
	cmp	x0, x22
	b.gt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_SKX_TAD_LIMIT
	cmp	x22, x0
	b.gt	LBB0_2
; %bb.5:
	bl	_SKX_TAD_SKTWAYS
	str	w0, [x19, #8]
	bl	_SKX_TAD_CHNWAYS
	str	w0, [x19, #12]
Lloh2:
	adrp	x22, _skx_granularity@GOTPAGE
Lloh3:
	ldr	x22, [x22, _skx_granularity@GOTPAGEOFF]
	ldr	x21, [x22]
	bl	_SKX_TAD_SKT_GRAN
	ldr	w21, [x21, x0, lsl #2]
	ldr	x22, [x22]
	bl	_SKX_TAD_CHN_GRAN
	ldr	w22, [x22, x0, lsl #2]
	ldp	w1, w0, [x19, #28]
	ldr	w2, [x19, #24]
	mov	x3, x20
	bl	_SKX_GET_TADCHNILVOFFSET
	ldr	x20, [x19]
	bl	_SKX_TAD_OFFSET
	sub	x0, x20, x0
	ldr	w8, [x19, #12]
	cmp	w8, #3
	b.ne	LBB0_9
; %bb.6:
	cmp	w21, w22
	b.le	LBB0_9
; %bb.7:
	mov	x1, x22
	mov	w2, #3
	mov	x3, x0
	bl	_skx_do_interleave
	ldr	w2, [x19, #8]
	mov	x1, x21
	mov	x3, x0
	b	LBB0_10
LBB0_8:
	ldr	x2, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	bl	_edac_dbg
	mov	w0, #0
	b	LBB0_11
LBB0_9:
	ldr	w2, [x19, #8]
	ldr	x3, [x19]
	mov	x1, x21
	bl	_skx_do_interleave
	ldr	w2, [x19, #12]
	ldr	x3, [x19]
	mov	x1, x22
LBB0_10:
	bl	_skx_do_interleave
	str	x0, [x19, #16]
	ldr	x2, [x19]
	ldp	w8, w9, [x19, #8]
	stp	x8, x9, [sp, #8]
	str	x0, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_edac_dbg
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SKX_MAX_TAD,4,2                ; @SKX_MAX_TAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No TAD entry for 0x%llx\n"

	.comm	_skx_granularity,8,3            ; @skx_granularity
l_.str.1:                               ; @.str.1
	.asciz	"0x%llx: chan_addr=0x%llx sktways=%d chanways=%d\n"

	.no_dead_strip	_skx_tad_decode
.subsections_via_symbols
