	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_try_self_signal                ## -- Begin function try_self_signal
	.p2align	4, 0x90
_try_self_signal:                       ## @try_self_signal
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_SIGTTIN_@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	sete	%al
	movq	_SIGTTOU_@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	_current@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_lock
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_signal_action
	movq	_SIGNAL_IGNORE@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	(%r12), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_sigset_has
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	(%r12), %rdi
	movq	_SIGINFO_NIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %esi
	callq	_deliver_signal_unlocked
	movl	$1, %r15d
LBB0_3:
	movq	%r14, %rdi
	callq	_unlock
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGTTIN_,4,2                   ## @SIGTTIN_
	.comm	_SIGTTOU_,4,2                   ## @SIGTTOU_
	.comm	_current,8,3                    ## @current
	.comm	_SIGNAL_IGNORE,8,3              ## @SIGNAL_IGNORE
	.comm	_SIGINFO_NIL,4,2                ## @SIGINFO_NIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_try_self_signal                ; -- Begin function try_self_signal
	.p2align	2
_try_self_signal:                       ; @try_self_signal
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _SIGTTIN_@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGTTIN_@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
Lloh3:
	adrp	x8, _SIGTTOU_@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIGTTOU_@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ccmp	w8, w0, #4, ne
	cset	w0, eq
	bl	_assert
Lloh6:
	adrp	x21, _current@GOTPAGE
Lloh7:
	ldr	x21, [x21, _current@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x19, [x8, #8]
	mov	x0, x19
	bl	_lock
	mov	x0, x19
	mov	x1, x20
	bl	_signal_action
Lloh8:
	adrp	x8, _SIGNAL_IGNORE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIGNAL_IGNORE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x21]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_sigset_has
	cbz	w0, LBB0_3
LBB0_2:
	mov	w20, #0
	b	LBB0_4
LBB0_3:
	ldr	x0, [x21]
Lloh11:
	adrp	x8, _SIGINFO_NIL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIGINFO_NIL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_deliver_signal_unlocked
	mov	w20, #1
LBB0_4:
	mov	x0, x19
	bl	_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGTTIN_,4,2                   ; @SIGTTIN_
	.comm	_SIGTTOU_,4,2                   ; @SIGTTOU_
	.comm	_current,8,3                    ; @current
	.comm	_SIGNAL_IGNORE,8,3              ; @SIGNAL_IGNORE
	.comm	_SIGINFO_NIL,4,2                ; @SIGINFO_NIL
.subsections_via_symbols
