	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpcx_func_close                ## -- Begin function rpcx_func_close
	.p2align	4, 0x90
_rpcx_func_close:                       ## @rpcx_func_close
	.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
	callq	_RPCS_DATA
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_php_worker_terminate
	movq	%rbx, %rdi
	callq	_php_worker_main
	movq	$0, (%r14)
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_assert
	xorl	%eax, %eax
	callq	_has_pending_scripts
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_lease_ready_flag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_run_rpc_lease
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rpc connection close"

	.comm	_lease_ready_flag,4,2           ## @lease_ready_flag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpcx_func_close                ; -- Begin function rpcx_func_close
	.p2align	2
_rpcx_func_close:                       ; @rpcx_func_close
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	_RPCS_DATA
	ldr	x20, [x0]
	cbz	x20, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w21, #1
	mov	x0, x20
	mov	w1, #1
	bl	_php_worker_terminate
	mov	x0, x20
	bl	_php_worker_main
	str	xzr, [x19]
	cmp	w0, #1
	cset	w0, eq
	bl	_assert
	bl	_has_pending_scripts
	cbnz	w0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _lease_ready_flag@GOTPAGE
Lloh3:
	ldr	x8, [x8, _lease_ready_flag@GOTPAGEOFF]
Lloh4:
	str	w21, [x8]
	bl	_run_rpc_lease
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rpc connection close"

	.comm	_lease_ready_flag,4,2           ; @lease_ready_flag
.subsections_via_symbols
