	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_ap_child                   ## -- Begin function get_ap_child
	.p2align	4, 0x90
_get_ap_child:                          ## @get_ap_child
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	xorl	%eax, %eax
	callq	_exported_ap_alloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_init_map
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_insert_am
	movq	(%rbx), %rdi
	movq	_FS_DIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rax
	movq	%rax, %rsi
	testl	%ecx, (%r12)
	jne	LBB0_3
## %bb.2:
	movq	(%r15), %rsi
LBB0_3:
	cmpb	$47, (%r14)
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	%r14, %rcx
	callq	_str3cat
	movq	%rax, (%rbx)
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	callq	_dlog
LBB0_4:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FS_DIRECT,4,2                  ## @FS_DIRECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"/"

L_.str.2:                               ## @.str.2
	.asciz	"setting path to %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_ap_child                   ; -- Begin function get_ap_child
	.p2align	2
_get_ap_child:                          ; @get_ap_child
	.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	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x22, [x8]
	bl	_exported_ap_alloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_init_map
	mov	x0, x19
	mov	x1, x21
	bl	_insert_am
	ldr	x0, [x19]
Lloh0:
	adrp	x8, _FS_DIRECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FS_DIRECT@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh2:
	ldr	w10, [x8]
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	mov	x1, x8
	tst	w10, w9
	b.ne	LBB0_3
; %bb.2:
	ldr	x1, [x21]
LBB0_3:
	ldrb	w9, [x20]
Lloh5:
	adrp	x10, l_.str.1@PAGE
Lloh6:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w9, #47
	csel	x2, x8, x10, eq
	mov	x3, x20
	bl	_str3cat
	mov	x1, x0
	str	x0, [x19]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dlog
LBB0_4:
	mov	x0, 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
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FS_DIRECT,4,2                  ; @FS_DIRECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"/"

l_.str.2:                               ; @.str.2
	.asciz	"setting path to %s"

.subsections_via_symbols
