	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ub_event_add                   ## -- Begin function ub_event_add
	.p2align	4, 0x90
_ub_event_add:                          ## @ub_event_add
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	_UB_EVENT_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_default_event_vmt@GOTPCREL(%rip), %rax
	cmpq	%rax, 8(%rdi)
	setne	%cl
	movq	(%rax), %rax
	cmpq	_my_event_add@GOTPCREL(%rip), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_fptr_ok
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	movl	$-1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UB_EVENT_MAGIC,8,3             ## @UB_EVENT_MAGIC
	.comm	_default_event_vmt,8,3          ## @default_event_vmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ub_event_add                   ; -- Begin function ub_event_add
	.p2align	2
_ub_event_add:                          ; @ub_event_add
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _UB_EVENT_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UB_EVENT_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _default_event_vmt@GOTPAGE
Lloh4:
	ldr	x9, [x9, _default_event_vmt@GOTPAGEOFF]
	cmp	x8, x9
	ldr	x8, [x9]
Lloh5:
	adrp	x9, _my_event_add@GOTPAGE
Lloh6:
	ldr	x9, [x9, _my_event_add@GOTPAGEOFF]
	ccmp	x8, x9, #4, eq
	cset	w0, eq
	bl	_fptr_ok
	ldr	x8, [x20, #8]
	ldr	x2, [x8]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x2
LBB0_2:
	mov	w0, #-1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_UB_EVENT_MAGIC,8,3             ; @UB_EVENT_MAGIC
	.comm	_default_event_vmt,8,3          ; @default_event_vmt
.subsections_via_symbols
