	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lin_lwp_attach
_lin_lwp_attach:                        ## @lin_lwp_attach
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_child_ops@GOTPCREL(%rip), %rax
	callq	*(%rax)
	movq	_inferior_ptid@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_GET_PID
	movl	%eax, %ebx
	movl	(%r12), %edi
	callq	_GET_PID
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_BUILD_LWP
	movl	%eax, %edi
	callq	_add_lwp
	movq	%rax, %r15
	movl	(%r12), %edi
	callq	_GET_PID
	leaq	-36(%rbp), %rsi
	xorl	%r14d, %r14d
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_waitpid
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ECHILD@GOTPCREL(%rip), %rcx
	movl	$-1, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	(%r12), %edi
	callq	_target_pid_to_str
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_warning
	movl	(%r12), %edi
	callq	_GET_PID
	movq	___WCLONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-36(%rbp), %rsi
	movl	%eax, %edi
	callq	_waitpid
	movl	%eax, %ebx
	movl	$1, (%r15)
LBB0_3:
	movl	(%r12), %edi
	callq	_GET_PID
	cmpl	%eax, %ebx
	jne	LBB0_6
## %bb.4:
	movl	-36(%rbp), %edi
	callq	_WIFSTOPPED
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	-36(%rbp), %edi
	callq	_WSTOPSIG
	movq	_SIGSTOP@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	sete	%r14b
LBB0_6:
	movl	%r14d, %edi
	callq	_gdb_assert
	movl	$1, 4(%r15)
	movq	_SIGSTOP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_W_STOPCODE
	movl	%eax, 12(%r15)
	movl	$1, 8(%r15)
	movq	_debug_lin_lwp@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_gdb_stdlog@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	%ebx, %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf_unfiltered
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_child_ops,8,3                  ## @child_ops
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_errno,8,3                      ## @errno
	.comm	_ECHILD,8,3                     ## @ECHILD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s is a cloned process"

	.comm	___WCLONE,4,2                   ## @__WCLONE
	.comm	_SIGSTOP,8,3                    ## @SIGSTOP
	.comm	_debug_lin_lwp,8,3              ## @debug_lin_lwp
	.comm	_gdb_stdlog,4,2                 ## @gdb_stdlog
L_.str.1:                               ## @.str.1
	.asciz	"LLA: waitpid %ld, faking SIGSTOP\n"

	.no_dead_strip	_lin_lwp_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lin_lwp_attach
_lin_lwp_attach:                        ; @lin_lwp_attach
	.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
Lloh0:
	adrp	x8, _child_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _child_ops@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	blr	x8
Lloh3:
	adrp	x21, _inferior_ptid@GOTPAGE
Lloh4:
	ldr	x21, [x21, _inferior_ptid@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_GET_PID
	mov	x19, x0
	ldr	w0, [x21]
	bl	_GET_PID
	mov	x1, x0
	mov	x0, x19
	bl	_BUILD_LWP
	bl	_add_lwp
	mov	x19, x0
	ldr	w0, [x21]
	bl	_GET_PID
	add	x1, sp, #12
	mov	w2, #0
	bl	_waitpid
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _ECHILD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ECHILD@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x21]
	bl	_target_pid_to_str
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warning
	ldr	w0, [x21]
	bl	_GET_PID
Lloh13:
	adrp	x8, ___WCLONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, ___WCLONE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	add	x1, sp, #12
	bl	_waitpid
	mov	x20, x0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
	mov	w20, #-1
LBB0_4:
	ldr	w0, [x21]
	bl	_GET_PID
Lloh16:
	adrp	x21, _SIGSTOP@GOTPAGE
Lloh17:
	ldr	x21, [x21, _SIGSTOP@GOTPAGEOFF]
	cmp	w20, w0
	b.ne	LBB0_7
; %bb.5:
	ldr	w0, [sp, #12]
	bl	_WIFSTOPPED
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w0, [sp, #12]
	bl	_WSTOPSIG
	ldr	x8, [x21]
	cmp	x0, x8
	cset	w0, eq
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	bl	_gdb_assert
	mov	w22, #1
	str	w22, [x19, #4]
	ldr	x0, [x21]
	bl	_W_STOPCODE
	stp	w22, w0, [x19, #8]
Lloh18:
	adrp	x8, _debug_lin_lwp@GOTPAGE
Lloh19:
	ldr	x8, [x8, _debug_lin_lwp@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
Lloh21:
	adrp	x8, _gdb_stdlog@GOTPAGE
Lloh22:
	ldr	x8, [x8, _gdb_stdlog@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	sxtw	x2, w20
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf_unfiltered
LBB0_10:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_child_ops,8,3                  ; @child_ops
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_errno,8,3                      ; @errno
	.comm	_ECHILD,8,3                     ; @ECHILD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s is a cloned process"

	.comm	___WCLONE,4,2                   ; @__WCLONE
	.comm	_SIGSTOP,8,3                    ; @SIGSTOP
	.comm	_debug_lin_lwp,8,3              ; @debug_lin_lwp
	.comm	_gdb_stdlog,4,2                 ; @gdb_stdlog
l_.str.1:                               ; @.str.1
	.asciz	"LLA: waitpid %ld, faking SIGSTOP\n"

	.no_dead_strip	_lin_lwp_attach
.subsections_via_symbols
