	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_set_current_signal        ## -- Begin function proc_set_current_signal
	.p2align	4, 0x90
_proc_set_current_signal:               ## @proc_set_current_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movl	12(%rbx), %edi
	xorl	%esi, %esi
	callq	_find_procinfo_or_die
	movq	%rax, %rbx
LBB0_2:
	leaq	-60(%rbp), %r15
	movl	%r14d, -60(%rbp)
	movq	$0, -44(%rbp)
	xorl	%eax, %eax
	callq	_getpid
	movl	%eax, -52(%rbp)
	xorl	%eax, %eax
	callq	_getuid
	movl	%eax, -56(%rbp)
	movl	8(%rbx), %edi
	movq	_PIOCSSIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_ioctl
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	shrq	$63, %rax
	xorl	$1, %eax
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PIOCSSIG,4,2                   ## @PIOCSSIG
	.comm	_PCSSIG,4,2                     ## @PCSSIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_set_current_signal        ; -- Begin function proc_set_current_signal
	.p2align	2
_proc_set_current_signal:               ; @proc_set_current_signal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #12]
	mov	w1, #0
	bl	_find_procinfo_or_die
	mov	x19, x0
LBB0_2:
	add	x8, sp, #8
	orr	x21, x8, #0x4
	str	w20, [sp, #12]
	stur	xzr, [sp, #28]
	bl	_getpid
	str	w0, [sp, #20]
	bl	_getuid
	str	w0, [sp, #16]
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _PIOCSSIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIOCSSIG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_ioctl
	ldr	x8, [sp, #40]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	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
	add	sp, sp, #96
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PIOCSSIG,4,2                   ; @PIOCSSIG
	.comm	_PCSSIG,4,2                     ; @PCSSIG
.subsections_via_symbols
