	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_register_cpu_under_node        ## -- Begin function register_cpu_under_node
	.p2align	4, 0x90
_register_cpu_under_node:               ## @register_cpu_under_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movl	%edi, %r14d
	movl	%esi, %edi
	callq	_node_online
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%r14d, %edi
	callq	_get_cpu_sysdev
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %r14
	movq	_node_devices@GOTPCREL(%rip), %r12
	movl	%r15d, %r15d
	shlq	$2, %r15
	movq	(%r12), %rbx
	addq	%r15, %rbx
	movq	%rax, %rdi
	callq	_kobject_name
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_sysfs_create_link
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	addq	(%r12), %r15
	movq	%r15, %rdi
	callq	_kobject_name
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sysfs_create_link              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_node_devices,8,3               ## @node_devices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_register_cpu_under_node        ; -- Begin function register_cpu_under_node
	.p2align	2
_register_cpu_under_node:               ; @register_cpu_under_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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_node_online
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_get_cpu_sysdev
	cbz	x0, LBB0_3
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x22, _node_devices@GOTPAGE
Lloh1:
	ldr	x22, [x22, _node_devices@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x21, x8, w19, uxtw #2
	bl	_kobject_name
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_sysfs_create_link
	cbz	w0, LBB0_4
LBB0_3:
	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
LBB0_4:
	mov	w8, w19
	ldr	x9, [x22]
	add	x19, x9, x8, lsl #2
	mov	x0, x19
	bl	_kobject_name
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	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
	b	_sysfs_create_link
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_node_devices,8,3               ; @node_devices
.subsections_via_symbols
