	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lin_lwp_detach
_lin_lwp_detach:                        ## @lin_lwp_detach
	.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	%esi, %r14d
	movq	%rdi, %r15
	movq	_detach_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_iterate_over_lwps
	movq	_num_lwps@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$1, (%rax)
	sete	%dil
	callq	_gdb_assert
	movq	_null_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_trap_ptid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_init_lwp_list
	movq	_SIG_SETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_normal_mask@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	callq	_sigprocmask
	movq	_blocked_mask@GOTPCREL(%rip), %rdi
	callq	_sigemptyset
	movq	_inferior_ptid@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_GET_PID
	movl	%eax, %edi
	callq	_pid_to_ptid
	movl	%eax, (%rbx)
	movq	_child_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_detach_callback,4,2            ## @detach_callback
	.comm	_num_lwps,4,2                   ## @num_lwps
	.comm	_null_ptid,4,2                  ## @null_ptid
	.comm	_trap_ptid,4,2                  ## @trap_ptid
	.comm	_SIG_SETMASK,4,2                ## @SIG_SETMASK
	.comm	_normal_mask,4,2                ## @normal_mask
	.comm	_blocked_mask,4,2               ## @blocked_mask
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_child_ops,8,3                  ## @child_ops
	.no_dead_strip	_lin_lwp_detach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lin_lwp_detach
_lin_lwp_detach:                        ; @lin_lwp_detach
	.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
Lloh0:
	adrp	x8, _detach_callback@GOTPAGE
Lloh1:
	ldr	x8, [x8, _detach_callback@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_iterate_over_lwps
Lloh3:
	adrp	x8, _num_lwps@GOTPAGE
Lloh4:
	ldr	x8, [x8, _num_lwps@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #1
	cset	w0, eq
	bl	_gdb_assert
Lloh6:
	adrp	x8, _null_ptid@GOTPAGE
Lloh7:
	ldr	x8, [x8, _null_ptid@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _trap_ptid@GOTPAGE
Lloh10:
	ldr	x9, [x9, _trap_ptid@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
	bl	_init_lwp_list
Lloh12:
	adrp	x8, _SIG_SETMASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SIG_SETMASK@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, _normal_mask@GOTPAGE
Lloh16:
	ldr	x1, [x1, _normal_mask@GOTPAGEOFF]
	mov	x2, #0
	bl	_sigprocmask
Lloh17:
	adrp	x0, _blocked_mask@GOTPAGE
Lloh18:
	ldr	x0, [x0, _blocked_mask@GOTPAGEOFF]
	bl	_sigemptyset
Lloh19:
	adrp	x21, _inferior_ptid@GOTPAGE
Lloh20:
	ldr	x21, [x21, _inferior_ptid@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_GET_PID
	bl	_pid_to_ptid
	str	w0, [x21]
Lloh21:
	adrp	x8, _child_ops@GOTPAGE
Lloh22:
	ldr	x8, [x8, _child_ops@GOTPAGEOFF]
Lloh23:
	ldr	x2, [x8]
	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
	br	x2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_detach_callback,4,2            ; @detach_callback
	.comm	_num_lwps,4,2                   ; @num_lwps
	.comm	_null_ptid,4,2                  ; @null_ptid
	.comm	_trap_ptid,4,2                  ; @trap_ptid
	.comm	_SIG_SETMASK,4,2                ; @SIG_SETMASK
	.comm	_normal_mask,4,2                ; @normal_mask
	.comm	_blocked_mask,4,2               ; @blocked_mask
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_child_ops,8,3                  ; @child_ops
	.no_dead_strip	_lin_lwp_detach
.subsections_via_symbols
