	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_php_com_object_enable_event_sink ## -- Begin function php_com_object_enable_event_sink
	.p2align	4, 0x90
_php_com_object_enable_event_sink:      ## @php_com_object_enable_event_sink
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, 8(%rdi)
	je	LBB0_8
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	addq	$20, %rdi
	callq	_V_DISPATCH
	movq	_IID_IConnectionPointContainer@GOTPCREL(%rip), %rsi
	leaq	-32(%rbp), %rdx
	movl	%eax, %edi
	callq	_IDispatch_QueryInterface
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	-32(%rbp), %rdi
	leaq	16(%rbx), %rsi
	leaq	-24(%rbp), %rdx
	callq	_IConnectionPointContainer_FindConnectionPoint
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	-24(%rbp), %rdi
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:
	movq	8(%rbx), %rsi
	movq	%rbx, %rdx
	callq	_IConnectionPoint_Advise
	jmp	LBB0_6
LBB0_5:
	movl	(%rbx), %esi
	callq	_IConnectionPoint_Unadvise
LBB0_6:
	movq	-24(%rbp), %rdi
	callq	_IConnectionPoint_Release
LBB0_7:
	movq	-32(%rbp), %rdi
	callq	_IConnectionPointContainer_Release
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IID_IConnectionPointContainer,4,2 ## @IID_IConnectionPointContainer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_php_com_object_enable_event_sink ; -- Begin function php_com_object_enable_event_sink
	.p2align	2
_php_com_object_enable_event_sink:      ; @php_com_object_enable_event_sink
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	add	x0, x0, #20
	bl	_V_DISPATCH
Lloh0:
	adrp	x1, _IID_IConnectionPointContainer@GOTPAGE
Lloh1:
	ldr	x1, [x1, _IID_IConnectionPointContainer@GOTPAGEOFF]
	add	x2, sp, #8
	bl	_IDispatch_QueryInterface
	bl	_SUCCEEDED
	cbz	x0, LBB0_8
; %bb.2:
	ldr	x0, [sp, #8]
	add	x1, x19, #16
	mov	x2, sp
	bl	_IConnectionPointContainer_FindConnectionPoint
	bl	_SUCCEEDED
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x0, [sp]
	cbz	w20, LBB0_5
; %bb.4:
	ldr	x1, [x19, #8]
	mov	x2, x19
	bl	_IConnectionPoint_Advise
	b	LBB0_6
LBB0_5:
	ldr	w1, [x19]
	bl	_IConnectionPoint_Unadvise
LBB0_6:
	ldr	x0, [sp]
	bl	_IConnectionPoint_Release
LBB0_7:
	ldr	x0, [sp, #8]
	bl	_IConnectionPointContainer_Release
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IID_IConnectionPointContainer,4,2 ; @IID_IConnectionPointContainer
.subsections_via_symbols
