	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thr_sighandler
_thr_sighandler:                        ## @thr_sighandler
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, %r12d
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	xorl	%eax, %eax
	callq	__get_curthread
	movq	%rax, %r13
	movl	%r12d, %edi
	callq	___libc_sigaction_slot
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	__thr_rwl_rdlock
	movl	4(%rbx), %eax
	movl	%eax, -48(%rbp)
	movq	%rbx, %rdi
	callq	__thr_rwl_unlock
	movl	%r15d, (%r14)
	movq	$0, 16(%r13)
	movq	%r13, %rdi
	callq	_THR_IN_CRITICAL
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	__thr_deferset@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	%r12d, %esi
	callq	_SIGISMEMBER
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	8(%r13), %rdi
	leaq	-48(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r13, %rdi
	addq	$4, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcpy
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %eax
	movl	%eax, (%r13)
	movl	(%rbx), %eax
	movl	%eax, (%rcx)
	jmp	LBB0_4
LBB0_3:
	leaq	-48(%rbp), %rdi
	movl	%r12d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_handle_signal
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	__thr_deferset,4,2              ## @_thr_deferset
	.no_dead_strip	_thr_sighandler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thr_sighandler
_thr_sighandler:                        ; @thr_sighandler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x24, _errno@GOTPAGE
Lloh1:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	ldr	w25, [x24]
	bl	__get_curthread
	mov	x21, x0
	mov	x0, x22
	bl	___libc_sigaction_slot
	mov	x23, x0
	bl	__thr_rwl_rdlock
	ldr	w8, [x23, #4]
	str	w8, [sp, #8]
	mov	x0, x23
	bl	__thr_rwl_unlock
	str	w25, [x24]
	str	xzr, [x21, #16]
	mov	x0, x21
	bl	_THR_IN_CRITICAL
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x23, __thr_deferset@GOTPAGE
Lloh3:
	ldr	x23, [x23, __thr_deferset@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x22
	bl	_SIGISMEMBER
	cbz	x0, LBB0_3
; %bb.2:
	add	x0, x21, #8
	add	x1, sp, #8
	mov	w2, #4
	bl	_memcpy
	add	x0, x21, #4
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x19]
	str	w8, [x21]
	ldr	w8, [x23]
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
	add	x0, sp, #8
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	bl	_handle_signal
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	__thr_deferset,4,2              ; @_thr_deferset
	.no_dead_strip	_thr_sighandler
.subsections_via_symbols
