	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function allocate_socketevent
_allocate_socketevent:                  ## @allocate_socketevent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rcx, %r8
	movl	%edx, %ecx
	movl	%esi, %edx
	movq	%rdi, %rsi
	movq	(%rdi), %rax
	movl	(%rax), %edi
	movl	$48, %r9d
	callq	_isc_event_allocate
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_ISC_R_IOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_ev_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ISC_LINK_INIT
	movl	40(%rbx), %edi
	callq	_ISC_LIST_INIT
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movups	%xmm0, 24(%rbx)
	movl	(%rbx), %eax
	movl	%eax, 4(%rbx)
	movq	_destroy_socketevent@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISC_R_IOERROR,4,2              ## @ISC_R_IOERROR
	.comm	_ev_link,4,2                    ## @ev_link
	.comm	_destroy_socketevent,4,2        ## @destroy_socketevent
	.no_dead_strip	_allocate_socketevent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function allocate_socketevent
_allocate_socketevent:                  ; @allocate_socketevent
	.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
	mov	x4, x3
	mov	x3, x2
	mov	x2, x1
	mov	x1, x0
	ldr	x8, [x0]
	ldr	w0, [x8]
	mov	w5, #48
	bl	_isc_event_allocate
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ISC_R_IOERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISC_R_IOERROR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #44]
Lloh3:
	adrp	x8, _ev_link@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ev_link@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ISC_LINK_INIT
	ldr	w0, [x19, #40]
	bl	_ISC_LIST_INIT
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #8]
	stur	q0, [x19, #24]
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _destroy_socketevent@GOTPAGE
Lloh7:
	ldr	x9, [x9, _destroy_socketevent@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ISC_R_IOERROR,4,2              ; @ISC_R_IOERROR
	.comm	_ev_link,4,2                    ; @ev_link
	.comm	_destroy_socketevent,4,2        ; @destroy_socketevent
	.no_dead_strip	_allocate_socketevent
.subsections_via_symbols
