	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_current_lwp
_get_current_lwp:                       ## @get_current_lwp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_target_has_execution@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movl	%edi, %esi
	movq	_PT_LWPINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-8(%rbp), %rdx
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$8, %ecx
	callq	_ptrace
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_perror_with_name
	jmp	LBB0_4
LBB0_1:
	movq	$0, -8(%rbp)
	movq	_core_bfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_fbsd_core_get_first_lwp@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-8(%rbp), %rdx
	callq	_bfd_map_over_sections
LBB0_4:
	movq	-8(%rbp), %rax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_target_has_execution,4,2       ## @target_has_execution
	.comm	_core_bfd,4,2                   ## @core_bfd
	.comm	_fbsd_core_get_first_lwp,4,2    ## @fbsd_core_get_first_lwp
	.comm	_PT_LWPINFO,4,2                 ## @PT_LWPINFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PT_LWPINFO"

	.no_dead_strip	_get_current_lwp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_current_lwp
_get_current_lwp:                       ; @get_current_lwp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _target_has_execution@GOTPAGE
Lloh1:
	ldr	x8, [x8, _target_has_execution@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x1, x0
Lloh3:
	adrp	x8, _PT_LWPINFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PT_LWPINFO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	w3, #8
	bl	_ptrace
	cbz	x0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror_with_name
	b	LBB0_4
LBB0_3:
	str	xzr, [sp, #8]
Lloh8:
	adrp	x8, _core_bfd@GOTPAGE
Lloh9:
	ldr	x8, [x8, _core_bfd@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _fbsd_core_get_first_lwp@GOTPAGE
Lloh12:
	ldr	x8, [x8, _fbsd_core_get_first_lwp@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_bfd_map_over_sections
LBB0_4:
	ldr	x0, [sp, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_target_has_execution,4,2       ; @target_has_execution
	.comm	_core_bfd,4,2                   ; @core_bfd
	.comm	_fbsd_core_get_first_lwp,4,2    ; @fbsd_core_get_first_lwp
	.comm	_PT_LWPINFO,4,2                 ; @PT_LWPINFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PT_LWPINFO"

	.no_dead_strip	_get_current_lwp
.subsections_via_symbols
