	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_comm_signal_bind               ## -- Begin function comm_signal_bind
	.p2align	4, 0x90
_comm_signal_bind:                      ## @comm_signal_bind
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_log_assert
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_comm_signal_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %esi
	movq	%rbx, %rcx
	callq	_ub_signal_new
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	xorl	%r15d, %r15d
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_ub_signal_add
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_log_err
	movq	8(%r14), %rdi
	callq	_ub_event_free
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_log_err
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_log_err
	movq	%r14, %rdi
	callq	_free
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_6:
	movq	(%rbx), %rax
	movq	%rax, (%r14)
	movq	%r14, (%rbx)
	movl	$1, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc failed"

	.comm	_comm_signal_callback,4,2       ## @comm_signal_callback
L_.str.1:                               ## @.str.1
	.asciz	"Could not create signal event"

L_.str.2:                               ## @.str.2
	.asciz	"Could not add signal handler"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_comm_signal_bind               ; -- Begin function comm_signal_bind
	.p2align	2
_comm_signal_bind:                      ; @comm_signal_bind
	.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	x21, x1
	mov	x20, x0
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_log_assert
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _comm_signal_callback@GOTPAGE
Lloh1:
	ldr	x8, [x8, _comm_signal_callback@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x21
	mov	x3, x20
	bl	_ub_signal_new
	str	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.2:
	mov	x1, #0
	bl	_ub_signal_add
	cbz	x0, LBB0_7
; %bb.3:
Lloh3:
	adrp	x0, l_.str.2@PAGE
Lloh4:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_log_err
	ldr	x0, [x19, #8]
	bl	_ub_event_free
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_err
LBB0_6:
	mov	x0, x19
	bl	_free
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	ldr	x8, [x20]
	str	x8, [x19]
	str	x19, [x20]
	mov	w0, #1
LBB0_8:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc failed"

	.comm	_comm_signal_callback,4,2       ; @comm_signal_callback
l_.str.1:                               ; @.str.1
	.asciz	"Could not create signal event"

l_.str.2:                               ; @.str.2
	.asciz	"Could not add signal handler"

.subsections_via_symbols
