	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function linux_sendsig
_linux_sendsig:                         ## @linux_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	$200, %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
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	32(%r14), %rbx
	movl	(%rsi), %r13d
	movl	4(%rsi), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_PROC_LOCK_ASSERT
	movq	(%rbx), %r12
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_mtx_assert
	movl	8(%r12), %edi
	movl	%r13d, %esi
	callq	_SIGISMEMBER
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_linux_rt_sendsig               ## TAILCALL
LBB0_1:
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r15
	movq	24(%r14), %r13
	movq	48(%r13), %rdi
	callq	_sigonstack
	movq	_TDP_ALTSTACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	testl	%ecx, (%r14)
	movq	%r12, %rbx
	je	LBB0_5
## %bb.2:
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	4(%rbx), %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_SIGISMEMBER
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movq	16(%rcx), %rcx
	leaq	(%rcx,%rax), %r12
	addq	$-144, %r12
	jmp	LBB0_6
LBB0_5:
	movq	$-144, %r12
	addq	48(%r13), %r12
LBB0_6:
	movq	%r15, %r14
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_mtx_unlock
	movq	%r15, %rdi
	callq	_PROC_UNLOCK
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_bsd_to_linux_signal
	movl	%eax, %r15d
	leaq	-240(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$144, %esi
	callq	_bzero
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_PTROUT
	movq	%rax, -104(%rbp)
	movl	%r15d, -240(%rbp)
	leaq	-48(%rbp), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_bsd_to_linux_sigset
	movl	-48(%rbp), %eax
	movl	%eax, -112(%rbp)
	movl	8(%r13), %eax
	movl	%eax, -116(%rbp)
	movl	12(%r13), %eax
	movl	%eax, -120(%rbp)
	movdqu	16(%r13), %xmm0
	pshufd	$78, %xmm0, %xmm0               ## xmm0 = xmm0[2,3,0,1]
	movdqu	%xmm0, -136(%rbp)
	movups	72(%r13), %xmm0
	movups	%xmm0, -152(%rbp)
	movq	48(%r13), %rax
	movq	%rax, -160(%rbp)
	movl	68(%r13), %ecx
	movl	%ecx, -168(%rbp)
	movsd	60(%r13), %xmm0                 ## xmm0 = mem[0],zero
	movsd	40(%r13), %xmm1                 ## xmm1 = mem[0],zero
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movups	%xmm1, -184(%rbp)
	movl	(%r13), %ecx
	movl	%ecx, -224(%rbp)
	movq	%rax, -192(%rbp)
	movq	32(%r13), %rax
	movq	%rax, -200(%rbp)
	movl	56(%r13), %eax
	movl	%eax, -208(%rbp)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	%rax, -216(%rbp)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_bsd_to_linux_trapcode
	movl	%eax, -220(%rbp)
	movl	-48(%rbp), %eax
	movq	-232(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$144, %edx
	callq	_copyout
	testq	%rax, %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_PROC_LOCK
	movq	_SIGILL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sigexit
LBB0_8:
	movq	%r12, %rdi
	callq	_PTROUT
	movq	%rax, 48(%r13)
	movq	_linux32_sigcode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r13)
	movq	_PSL_T@GOTPCREL(%rip), %rax
	movq	_PSL_D@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%r13)
	movq	__ucode32sel@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r13)
	movq	__udatasel@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r13)
	movq	%rax, 24(%r13)
	movq	%rax, 16(%r13)
	movq	__ufssel@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movq	__ugssel@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	_TF_HASSEGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movl	4(%rbx), %edi
	movq	_PCB_FULL_IRET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_set_pcb_flags
	movq	%r14, %rdi
	callq	_PROC_LOCK
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_mtx_lock
	addq	$200, %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	_TDP_ALTSTACK,4,2               ## @TDP_ALTSTACK
	.comm	_SIGILL,4,2                     ## @SIGILL
	.comm	_linux32_sigcode,4,2            ## @linux32_sigcode
	.comm	_PSL_T,4,2                      ## @PSL_T
	.comm	_PSL_D,4,2                      ## @PSL_D
	.comm	__ucode32sel,4,2                ## @_ucode32sel
	.comm	__udatasel,8,3                  ## @_udatasel
	.comm	__ufssel,4,2                    ## @_ufssel
	.comm	__ugssel,4,2                    ## @_ugssel
	.comm	_TF_HASSEGS,4,2                 ## @TF_HASSEGS
	.comm	_PCB_FULL_IRET,4,2              ## @PCB_FULL_IRET
	.no_dead_strip	_linux_sendsig
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function linux_sendsig
_linux_sendsig:                         ; @linux_sendsig
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x28, x27, [sp, #160]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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	x24, x2
	mov	x22, x1
	mov	x26, x0
Lloh0:
	adrp	x8, _curthread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	x19, [x21, #32]
	ldp	w27, w23, [x1]
Lloh3:
	adrp	x25, _MA_OWNED@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MA_OWNED@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_PROC_LOCK_ASSERT
	ldr	x20, [x19]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_mtx_assert
	ldr	w0, [x20, #8]
	mov	x1, x27
	bl	_SIGISMEMBER
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x26
	mov	x1, x22
	mov	x2, x24
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #256
	b	_linux_rt_sendsig
LBB0_2:
	ldr	x28, [x21, #24]
	ldr	x0, [x28, #48]
	bl	_sigonstack
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _TDP_ALTSTACK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TDP_ALTSTACK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	w0, #0, #0, ne
	b.ne	LBB0_5
; %bb.3:
	ldr	w0, [x20, #4]
	mov	x1, x27
	bl	_SIGISMEMBER
	cbz	x0, LBB0_5
; %bb.4:
	ldp	x9, x8, [x21, #8]
	add	x8, x8, x9
	b	LBB0_6
LBB0_5:
	ldr	x8, [x28, #48]
LBB0_6:
	sub	x25, x8, #144
	mov	x0, x20
	bl	_mtx_unlock
	mov	x0, x19
	bl	_PROC_UNLOCK
	mov	x0, x27
	bl	_bsd_to_linux_signal
	mov	x27, x0
	add	x0, sp, #8
	mov	w1, #144
	bl	_bzero
	mov	x0, x26
	bl	_PTROUT
	str	x0, [sp, #144]
	str	w27, [sp, #8]
	mov	x1, sp
	mov	x0, x24
	bl	_bsd_to_linux_sigset
	ldr	w8, [sp]
	str	w8, [sp, #136]
	ldr	d0, [x28, #8]
	rev64.2s	v0, v0
	str	d0, [sp, #128]
	ldr	x8, [x28, #16]
	str	x8, [sp, #120]
	ldr	x8, [x28, #24]
	str	x8, [sp, #112]
	ldur	q0, [x28, #72]
	stur	q0, [sp, #96]
	ldr	x8, [x28, #48]
	str	x8, [sp, #88]
	ldr	w9, [x28, #68]
	str	w9, [sp, #80]
	ldur	d0, [x28, #60]
	ldr	d1, [x28, #40]
	mov.d	v1[1], v0[0]
	stur	q1, [sp, #64]
	ldr	w9, [x28]
	str	w9, [sp, #24]
	str	x8, [sp, #56]
	ldr	x8, [x28, #32]
	str	x8, [sp, #48]
	ldr	w8, [x28, #56]
	str	w8, [sp, #40]
	ldr	x8, [x22, #8]
	str	x8, [sp, #32]
	mov	x0, x23
	bl	_bsd_to_linux_trapcode
	str	w0, [sp, #28]
	ldr	w8, [sp]
	ldr	x9, [sp, #16]
	str	w8, [x9]
	add	x0, sp, #8
	mov	x1, x25
	mov	w2, #144
	bl	_copyout
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_PROC_LOCK
Lloh8:
	adrp	x8, _SIGILL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIGILL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_sigexit
LBB0_8:
	mov	x0, x25
	bl	_PTROUT
	str	x0, [x28, #48]
Lloh11:
	adrp	x8, _linux32_sigcode@GOTPAGE
Lloh12:
	ldr	x8, [x8, _linux32_sigcode@GOTPAGEOFF]
Lloh13:
	adrp	x9, _PSL_T@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PSL_T@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _PSL_D@GOTPAGE
Lloh17:
	ldr	x10, [x10, _PSL_D@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [x28]
	bic	w9, w10, w9
Lloh19:
	ldr	w8, [x8]
	str	w9, [x28]
Lloh20:
	adrp	x9, __ucode32sel@GOTPAGE
Lloh21:
	ldr	x9, [x9, __ucode32sel@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x28, #40]
Lloh23:
	adrp	x8, __udatasel@GOTPAGE
Lloh24:
	ldr	x8, [x8, __udatasel@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	stp	x8, x8, [x28, #24]
	str	x8, [x28, #16]
Lloh26:
	adrp	x8, __ufssel@GOTPAGE
Lloh27:
	ldr	x8, [x8, __ufssel@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x28, #12]
Lloh29:
	adrp	x8, __ugssel@GOTPAGE
Lloh30:
	ldr	x8, [x8, __ugssel@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _TF_HASSEGS@GOTPAGE
Lloh33:
	ldr	x9, [x9, _TF_HASSEGS@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	stp	w9, w8, [x28, #4]
	ldr	w0, [x21, #4]
Lloh35:
	adrp	x8, _PCB_FULL_IRET@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PCB_FULL_IRET@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	bl	_set_pcb_flags
	mov	x0, x19
	bl	_PROC_LOCK
	mov	x0, x20
	bl	_mtx_lock
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.comm	_TDP_ALTSTACK,4,2               ; @TDP_ALTSTACK
	.comm	_SIGILL,4,2                     ; @SIGILL
	.comm	_linux32_sigcode,4,2            ; @linux32_sigcode
	.comm	_PSL_T,4,2                      ; @PSL_T
	.comm	_PSL_D,4,2                      ; @PSL_D
	.comm	__ucode32sel,4,2                ; @_ucode32sel
	.comm	__udatasel,8,3                  ; @_udatasel
	.comm	__ufssel,4,2                    ; @_ufssel
	.comm	__ugssel,4,2                    ; @_ugssel
	.comm	_TF_HASSEGS,4,2                 ; @TF_HASSEGS
	.comm	_PCB_FULL_IRET,4,2              ; @PCB_FULL_IRET
	.no_dead_strip	_linux_sendsig
.subsections_via_symbols
