	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ub_event_new                   ## -- Begin function ub_event_new
	.p2align	4, 0x90
_ub_event_new:                          ## @ub_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r13
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movswl	%r14w, %edi
	callq	_NATIVE_BITS
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_NATIVE_BITS_CB
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	movq	%r15, %r8
	callq	_event_set
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_AS_EVENT_BASE
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_event_base_set
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	callq	_free
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AS_UB_EVENT                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ub_event_new                   ; -- Begin function ub_event_new
	.p2align	2
_ub_event_new:                          ; @ub_event_new
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x4
	mov	x23, x3
	mov	x24, x2
	mov	x22, x1
	mov	x20, x0
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, x24
	bl	_NATIVE_BITS
	mov	x24, x0
	mov	x0, x23
	bl	_NATIVE_BITS_CB
	mov	x3, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x24
	mov	x4, x21
	bl	_event_set
	mov	x0, x20
	bl	_AS_EVENT_BASE
	mov	x1, x19
	bl	_event_base_set
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_free
LBB0_3:
	mov	x0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AS_UB_EVENT
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
