	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amd_cache_northbridges         ## -- Begin function amd_cache_northbridges
	.p2align	4, 0x90
_amd_cache_northbridges:                ## @amd_cache_northbridges
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_amd_nb_num
	testl	%eax, %eax
	je	LBB0_1
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	$-4, %ebx
	movl	$-1, %r14d
	xorl	%eax, %eax
	movq	_amd_nb_misc_ids@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_next_northbridge
	addl	$4, %ebx
	incl	%r14d
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	_amd_northbridges@GOTPCREL(%rip), %rcx
	movq	%rax, 8(%rcx)
	movl	%r14d, (%rcx)
	xorl	%eax, %eax
	callq	_amd_nb_num
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movq	_amd_nb_link_ids@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_next_northbridge
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_node_to_amd_nb
	movq	%r15, 8(%rax)
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_next_northbridge
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_node_to_amd_nb
	movq	%r14, (%rax)
	incl	%ebx
	xorl	%eax, %eax
	callq	_amd_nb_num
	cmpl	%eax, %ebx
	jne	LBB0_9
LBB0_10:
	movq	_boot_cpu_data@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%ebx, %ebx
	cmpl	$21, %edx
	ja	LBB0_20
## %bb.11:
	movl	$2195456, %eax                  ## imm = 0x218000
	btl	%edx, %eax
	jae	LBB0_20
## %bb.12:
	movq	_AMD_NB_GART@GOTPCREL(%rip), %rsi
	movq	_amd_northbridges@GOTPCREL(%rip), %rdi
	movl	4(%rdi), %eax
	orl	(%rsi), %eax
	movl	%eax, 4(%rdi)
	cmpl	$16, %edx
	jne	LBB0_17
## %bb.13:
	movl	4(%rcx), %esi
	cmpl	$8, %esi
	jl	LBB0_17
## %bb.14:
	cmpl	$9, %esi
	ja	LBB0_16
## %bb.15:
	cmpl	$0, 8(%rcx)
	jle	LBB0_20
LBB0_16:
	movq	_AMD_NB_L3_INDEX_DISABLE@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_17:
	cmpl	$21, %edx
	jne	LBB0_20
## %bb.18:
	movq	_AMD_NB_L3_INDEX_DISABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_AMD_NB_L3_PARTITIONING@GOTPCREL(%rip), %rcx
LBB0_19:
	orl	(%rcx), %eax
	movl	%eax, 4(%rdi)
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_amd_nb_misc_ids,4,2            ## @amd_nb_misc_ids
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_amd_northbridges,16,3          ## @amd_northbridges
	.comm	_amd_nb_link_ids,4,2            ## @amd_nb_link_ids
	.comm	_boot_cpu_data,12,2             ## @boot_cpu_data
	.comm	_AMD_NB_GART,4,2                ## @AMD_NB_GART
	.comm	_AMD_NB_L3_INDEX_DISABLE,4,2    ## @AMD_NB_L3_INDEX_DISABLE
	.comm	_AMD_NB_L3_PARTITIONING,4,2     ## @AMD_NB_L3_PARTITIONING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amd_cache_northbridges         ; -- Begin function amd_cache_northbridges
	.p2align	2
_amd_cache_northbridges:                ; @amd_cache_northbridges
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	bl	_amd_nb_num
	cbz	w0, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, #0
	mov	w19, #-4
	mov	w20, #-1
Lloh0:
	adrp	x23, _amd_nb_misc_ids@GOTPAGE
Lloh1:
	ldr	x23, [x23, _amd_nb_misc_ids@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	bl	_next_northbridge
	add	w19, w19, #4
	add	w20, w20, #1
	cbnz	x0, LBB0_4
; %bb.5:
	cbz	w20, LBB0_1
; %bb.6:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kzalloc
	cbz	x0, LBB0_14
; %bb.7:
Lloh5:
	adrp	x22, _amd_northbridges@GOTPAGE
Lloh6:
	ldr	x22, [x22, _amd_northbridges@GOTPAGEOFF]
	str	x0, [x22, #8]
	str	w20, [x22]
	bl	_amd_nb_num
	cbz	w0, LBB0_10
; %bb.8:
	mov	x20, #0
	mov	x21, #0
	mov	w19, #0
Lloh7:
	adrp	x24, _amd_nb_link_ids@GOTPAGE
Lloh8:
	ldr	x24, [x24, _amd_nb_link_ids@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x21
	bl	_next_northbridge
	mov	x21, x0
	mov	x0, x19
	bl	_node_to_amd_nb
	str	x21, [x0, #8]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_next_northbridge
	mov	x20, x0
	mov	x0, x19
	bl	_node_to_amd_nb
	str	x20, [x0]
	add	w19, w19, #1
	bl	_amd_nb_num
	cmp	w19, w0
	b.ne	LBB0_9
LBB0_10:
Lloh9:
	adrp	x9, _boot_cpu_data@GOTPAGE
Lloh10:
	ldr	x9, [x9, _boot_cpu_data@GOTPAGEOFF]
	ldr	w10, [x9]
	cmp	w10, #21
	mov	w8, #1
	lsl	w8, w8, w10
	and	w8, w8, #0x3f8000
	and	w8, w8, #0xffe1ffff
	ccmp	w8, #0, #4, ls
	b.eq	LBB0_1
; %bb.11:
Lloh11:
	adrp	x8, _AMD_NB_GART@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AMD_NB_GART@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w11, [x22, #4]
	orr	w8, w11, w8
	str	w8, [x22, #4]
	ldr	w11, [x9, #4]
	cmp	w10, #16
	ccmp	w11, #8, #8, eq
	b.ge	LBB0_15
; %bb.12:
	cmp	w10, #21
	b.ne	LBB0_1
; %bb.13:
	mov	w0, #0
Lloh14:
	adrp	x9, _AMD_NB_L3_INDEX_DISABLE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AMD_NB_L3_INDEX_DISABLE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _AMD_NB_L3_PARTITIONING@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AMD_NB_L3_PARTITIONING@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_17
LBB0_14:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_2
LBB0_15:
	ldr	w9, [x9, #8]
	cmp	w11, #9
	mov	w0, #0
	ccmp	w9, #1, #0, ls
	b.lt	LBB0_2
; %bb.16:
Lloh23:
	adrp	x9, _AMD_NB_L3_INDEX_DISABLE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _AMD_NB_L3_INDEX_DISABLE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
LBB0_17:
	str	w8, [x22, #4]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_amd_nb_misc_ids,4,2            ; @amd_nb_misc_ids
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_amd_northbridges,16,3          ; @amd_northbridges
	.comm	_amd_nb_link_ids,4,2            ; @amd_nb_link_ids
	.comm	_boot_cpu_data,12,2             ; @boot_cpu_data
	.comm	_AMD_NB_GART,4,2                ; @AMD_NB_GART
	.comm	_AMD_NB_L3_INDEX_DISABLE,4,2    ; @AMD_NB_L3_INDEX_DISABLE
	.comm	_AMD_NB_L3_PARTITIONING,4,2     ; @AMD_NB_L3_PARTITIONING
.subsections_via_symbols
