	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sendsig                        ## -- Begin function sendsig
	.p2align	4, 0x90
_sendsig:                               ## @sendsig
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	8(%r12), %r13
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_PROC_LOCK_ASSERT
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r14d
	movq	16(%r13), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mtx_assert
	movq	40(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rdi
	callq	_sigonstack
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_KTR_SIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %r8
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %r9d
	callq	_CTR4
	movq	_TDP_ALTSTACK@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%r12)
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.1:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_4
## %bb.2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_SIGISMEMBER
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	24(%r12), %rdi
	addq	32(%r12), %rdi
	jmp	LBB0_5
LBB0_4:
	movq	40(%r12), %rax
	movq	8(%rax), %rdi
LBB0_5:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	addq	$-40, %rdi
	callq	_STACKALIGN
	movq	%rax, %r14
	leaq	-144(%rbp), %rdi
	movl	$40, %esi
	callq	_bzero
	leaq	-116(%rbp), %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_get_mcontext
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_get_fpcontext
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	movl	%eax, -112(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)
	movq	32(%r12), %rax
	movq	%rax, -128(%rbp)
	movups	16(%r12), %xmm0
	movaps	%xmm0, -144(%rbp)
	movl	(%r15), %eax
	andl	(%r12), %eax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.6:
	movq	_SS_ONSTACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_7:
	testl	%eax, %eax
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_9
## %bb.8:
	movq	_SS_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_9:
	movl	%ecx, -144(%rbp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mtx_unlock
	movq	8(%r12), %rdi
	callq	_PROC_UNLOCK
	leaq	-144(%rbp), %rdi
	movq	%r14, %rsi
	movl	$40, %edx
	callq	_copyout
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_KTR_SIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_CTR2
	movq	%r13, %rdi
	callq	_PROC_LOCK
	movq	_SIGILL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sigexit
LBB0_11:
	movq	(%rbx), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	leal	32(%r14), %ecx
	movl	%ecx, 4(%rax)
	movl	%r14d, 8(%rax)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 16(%rbx)
	movq	%r14, 8(%rbx)
	movq	(%r13), %rsi
	movq	(%rsi), %rax
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	8(%rsi), %rdx
	movq	16(%rsi), %rax
	subq	(%rdx), %rax
LBB0_13:
	movq	%rax, 24(%rbx)
	movq	_KTR_SIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdx
	movq	%r14, %r8
	callq	_CTR3
	movq	%r13, %rdi
	callq	_PROC_LOCK
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mtx_lock
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curthread,8,3                  ## @curthread
	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
	.comm	_KTR_SIG,4,2                    ## @KTR_SIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sendsig: td=%p (%s) catcher=%p sig=%d"

	.comm	_TDP_ALTSTACK,4,2               ## @TDP_ALTSTACK
	.comm	_SS_ONSTACK,4,2                 ## @SS_ONSTACK
	.comm	_SS_DISABLE,4,2                 ## @SS_DISABLE
L_.str.1:                               ## @.str.1
	.asciz	"sendsig: sigexit td=%p fp=%p"

	.comm	_SIGILL,4,2                     ## @SIGILL
L_.str.2:                               ## @.str.2
	.asciz	"sendsig: return td=%p pc=%#x sp=%#x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sendsig                        ; -- Begin function sendsig
	.p2align	2
_sendsig:                               ; @sendsig
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x26, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _curthread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	x19, [x21, #8]
Lloh3:
	adrp	x24, _MA_OWNED@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MA_OWNED@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_PROC_LOCK_ASSERT
	ldr	w23, [x26]
	ldr	x22, [x19, #16]
	ldr	w1, [x24]
	mov	x0, x22
	bl	_mtx_assert
	ldr	x25, [x21, #40]
	ldr	x0, [x25, #8]
	bl	_sigonstack
	mov	x27, x0
Lloh5:
	adrp	x8, _KTR_SIG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KTR_SIG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w3, [x19, #8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x4, x20
	mov	x5, x23
	bl	_CTR4
	ldr	w8, [x21]
Lloh10:
	adrp	x9, _TDP_ALTSTACK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TDP_ALTSTACK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	w27, #0, #0, ne
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x22, #4]
	mov	x1, x23
	bl	_SIGISMEMBER
	cbz	x0, LBB0_3
; %bb.2:
	ldp	x9, x8, [x21, #24]
	add	x8, x9, x8
	b	LBB0_4
LBB0_3:
	ldr	x8, [x21, #40]
	ldr	x8, [x8, #8]
LBB0_4:
	sub	x0, x8, #40
	bl	_STACKALIGN
	mov	x24, x0
	add	x28, sp, #16
	add	x0, sp, #16
	mov	w1, #40
	bl	_bzero
	add	x28, x28, #28
	mov	x0, x21
	mov	x1, x28
	mov	w2, #0
	bl	_get_mcontext
	mov	x0, x21
	mov	x1, x28
	bl	_get_fpcontext
	ldr	w8, [x26, #4]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w9, [x9]
	str	w8, [sp, #48]
	str	w9, [sp, #40]
	ldr	q0, [x21, #16]
	ldr	x8, [x21, #32]
	str	x8, [sp, #32]
	str	q0, [sp, #16]
	ldr	w8, [x21]
Lloh13:
	adrp	x9, _TDP_ALTSTACK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TDP_ALTSTACK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _SS_ONSTACK@GOTPAGE
Lloh17:
	ldr	x10, [x10, _SS_ONSTACK@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	cmp	w27, #0
	csel	w10, w10, wzr, ne
Lloh19:
	adrp	x11, _SS_DISABLE@GOTPAGE
Lloh20:
	ldr	x11, [x11, _SS_DISABLE@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	tst	w9, w8
	csel	w8, w11, w10, eq
	str	w8, [sp, #16]
	mov	x0, x22
	bl	_mtx_unlock
	ldr	x0, [x21, #8]
	bl	_PROC_UNLOCK
	add	x0, sp, #16
	mov	x1, x24
	mov	w2, #40
	bl	_copyout
Lloh22:
	adrp	x26, _KTR_SIG@GOTPAGE
Lloh23:
	ldr	x26, [x26, _KTR_SIG@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x26]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	mov	x3, x24
	bl	_CTR2
	mov	x0, x19
	bl	_PROC_LOCK
Lloh26:
	adrp	x8, _SIGILL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SIGILL@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_sigexit
LBB0_6:
	ldr	x8, [x25]
	add	w9, w24, #32
	stp	w23, w9, [x8]
	str	w24, [x8, #8]
	stp	x24, x20, [x25, #8]
	ldr	x9, [x19]
	ldr	x8, [x9]
	cbnz	x8, LBB0_8
; %bb.7:
	ldp	x9, x8, [x9, #8]
	ldr	x9, [x9]
	sub	x8, x8, x9
LBB0_8:
	str	x8, [x25, #24]
	ldr	w0, [x26]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	mov	x4, x24
	bl	_CTR3
	mov	x0, x19
	bl	_PROC_LOCK
	mov	x0, x22
	bl	_mtx_lock
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.comm	_KTR_SIG,4,2                    ; @KTR_SIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sendsig: td=%p (%s) catcher=%p sig=%d"

	.comm	_TDP_ALTSTACK,4,2               ; @TDP_ALTSTACK
	.comm	_SS_ONSTACK,4,2                 ; @SS_ONSTACK
	.comm	_SS_DISABLE,4,2                 ; @SS_DISABLE
l_.str.1:                               ; @.str.1
	.asciz	"sendsig: sigexit td=%p fp=%p"

	.comm	_SIGILL,4,2                     ; @SIGILL
l_.str.2:                               ; @.str.2
	.asciz	"sendsig: return td=%p pc=%#x sp=%#x"

.subsections_via_symbols
