	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function linux_ptrace_getsiginfo
_linux_ptrace_getsiginfo:               ## @linux_ptrace_getsiginfo
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %edx
	movq	%rdi, %r15
	movq	_PT_LWPINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rcx
	movl	$8, %r8d
	callq	_kern_ptrace
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_linux_msg
	jmp	LBB0_6
LBB0_3:
	movq	_PL_FLAG_SI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -32(%rbp)
	je	LBB0_4
## %bb.5:
	leaq	-28(%rbp), %r15
	movl	-28(%rbp), %edi
	callq	_bsd_to_linux_signal
	leaq	-36(%rbp), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_siginfo_to_lsiginfo
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_copyout
	movl	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_PT_LWPINFO,4,2                 ## @PT_LWPINFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PT_LWPINFO failed with error %d"

	.comm	_PL_FLAG_SI,4,2                 ## @PL_FLAG_SI
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"no PL_FLAG_SI, returning %d"

	.no_dead_strip	_linux_ptrace_getsiginfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function linux_ptrace_getsiginfo
_linux_ptrace_getsiginfo:               ; @linux_ptrace_getsiginfo
	.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	x19, x2
	mov	x2, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _PT_LWPINFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PT_LWPINFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	w4, #8
	bl	_kern_ptrace
	cbz	w0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x20
	mov	x2, x21
	bl	_linux_msg
	b	LBB0_5
LBB0_3:
	ldr	w8, [sp, #8]
Lloh5:
	adrp	x9, _PL_FLAG_SI@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PL_FLAG_SI@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	add	x8, sp, #8
	orr	x20, x8, #0x4
	ldr	w0, [sp, #12]
	bl	_bsd_to_linux_signal
	mov	x2, x0
	add	x1, sp, #4
	mov	x0, x20
	bl	_siginfo_to_lsiginfo
	add	x0, sp, #4
	mov	x1, x19
	mov	w2, #4
	bl	_copyout
	mov	x21, x0
LBB0_5:
	mov	x0, x21
	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
LBB0_6:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PT_LWPINFO,4,2                 ; @PT_LWPINFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PT_LWPINFO failed with error %d"

	.comm	_PL_FLAG_SI,4,2                 ; @PL_FLAG_SI
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"no PL_FLAG_SI, returning %d"

	.no_dead_strip	_linux_ptrace_getsiginfo
.subsections_via_symbols
