	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zend_valid_closure_binding
_zend_valid_closure_binding:            ## @zend_valid_closure_binding
	.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	%rdx, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %r12d
	movq	_ZEND_ACC_FAKE_CLOSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	_ZEND_ACC_STATIC@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_21
LBB0_7:
	testl	%r12d, %r13d
	je	LBB0_11
## %bb.8:
	cmpq	$0, 16(%rbx)
	je	LBB0_14
## %bb.9:
	movq	_ZEND_ACC_STATIC@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_14
## %bb.10:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_21
LBB0_3:
	testl	%r12d, %r13d
	je	LBB0_14
## %bb.4:
	cmpq	$0, 16(%rbx)
	je	LBB0_14
## %bb.5:
	movq	%rsi, %r15
	movq	%rsi, %rdi
	callq	_Z_OBJCE_P
	movq	16(%rbx), %rsi
	movq	%rax, %rdi
	callq	_instanceof_function
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	16(%rbx), %rax
	movl	8(%rax), %edi
	callq	_ZSTR_VAL
	movl	%eax, %r12d
	movl	24(%rbx), %edi
	callq	_ZSTR_VAL
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_Z_OBJCE_P
	movl	(%rax), %edi
	callq	_ZSTR_VAL
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%r14d, %edi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_zend_error
	jmp	LBB0_22
LBB0_11:
	movl	(%rbx), %edi
	callq	_Z_ISUNDEF
	testl	%eax, %eax
	je	LBB0_12
LBB0_14:
	testq	%r14, %r14
	je	LBB0_18
## %bb.15:
	cmpq	%r14, 16(%rbx)
	je	LBB0_18
## %bb.16:
	movq	(%r14), %rax
	movq	_ZEND_INTERNAL_CLASS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.17:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	8(%r14), %edi
	callq	_ZSTR_VAL
	leaq	L_.str.4(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_zend_error
	jmp	LBB0_22
LBB0_18:
	movl	$1, %r15d
	testl	%r12d, %r13d
	je	LBB0_22
## %bb.19:
	cmpq	%r14, 16(%rbx)
	je	LBB0_22
## %bb.20:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
LBB0_21:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_zend_error
LBB0_22:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ZEND_ACC_USES_THIS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_14
## %bb.13:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_ZEND_ACC_FAKE_CLOSURE,4,2      ## @ZEND_ACC_FAKE_CLOSURE
	.comm	_ZEND_ACC_STATIC,4,2            ## @ZEND_ACC_STATIC
	.comm	_E_WARNING,4,2                  ## @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot bind an instance to a static closure"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot bind method %s::%s() to object of class %s"

L_.str.2:                               ## @.str.2
	.asciz	"Cannot unbind $this of method"

	.comm	_ZEND_ACC_USES_THIS,4,2         ## @ZEND_ACC_USES_THIS
L_.str.3:                               ## @.str.3
	.asciz	"Cannot unbind $this of closure using $this"

	.comm	_ZEND_INTERNAL_CLASS,8,3        ## @ZEND_INTERNAL_CLASS
L_.str.4:                               ## @.str.4
	.asciz	"Cannot bind closure to scope of internal class %s"

L_.str.5:                               ## @.str.5
	.asciz	"Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()"

	.no_dead_strip	_zend_valid_closure_binding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zend_valid_closure_binding
_zend_valid_closure_binding:            ; @zend_valid_closure_binding
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x19, x0
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _ZEND_ACC_FAKE_CLOSURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ZEND_ACC_FAKE_CLOSURE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w22, w9, w8
	cbz	x1, LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _ZEND_ACC_STATIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ZEND_ACC_STATIC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.2:
Lloh6:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_19
LBB0_3:
	cbz	w22, LBB0_11
; %bb.4:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_12
; %bb.5:
Lloh11:
	adrp	x9, _ZEND_ACC_STATIC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ZEND_ACC_STATIC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.6:
Lloh14:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_19
LBB0_7:
	cbz	w22, LBB0_12
; %bb.8:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_12
; %bb.9:
	mov	x21, x1
	mov	x0, x1
	bl	_Z_OBJCE_P
	ldr	x1, [x19, #16]
	bl	_instanceof_function
	cbnz	w0, LBB0_12
; %bb.10:
Lloh19:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh20:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #8]
	bl	_ZSTR_VAL
	mov	x22, x0
	ldr	w0, [x19, #24]
	bl	_ZSTR_VAL
	mov	x19, x0
	mov	x0, x21
	bl	_Z_OBJCE_P
	ldr	w0, [x0]
	bl	_ZSTR_VAL
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp, #8]
	str	x22, [sp]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	b	LBB0_19
LBB0_11:
	ldr	w0, [x19]
	bl	_Z_ISUNDEF
	cbz	w0, LBB0_22
LBB0_12:
	cbz	x20, LBB0_16
; %bb.13:
	ldr	x8, [x19, #16]
	cmp	x8, x20
	b.eq	LBB0_16
; %bb.14:
	ldr	x8, [x20]
Lloh24:
	adrp	x9, _ZEND_INTERNAL_CLASS@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ZEND_INTERNAL_CLASS@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
Lloh27:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh28:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh29:
	ldr	w19, [x8]
	ldr	w0, [x20, #8]
	bl	_ZSTR_VAL
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	b	LBB0_19
LBB0_16:
	cbz	w22, LBB0_20
; %bb.17:
	ldr	x8, [x19, #16]
	cmp	x8, x20
	b.eq	LBB0_20
; %bb.18:
Lloh32:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh33:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x1, l_.str.5@PAGE
Lloh36:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_19:
	bl	_zend_error
	mov	w0, #0
	b	LBB0_21
LBB0_20:
	mov	w0, #1
LBB0_21:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_22:
	ldr	w8, [x19, #8]
Lloh37:
	adrp	x9, _ZEND_ACC_USES_THIS@GOTPAGE
Lloh38:
	ldr	x9, [x9, _ZEND_ACC_USES_THIS@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.23:
Lloh40:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh41:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x1, l_.str.3@PAGE
Lloh44:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_ZEND_ACC_FAKE_CLOSURE,4,2      ; @ZEND_ACC_FAKE_CLOSURE
	.comm	_ZEND_ACC_STATIC,4,2            ; @ZEND_ACC_STATIC
	.comm	_E_WARNING,4,2                  ; @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot bind an instance to a static closure"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot bind method %s::%s() to object of class %s"

l_.str.2:                               ; @.str.2
	.asciz	"Cannot unbind $this of method"

	.comm	_ZEND_ACC_USES_THIS,4,2         ; @ZEND_ACC_USES_THIS
l_.str.3:                               ; @.str.3
	.asciz	"Cannot unbind $this of closure using $this"

	.comm	_ZEND_INTERNAL_CLASS,8,3        ; @ZEND_INTERNAL_CLASS
l_.str.4:                               ; @.str.4
	.asciz	"Cannot bind closure to scope of internal class %s"

l_.str.5:                               ; @.str.5
	.asciz	"Cannot rebind scope of closure created by ReflectionFunctionAbstract::getClosure()"

	.no_dead_strip	_zend_valid_closure_binding
.subsections_via_symbols
