	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kfd_fill_mem_info_for_cpu
_kfd_fill_mem_info_for_cpu:             ## @kfd_fill_mem_info_for_cpu
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	addl	$-24, (%rsi)
	js	LBB0_1
## %bb.2:
	movq	%rcx, %rbx
	movl	%edi, %r14d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_CRAT_SUBTYPE_MEMORY_AFFINITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	$24, (%rbx)
	movq	_CRAT_SUBTYPE_FLAGS_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, 16(%rbx)
	movl	%r14d, %edi
	callq	_NODE_DATA
	movq	_MAX_NR_ZONES@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	movl	$0, %ebx
	jle	LBB0_5
## %bb.3:
	movq	%rax, %r13
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	%r14, %rdi
	callq	_zone_managed_pages
	addl	%eax, %ebx
	incq	%r12
	movslq	(%r15), %rax
	addq	$4, %r14
	cmpq	%rax, %r12
	jl	LBB0_4
LBB0_5:
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movl	%ebx, %edi
	callq	_lower_32_bits
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, 12(%r14)
	movl	%ebx, %edi
	callq	_upper_32_bits
	movl	%eax, 8(%r14)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CRAT_SUBTYPE_MEMORY_AFFINITY,4,2 ## @CRAT_SUBTYPE_MEMORY_AFFINITY
	.comm	_CRAT_SUBTYPE_FLAGS_ENABLED,4,2 ## @CRAT_SUBTYPE_FLAGS_ENABLED
	.comm	_MAX_NR_ZONES,4,2               ## @MAX_NR_ZONES
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.no_dead_strip	_kfd_fill_mem_info_for_cpu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kfd_fill_mem_info_for_cpu
_kfd_fill_mem_info_for_cpu:             ; @kfd_fill_mem_info_for_cpu
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x1]
	subs	w8, w8, #24
	str	w8, [x1]
	b.mi	LBB0_4
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	mov	w22, #24
	mov	x0, x3
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _CRAT_SUBTYPE_MEMORY_AFFINITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRAT_SUBTYPE_MEMORY_AFFINITY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w22, [x19]
Lloh3:
	adrp	x9, _CRAT_SUBTYPE_FLAGS_ENABLED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CRAT_SUBTYPE_FLAGS_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	mov	x0, x21
	bl	_NODE_DATA
Lloh6:
	adrp	x22, _MAX_NR_ZONES@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MAX_NR_ZONES@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x21, x0
	mov	x24, #0
	mov	x25, #0
	mov	w23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x0, x8, x24
	bl	_zone_managed_pages
	add	w23, w23, w0
	add	x25, x25, #1
	ldrsw	x8, [x22]
	add	x24, x24, #4
	cmp	x25, x8
	b.lt	LBB0_3
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	mov	w23, #0
LBB0_6:
Lloh11:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	lsl	w21, w23, w8
	mov	x0, x21
	bl	_lower_32_bits
	str	w0, [x19, #12]
	mov	x0, x21
	bl	_upper_32_bits
	mov	x8, x0
	mov	w0, #0
	stp	w20, w8, [x19, #4]
LBB0_7:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CRAT_SUBTYPE_MEMORY_AFFINITY,4,2 ; @CRAT_SUBTYPE_MEMORY_AFFINITY
	.comm	_CRAT_SUBTYPE_FLAGS_ENABLED,4,2 ; @CRAT_SUBTYPE_FLAGS_ENABLED
	.comm	_MAX_NR_ZONES,4,2               ; @MAX_NR_ZONES
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.no_dead_strip	_kfd_fill_mem_info_for_cpu
.subsections_via_symbols
