	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function my_event_new
_my_event_new:                          ## @my_event_new
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r13
	addq	$16, %r13
	movswl	%r15w, %edi
	callq	_NATIVE_BITS
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_NATIVE_BITS_CB
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_event_set
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_AS_MY_EVENT_BASE
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_event_base_set
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_free
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_4:
	movq	_UB_EVENT_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_default_event_vmt@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
LBB0_5:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UB_EVENT_MAGIC,4,2             ## @UB_EVENT_MAGIC
	.comm	_default_event_vmt,4,2          ## @default_event_vmt
	.no_dead_strip	_my_event_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function my_event_new
_my_event_new:                          ; @my_event_new
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x4
	mov	x23, x3
	mov	x24, x2
	mov	x22, x1
	mov	x20, x0
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	add	x25, x19, #16
	mov	x0, x24
	bl	_NATIVE_BITS
	mov	x24, x0
	mov	x0, x23
	bl	_NATIVE_BITS_CB
	mov	x3, x0
	mov	x0, x25
	mov	x1, x22
	mov	x2, x24
	mov	x4, x21
	bl	_event_set
	mov	x0, x20
	bl	_AS_MY_EVENT_BASE
	ldr	w0, [x0]
	mov	x1, x25
	bl	_event_base_set
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_free
	mov	x19, #0
	b	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _UB_EVENT_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UB_EVENT_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh3:
	adrp	x8, _default_event_vmt@GOTPAGE
Lloh4:
	ldr	x8, [x8, _default_event_vmt@GOTPAGEOFF]
	str	x8, [x19]
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UB_EVENT_MAGIC,4,2             ; @UB_EVENT_MAGIC
	.comm	_default_event_vmt,4,2          ; @default_event_vmt
	.no_dead_strip	_my_event_new
.subsections_via_symbols
