	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lin_thread_get_thread_signals  ## -- Begin function lin_thread_get_thread_signals
	.p2align	4, 0x90
_lin_thread_get_thread_signals:         ## @lin_thread_get_thread_signals
	.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	%rdi, %r15
	callq	_sigemptyset
	leaq	L_.str(%rip), %rdi
	callq	_get_signo
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_get_signo
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_sigaddset
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_sigaddset
	movq	_sigchld_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	leaq	-32(%rbp), %rdi
	callq	_sigemptyset
	movq	$0, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_sigaction
	movq	_blocked_mask@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_sigaddset
	movq	_SIG_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sigprocmask
	movq	_suspend_mask@GOTPCREL(%rip), %rdi
	movl	%r14d, %esi
	callq	_sigdelset
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"__pthread_sig_restart"

L_.str.1:                               ## @.str.1
	.asciz	"__pthread_sig_cancel"

	.comm	_sigchld_handler,4,2            ## @sigchld_handler
	.comm	_blocked_mask,4,2               ## @blocked_mask
	.comm	_SIG_BLOCK,4,2                  ## @SIG_BLOCK
	.comm	_suspend_mask,4,2               ## @suspend_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lin_thread_get_thread_signals  ; -- Begin function lin_thread_get_thread_signals
	.p2align	2
_lin_thread_get_thread_signals:         ; @lin_thread_get_thread_signals
	.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	x20, x0
	bl	_sigemptyset
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_get_signo
	cbz	w0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_get_signo
	cbz	w0, LBB0_3
; %bb.2:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x21
	bl	_sigaddset
	mov	x0, x20
	mov	x1, x19
	bl	_sigaddset
Lloh4:
	adrp	x8, _sigchld_handler@GOTPAGE
Lloh5:
	ldr	x8, [x8, _sigchld_handler@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	mov	x8, sp
	add	x0, x8, #8
	bl	_sigemptyset
	str	xzr, [sp]
	mov	x1, sp
	mov	x0, x19
	mov	x2, #0
	bl	_sigaction
Lloh7:
	adrp	x20, _blocked_mask@GOTPAGE
Lloh8:
	ldr	x20, [x20, _blocked_mask@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_sigaddset
Lloh9:
	adrp	x8, _SIG_BLOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIG_BLOCK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x20
	mov	x2, #0
	bl	_sigprocmask
Lloh12:
	adrp	x0, _suspend_mask@GOTPAGE
Lloh13:
	ldr	x0, [x0, _suspend_mask@GOTPAGEOFF]
	mov	x1, x19
	bl	_sigdelset
LBB0_3:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"__pthread_sig_restart"

l_.str.1:                               ; @.str.1
	.asciz	"__pthread_sig_cancel"

	.comm	_sigchld_handler,4,2            ; @sigchld_handler
	.comm	_blocked_mask,4,2               ; @blocked_mask
	.comm	_SIG_BLOCK,4,2                  ; @SIG_BLOCK
	.comm	_suspend_mask,4,2               ; @suspend_mask
.subsections_via_symbols
