	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function linux_rt_sendsig
_linux_rt_sendsig:                      ## @linux_rt_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	$232, %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, %r15
	movl	%edi, %r12d
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	32(%r14), %rbx
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_PROC_LOCK_ASSERT
	movl	(%r15), %r13d
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdi
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_mtx_assert
	movq	24(%r14), %r15
	movq	(%r15), %rdi
	callq	_sigonstack
	movq	_rt_sendsig@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	movl	%r12d, %edx
	movl	%eax, %r12d
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r13d, %ecx
	movq	%rbx, %r8
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_LINUX_CTR4
	movq	_TDP_ALTSTACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	testl	%eax, (%r14)
	je	LBB0_4
## %bb.1:
	testl	%r12d, %r12d
	jne	LBB0_4
## %bb.2:
	movq	-64(%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	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movq	16(%rcx), %rcx
	leaq	(%rcx,%rax), %r13
	addq	$-168, %r13
	jmp	LBB0_5
LBB0_4:
	movq	$-296, %r13                     ## imm = 0xFED8
	addq	(%r15), %r13
LBB0_5:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mtx_unlock
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_bsd_to_linux_signal
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	-264(%rbp), %rdi
	movl	$168, %esi
	callq	_bzero
	leaq	-104(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_bsd_to_linux_sigset
	leaq	-136(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_bsd_to_linux_sigset
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rdi
	callq	_PTROUT
	movl	%eax, -112(%rbp)
	movq	8(%rbx), %rax
	movq	%rax, -120(%rbp)
	movq	_TDP_ALTSTACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.6:
	movq	_LINUX_SS_ONSTACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
LBB0_7:
	andq	$-16, %r13
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	_LINUX_SS_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_9:
	movl	%r12d, -128(%rbp)
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_PROC_UNLOCK
	movl	8(%r15), %eax
	movl	%eax, -256(%rbp)
	movups	24(%r15), %xmm0
	movups	%xmm0, -152(%rbp)
	movl	92(%r15), %eax
	movl	%eax, -160(%rbp)
	movl	88(%r15), %eax
	movl	%eax, -164(%rbp)
	movl	84(%r15), %eax
	movl	%eax, -168(%rbp)
	movq	40(%r15), %rax
	movq	%rax, -176(%rbp)
	movl	20(%r15), %eax
	movl	%eax, -180(%rbp)
	movq	(%r15), %rax
	movq	%rax, -248(%rbp)
	movups	68(%r15), %xmm0
	movups	%xmm0, -196(%rbp)
	movups	52(%r15), %xmm0
	movups	%xmm0, -212(%rbp)
	movl	16(%r15), %eax
	movl	%eax, -216(%rbp)
	movl	12(%r15), %eax
	movl	%eax, -240(%rbp)
	movl	48(%r15), %eax
	movl	%eax, -220(%rbp)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_bsd_to_linux_trapcode
	movl	%eax, -224(%rbp)
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	8(%rdi), %rax
	movq	%rax, -232(%rbp)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, 8(%r15)
	movq	$0, 40(%r15)
	movq	%r13, 32(%r15)
	leaq	8(%r13), %rax
	movq	%rax, 24(%r15)
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -260(%rbp)
	leaq	-264(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_ksiginfo_to_lsiginfo
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$168, %edx
	callq	_copyout
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	callq	_PROC_LOCK
	movq	_SIGILL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_sigexit
LBB0_11:
	movq	%r13, (%r15)
	movq	_linux_rt_sigcode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_PSL_T@GOTPCREL(%rip), %rax
	movq	_PSL_D@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, 12(%r15)
	movq	__ucodesel@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movq	_PCB_FULL_IRET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_set_pcb_flags
	movq	%r12, %rdi
	callq	_PROC_LOCK
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mtx_lock
	addq	$232, %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	_rt_sendsig,4,2                 ## @rt_sendsig
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%p, %d, %p, %u"

	.comm	_TDP_ALTSTACK,4,2               ## @TDP_ALTSTACK
	.comm	_LINUX_SS_ONSTACK,4,2           ## @LINUX_SS_ONSTACK
	.comm	_LINUX_SS_DISABLE,4,2           ## @LINUX_SS_DISABLE
	.comm	_SIGILL,4,2                     ## @SIGILL
	.comm	_linux_rt_sigcode,4,2           ## @linux_rt_sigcode
	.comm	_PSL_T,4,2                      ## @PSL_T
	.comm	_PSL_D,4,2                      ## @PSL_D
	.comm	__ucodesel,4,2                  ## @_ucodesel
	.comm	_PCB_FULL_IRET,4,2              ## @PCB_FULL_IRET
	.no_dead_strip	_linux_rt_sendsig
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function linux_rt_sendsig
_linux_rt_sendsig:                      ; @linux_rt_sendsig
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	x28, x27, [sp, #192]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #208]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #224]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #240]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	add	x29, sp, #272
	.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
	mov	x26, x2
	mov	x22, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _curthread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	ldr	x19, [x20, #32]
Lloh3:
	adrp	x23, _MA_OWNED@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MA_OWNED@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_PROC_LOCK_ASSERT
	ldr	x21, [x19]
	ldp	w28, w25, [x22]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_mtx_assert
	ldr	x23, [x20, #24]
	ldr	x0, [x23]
	bl	_sigonstack
	mov	x27, x0
Lloh5:
	adrp	x8, _rt_sendsig@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rt_sendsig@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	stp	w25, w24, [sp, #8]              ; 8-byte Folded Spill
	mov	x2, x24
	mov	x3, x28
	mov	x4, x26
	mov	x5, x25
	bl	_LINUX_CTR4
	ldr	w8, [x20]
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, [x21, #4]
	mov	x1, x28
	bl	_SIGISMEMBER
	cbz	x0, LBB0_3
; %bb.2:
	ldp	x9, x8, [x20, #8]
	add	x8, x8, x9
	sub	x8, x8, #168
	b	LBB0_4
LBB0_3:
	ldr	x8, [x23]
	sub	x8, x8, #296
LBB0_4:
	and	x25, x8, #0xfffffffffffffff0
	mov	x0, x21
	bl	_mtx_unlock
	mov	x0, x28
	bl	_bsd_to_linux_signal
	mov	x28, x0
	add	x24, sp, #16
	add	x0, sp, #16
	mov	w1, #168
	bl	_bzero
	add	x1, x24, #160
	mov	x0, x26
	bl	_bsd_to_linux_sigset
	add	x1, x24, #128
	mov	x0, x26
	bl	_bsd_to_linux_sigset
	ldr	x0, [x20, #16]
	bl	_PTROUT
	str	w0, [sp, #168]
	ldr	x8, [x20, #8]
	str	x8, [sp, #160]
	ldr	w8, [x20]
Lloh13:
	adrp	x9, _TDP_ALTSTACK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TDP_ALTSTACK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _LINUX_SS_ONSTACK@GOTPAGE
Lloh17:
	ldr	x10, [x10, _LINUX_SS_ONSTACK@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	cmp	w27, #0
	csel	w10, w10, wzr, ne
Lloh19:
	adrp	x11, _LINUX_SS_DISABLE@GOTPAGE
Lloh20:
	ldr	x11, [x11, _LINUX_SS_DISABLE@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	tst	w9, w8
	csel	w8, w11, w10, eq
	str	w8, [sp, #152]
	mov	x0, x19
	bl	_PROC_UNLOCK
	ldr	w8, [x23, #8]
	ldr	x9, [x23, #32]
	str	x9, [sp, #136]
	ldr	x9, [x23, #24]
	str	x9, [sp, #128]
	ldr	w9, [x23, #92]
	str	w9, [sp, #120]
	ldur	d0, [x23, #84]
	str	d0, [sp, #112]
	ldr	x9, [x23, #40]
	str	x9, [sp, #104]
	ldr	w9, [x23, #20]
	str	w8, [sp, #24]
	str	w9, [sp, #100]
	ldr	x8, [x23]
	str	x8, [sp, #32]
	ldur	q0, [x23, #68]
	stur	q0, [sp, #84]
	ldur	q0, [x23, #52]
	stur	q0, [sp, #68]
	ldr	w8, [x23, #16]
	str	w8, [sp, #64]
	ldr	w8, [x23, #12]
	ldr	w9, [x23, #48]
	str	w8, [sp, #40]
	str	w9, [sp, #60]
	ldr	w0, [sp, #8]                    ; 4-byte Folded Reload
	bl	_bsd_to_linux_trapcode
	str	w0, [sp, #56]
	ldr	x8, [x22, #8]
	str	x8, [sp, #48]
	str	w28, [x23, #8]
	stp	x25, xzr, [x23, #32]
	orr	x8, x25, #0x8
	str	x8, [x23, #24]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	str	w8, [sp, #20]
	add	x1, sp, #16
	mov	x0, x22
	mov	x2, x28
	bl	_ksiginfo_to_lsiginfo
	add	x0, sp, #16
	mov	x1, x25
	mov	w2, #168
	bl	_copyout
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_PROC_LOCK
Lloh22:
	adrp	x8, _SIGILL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SIGILL@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sigexit
LBB0_6:
	str	x25, [x23]
Lloh25:
	adrp	x8, _linux_rt_sigcode@GOTPAGE
Lloh26:
	ldr	x8, [x8, _linux_rt_sigcode@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x23, #20]
Lloh28:
	adrp	x8, _PSL_T@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PSL_T@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _PSL_D@GOTPAGE
Lloh32:
	ldr	x9, [x9, _PSL_D@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x23, #12]
	bic	w8, w9, w8
Lloh34:
	adrp	x9, __ucodesel@GOTPAGE
Lloh35:
	ldr	x9, [x9, __ucodesel@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	stp	w8, w9, [x23, #12]
	ldr	w0, [x20, #4]
Lloh37:
	adrp	x8, _PCB_FULL_IRET@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PCB_FULL_IRET@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	bl	_set_pcb_flags
	mov	x0, x19
	bl	_PROC_LOCK
	mov	x0, x21
	bl	_mtx_lock
	ldp	x29, x30, [sp, #272]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #256]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #240]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #224]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #208]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #288
	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 AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.comm	_rt_sendsig,4,2                 ; @rt_sendsig
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p, %d, %p, %u"

	.comm	_TDP_ALTSTACK,4,2               ; @TDP_ALTSTACK
	.comm	_LINUX_SS_ONSTACK,4,2           ; @LINUX_SS_ONSTACK
	.comm	_LINUX_SS_DISABLE,4,2           ; @LINUX_SS_DISABLE
	.comm	_SIGILL,4,2                     ; @SIGILL
	.comm	_linux_rt_sigcode,4,2           ; @linux_rt_sigcode
	.comm	_PSL_T,4,2                      ; @PSL_T
	.comm	_PSL_D,4,2                      ; @PSL_D
	.comm	__ucodesel,4,2                  ; @_ucodesel
	.comm	_PCB_FULL_IRET,4,2              ; @PCB_FULL_IRET
	.no_dead_strip	_linux_rt_sendsig
.subsections_via_symbols
