	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_child_pid_to_exec_file         ## -- Begin function child_pid_to_exec_file
	.p2align	4, 0x90
_child_pid_to_exec_file:                ## @child_pid_to_exec_file
	.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
	movl	%edi, %edx
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdi
	callq	_xasprintf
	movq	_MAXPATHLEN@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	$1, %esi
	callq	_xcalloc
	movq	%rax, %rbx
	movq	_xfree@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	-32(%rbp), %rsi
	callq	_make_cleanup
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_make_cleanup
	movq	-32(%rbp), %rdi
	movl	(%r14), %edx
	movq	%rbx, %rsi
	callq	_readlink
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovgq	%rbx, %rcx
	movq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/proc/%d/file"

	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_xfree,4,2                      ## @xfree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_child_pid_to_exec_file         ; -- Begin function child_pid_to_exec_file
	.p2align	2
_child_pid_to_exec_file:                ; @child_pid_to_exec_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_xasprintf
Lloh2:
	adrp	x20, _MAXPATHLEN@GOTPAGE
Lloh3:
	ldr	x20, [x20, _MAXPATHLEN@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #1
	bl	_xcalloc
	mov	x19, x0
Lloh4:
	adrp	x21, _xfree@GOTPAGE
Lloh5:
	ldr	x21, [x21, _xfree@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	x1, [sp, #8]
	bl	_make_cleanup
	ldr	w0, [x21]
	mov	x1, x19
	bl	_make_cleanup
	ldr	x0, [sp, #8]
	ldr	w2, [x20]
	mov	x1, x19
	bl	_readlink
	cmp	x0, #0
	csel	x0, x19, xzr, gt
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/proc/%d/file"

	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_xfree,4,2                      ; @xfree
.subsections_via_symbols
