	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_node_affinity_init             ## -- Begin function node_affinity_init
	.p2align	4, 0x90
_node_affinity_init:                    ## @node_affinity_init
	.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
	movq	_hfi1_pci_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_node_affinity@GOTPCREL(%rip), %r14
	leaq	32(%r14), %rdi
	callq	_cpumask_clear
	leaq	16(%r14), %rbx
	movq	_cpu_online_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cpumask_copy
	movq	$0, 24(%r14)
	movq	%rbx, %rdi
	callq	_cpumask_first
	movl	%eax, %edi
	callq	_topology_sibling_cpumask
	movl	%eax, %edi
	callq	_cpumask_weight
	movl	%eax, 40(%r14)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_num_possible_nodes
	movl	%eax, (%r14)
	xorl	%eax, %eax
	callq	_num_online_nodes
	movl	%eax, 8(%r14)
	xorl	%eax, %eax
	callq	_num_online_cpus
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
	callq	_init_real_cpu_mask
	movl	(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	_hfi1_per_node_cntr@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.2:
	leaq	8(%r15), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	16(%r15), %rax
	movq	24(%r15), %rdi
	addq	$24, %r15
	movq	%r15, %r13
	movq	%rax, %r15
	testq	%rdi, %rdi
	je	LBB0_12
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	(%r15), %esi
	xorl	%edx, %edx
	callq	_pci_get_device
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %edi
	callq	_pcibus_to_node
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	(%r12), %rcx
	movl	%eax, %eax
	incl	(%rcx,%rax,4)
	movq	(%r13), %rdi
	movl	(%r15), %esi
	movq	%rbx, %rdx
	callq	_pci_get_device
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_3
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	cmpl	$0, (%r14)
	jle	LBB0_12
## %bb.10:
	movq	(%r12), %rax
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, (%rax,%rcx,4)
	incq	%rcx
	movslq	(%r14), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_11
	jmp	LBB0_13
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hfi1_pci_tbl,8,3               ## @hfi1_pci_tbl
	.comm	_node_affinity,48,3             ## @node_affinity
	.comm	_cpu_online_mask,4,2            ## @cpu_online_mask
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_hfi1_per_node_cntr,8,3         ## @hfi1_per_node_cntr
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HFI: Invalid PCI NUMA node. Performance may be affected\n"

L_.str.1:                               ## @.str.1
	.asciz	"HFI: System BIOS may need to be upgraded\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_node_affinity_init             ; -- Begin function node_affinity_init
	.p2align	2
_node_affinity_init:                    ; @node_affinity_init
	.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
Lloh0:
	adrp	x8, _hfi1_pci_tbl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hfi1_pci_tbl@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x20, _node_affinity@GOTPAGE
Lloh4:
	ldr	x20, [x20, _node_affinity@GOTPAGEOFF]
	add	x0, x20, #32
	bl	_cpumask_clear
	add	x19, x20, #16
Lloh5:
	adrp	x8, _cpu_online_mask@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cpu_online_mask@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cpumask_copy
	str	xzr, [x20, #24]
	mov	x0, x19
	bl	_cpumask_first
	bl	_topology_sibling_cpumask
	bl	_cpumask_weight
	str	w0, [x20, #40]
	bl	_num_possible_nodes
	str	w0, [x20]
	bl	_num_online_nodes
	str	w0, [x20, #8]
	bl	_num_online_cpus
	str	w0, [x20, #4]
	bl	_init_real_cpu_mask
	ldr	w0, [x20]
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
Lloh11:
	adrp	x22, _hfi1_per_node_cntr@GOTPAGE
Lloh12:
	ldr	x22, [x22, _hfi1_per_node_cntr@GOTPAGEOFF]
	str	x0, [x22]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x23, x21
	ldr	x0, [x23, #8]!
	cbnz	x0, LBB0_3
	b	LBB0_12
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x21, #24]!
	mov	x23, x21
	sub	x21, x21, #8
	cbz	x0, LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w1, [x21]
	mov	x2, #0
	bl	_pci_get_device
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, x0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x19]
	bl	_pcibus_to_node
	tbnz	w0, #31, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [x22]
	mov	w9, w0
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	ldr	x0, [x23]
	ldr	w1, [x21]
	mov	x2, x19
	bl	_pci_get_device
	mov	x19, x0
	cbnz	x0, LBB0_5
	b	LBB0_2
LBB0_7:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_8:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x8, #0
	ldr	x9, [x22]
	mov	w10, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	str	w10, [x9, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x11, [x20]
	cmp	x8, x11
	b.lt	LBB0_10
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_hfi1_pci_tbl,8,3               ; @hfi1_pci_tbl
	.comm	_node_affinity,48,3             ; @node_affinity
	.comm	_cpu_online_mask,4,2            ; @cpu_online_mask
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_hfi1_per_node_cntr,8,3         ; @hfi1_per_node_cntr
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HFI: Invalid PCI NUMA node. Performance may be affected\n"

l_.str.1:                               ; @.str.1
	.asciz	"HFI: System BIOS may need to be upgraded\n"

.subsections_via_symbols
