	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function knl_get_tad
_knl_get_tad:                           ## @knl_get_tad
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	cmpl	$1, %edx
	je	LBB0_3
## %bb.1:
	testl	%edx, %edx
	jne	LBB0_11
## %bb.2:
	addq	$8, %rdi
LBB0_3:
	movq	(%rdi), %r15
	movq	_knl_tad_dram_limit_lo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%esi, %rbx
	movl	(%rax,%rbx,4), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pci_read_config_dword
	movq	_knl_tad_dram_offset_lo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pci_read_config_dword
	movq	_knl_tad_dram_hi@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pci_read_config_dword
	movl	-28(%rbp), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_GET_BITFIELD
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	-28(%rbp), %edi
	movl	$3, %esi
	movl	$5, %edx
	callq	_GET_BITFIELD
	movl	%eax, %ebx
	movq	_knl_tad_ways@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jge	LBB0_7
## %bb.6:
	movq	(%r15), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, (%r14)
	movl	-36(%rbp), %edi
	movl	$6, %esi
	movl	$31, %edx
	callq	_GET_BITFIELD
	movl	-32(%rbp), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$15, %edx
	callq	_GET_BITFIELD
	movl	-28(%rbp), %edi
	movl	$6, %esi
	movl	$31, %edx
	callq	_GET_BITFIELD
	movl	-32(%rbp), %edi
	movl	$16, %esi
	movl	$31, %edx
	callq	_GET_BITFIELD
	jmp	LBB0_10
LBB0_11:
	movl	$1, %edi
	callq	_WARN_ON
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movl	$0, (%r14)
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_sbridge_printk
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_knl_tad_dram_limit_lo,8,3      ## @knl_tad_dram_limit_lo
	.comm	_knl_tad_dram_offset_lo,8,3     ## @knl_tad_dram_offset_lo
	.comm	_knl_tad_dram_hi,8,3            ## @knl_tad_dram_hi
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_knl_tad_ways,8,3               ## @knl_tad_ways
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected value %d in mc_tad_limit_lo wayness field\n"

	.no_dead_strip	_knl_get_tad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function knl_get_tad
_knl_get_tad:                           ; @knl_get_tad
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x5
                                        ; kill: def $w1 killed $w1 def $x1
	cmp	w2, #1
	b.eq	LBB0_3
; %bb.1:
	cbnz	w2, LBB0_6
; %bb.2:
	add	x0, x0, #8
LBB0_3:
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _knl_tad_dram_limit_lo@GOTPAGE
Lloh1:
	ldr	x8, [x8, _knl_tad_dram_limit_lo@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sbfiz	x21, x1, #2, #32
	ldr	w1, [x8, x21]
	add	x2, sp, #12
	mov	x0, x20
	bl	_pci_read_config_dword
Lloh3:
	adrp	x8, _knl_tad_dram_offset_lo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _knl_tad_dram_offset_lo@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w1, [x8, x21]
	add	x2, sp, #8
	mov	x0, x20
	bl	_pci_read_config_dword
Lloh6:
	adrp	x8, _knl_tad_dram_hi@GOTPAGE
Lloh7:
	ldr	x8, [x8, _knl_tad_dram_hi@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w1, [x8, x21]
	add	x2, sp, #4
	mov	x0, x20
	bl	_pci_read_config_dword
	ldr	w0, [sp, #12]
	mov	w1, #0
	mov	w2, #0
	bl	_GET_BITFIELD
	cbz	w0, LBB0_8
; %bb.4:
	ldr	w0, [sp, #12]
	mov	w1, #3
	mov	w2, #5
	bl	_GET_BITFIELD
	mov	x20, x0
Lloh9:
	adrp	x21, _knl_tad_ways@GOTPAGE
Lloh10:
	ldr	x21, [x21, _knl_tad_ways@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w20, w0
	b.ge	LBB0_7
; %bb.5:
	ldr	x8, [x21]
	ldr	w8, [x8, w20, sxtw #2]
	str	w8, [x19]
	ldr	w0, [sp, #8]
	mov	w1, #6
	mov	w2, #31
	bl	_GET_BITFIELD
	ldr	w0, [sp, #4]
	mov	w1, #0
	mov	w2, #15
	bl	_GET_BITFIELD
	ldr	w0, [sp, #12]
	mov	w1, #6
	mov	w2, #31
	bl	_GET_BITFIELD
	ldr	w0, [sp, #4]
	mov	w1, #16
	mov	w2, #31
	bl	_GET_BITFIELD
	mov	w0, #0
	b	LBB0_10
LBB0_6:
	mov	w0, #1
	bl	_WARN_ON
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	str	wzr, [x19]
Lloh13:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_sbridge_printk
LBB0_8:
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_knl_tad_dram_limit_lo,8,3      ; @knl_tad_dram_limit_lo
	.comm	_knl_tad_dram_offset_lo,8,3     ; @knl_tad_dram_offset_lo
	.comm	_knl_tad_dram_hi,8,3            ; @knl_tad_dram_hi
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_knl_tad_ways,8,3               ; @knl_tad_ways
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected value %d in mc_tad_limit_lo wayness field\n"

	.no_dead_strip	_knl_get_tad
.subsections_via_symbols
