	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_comm_timer_create              ## -- Begin function comm_timer_create
	.p2align	4, 0x90
_comm_timer_create:                     ## @comm_timer_create
	.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
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	$1, %edi
	movl	$40, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, 16(%rax)
	movq	%r15, 32(%rax)
	movq	%r12, (%rax)
	movq	%r14, 8(%rax)
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_UB_EV_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_comm_timer_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$-1, %esi
	movq	%rbx, %r8
	callq	_ub_event_new
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_log_err
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_log_err
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc failed"

	.comm	_UB_EV_TIMEOUT,4,2              ## @UB_EV_TIMEOUT
	.comm	_comm_timer_callback,4,2        ## @comm_timer_callback
L_.str.1:                               ## @.str.1
	.asciz	"timer_create: event_base_set failed."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_comm_timer_create              ; -- Begin function comm_timer_create
	.p2align	2
_comm_timer_create:                     ; @comm_timer_create
	.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, x2
	mov	x22, x1
	mov	x21, x0
	mov	w0, #1
	mov	w1, #40
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	stp	x20, x19, [x19, #8]
	str	x21, [x19, #32]
	str	x22, [x19]
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _UB_EV_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UB_EV_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _comm_timer_callback@GOTPAGE
Lloh4:
	ldr	x8, [x8, _comm_timer_callback@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	w1, #-1
	mov	x4, x19
	bl	_ub_event_new
	str	x0, [x19, #24]
	cbnz	x0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_err
	mov	x0, x19
	bl	_free
	mov	x19, #0
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
LBB0_4:
	mov	x0, x19
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc failed"

	.comm	_UB_EV_TIMEOUT,4,2              ; @UB_EV_TIMEOUT
	.comm	_comm_timer_callback,4,2        ; @comm_timer_callback
l_.str.1:                               ; @.str.1
	.asciz	"timer_create: event_base_set failed."

.subsections_via_symbols
