	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_map_pxm_to_node           ## -- Begin function acpi_map_pxm_to_node
	.p2align	4, 0x90
_acpi_map_pxm_to_node:                  ## @acpi_map_pxm_to_node
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_pxm_to_node_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movl	(%rax,%rcx,4), %ebx
	testl	%ebx, %ebx
	jns	LBB0_4
## %bb.1:
	movl	%edi, %r14d
	movq	_nodes_found_map@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_nodes_weight
	movq	_MAX_NUMNODES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.3:
	movl	(%r15), %edi
	callq	_first_unset_node
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	___acpi_map_pxm_to_node
	movl	(%r15), %esi
	movl	%ebx, %edi
	callq	_node_set
	jmp	LBB0_4
LBB0_2:
	movq	_NID_INVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pxm_to_node_map,8,3            ## @pxm_to_node_map
	.comm	_nodes_found_map,4,2            ## @nodes_found_map
	.comm	_MAX_NUMNODES,8,3               ## @MAX_NUMNODES
	.comm	_NID_INVAL,4,2                  ## @NID_INVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_map_pxm_to_node           ; -- Begin function acpi_map_pxm_to_node
	.p2align	2
_acpi_map_pxm_to_node:                  ; @acpi_map_pxm_to_node
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _pxm_to_node_map@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pxm_to_node_map@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w20, [x8, w0, sxtw #2]
	tbz	w20, #31, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x21, _nodes_found_map@GOTPAGE
Lloh4:
	ldr	x21, [x21, _nodes_found_map@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_nodes_weight
Lloh5:
	adrp	x8, _MAX_NUMNODES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_NUMNODES@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_3
; %bb.2:
	ldr	w0, [x21]
	bl	_first_unset_node
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	___acpi_map_pxm_to_node
	ldr	w1, [x21]
	mov	x0, x20
	bl	_node_set
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _NID_INVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NID_INVAL@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_pxm_to_node_map,8,3            ; @pxm_to_node_map
	.comm	_nodes_found_map,4,2            ; @nodes_found_map
	.comm	_MAX_NUMNODES,8,3               ; @MAX_NUMNODES
	.comm	_NID_INVAL,4,2                  ; @NID_INVAL
.subsections_via_symbols
