	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zend_do_bind_traits
_zend_do_bind_traits:                   ## @zend_do_bind_traits
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	setg	%dil
	callq	_ZEND_ASSERT
	movl	(%r14), %edi
	shll	$3, %edi
	callq	_emalloc
	movq	%rax, %r15
	cmpq	$0, (%r14)
	je	LBB0_11
## %bb.1:
	xorl	%ebx, %ebx
	movq	_ZEND_FETCH_CLASS_TRAIT@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, (%r15,%rbx,8)
	incq	%rbx
	cmpq	(%r14), %rbx
	jae	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	16(%r14), %rax
	movl	(%rax,%rbx,8), %esi
	movl	4(%rax,%rbx,8), %edi
	movl	(%r13), %edx
	callq	_zend_fetch_class_by_name
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_UNEXPECTED
	testq	%rax, %rax
	jne	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ZEND_ACC_TRAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	8(%r12), %eax
	sete	%dil
	callq	_UNEXPECTED
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r12, (%r15,%rax,8)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=2
	incq	%rax
	cmpq	%rax, %rbx
	jne	LBB0_8
	jmp	LBB0_10
LBB0_11:
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_zend_traits_init_trait_structures
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_zend_do_traits_method_binding
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_zend_do_check_for_inconsistent_traits_aliasing
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_efree
LBB0_13:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_efree
LBB0_15:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_zend_do_traits_property_binding
	movq	%r15, %rdi
	callq	_efree
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_E_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	12(%r14), %edi
	callq	_ZSTR_VAL
	movl	%eax, %r14d
	movl	12(%r12), %edi
	callq	_ZSTR_VAL
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_zend_error_noreturn            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ZEND_FETCH_CLASS_TRAIT,4,2     ## @ZEND_FETCH_CLASS_TRAIT
	.comm	_ZEND_ACC_TRAIT,4,2             ## @ZEND_ACC_TRAIT
	.comm	_E_ERROR,4,2                    ## @E_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s cannot use %s - it is not a trait"

	.no_dead_strip	_zend_do_bind_traits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zend_do_bind_traits
_zend_do_bind_traits:                   ; @zend_do_bind_traits
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, gt
	bl	_ZEND_ASSERT
	ldr	w8, [x19]
	lsl	w0, w8, #3
	bl	_emalloc
	mov	x20, x0
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x22, #0
Lloh0:
	adrp	x23, _ZEND_FETCH_CLASS_TRAIT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ZEND_FETCH_CLASS_TRAIT@GOTPAGEOFF]
Lloh2:
	adrp	x24, _ZEND_ACC_TRAIT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ZEND_ACC_TRAIT@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x21, [x20, x22, lsl #3]
	add	x22, x22, #1
	ldr	x8, [x19]
	cmp	x22, x8
	b.hs	LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x8, [x19, #16]
	add	x8, x8, x22, lsl #3
	ldp	w1, w0, [x8]
	ldr	w2, [x23]
	bl	_zend_fetch_class_by_name
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_UNEXPECTED
	cbnz	x0, LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21, #8]
	ldr	w9, [x24]
	tst	w9, w8
	cset	w0, eq
	bl	_UNEXPECTED
	cbnz	x0, LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x22, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x20, x8, lsl #3]
	cmp	x9, x21
	b.eq	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x8, x8, #1
	cmp	x22, x8
	b.ne	LBB0_8
	b	LBB0_3
LBB0_10:
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x19
	mov	x1, x20
	bl	_zend_traits_init_trait_structures
	ldp	x3, x2, [sp]
	mov	x0, x19
	mov	x1, x20
	bl	_zend_do_traits_method_binding
	ldr	x1, [sp]
	mov	x0, x19
	bl	_zend_do_check_for_inconsistent_traits_aliasing
	ldr	x0, [sp]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_efree
LBB0_12:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_efree
LBB0_14:
	mov	x0, x19
	mov	x1, x20
	bl	_zend_do_traits_property_binding
	mov	x0, x20
	bl	_efree
LBB0_15:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_16:
Lloh4:
	adrp	x8, _E_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _E_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w20, [x8]
	ldr	w0, [x19, #12]
	bl	_ZSTR_VAL
	mov	x19, x0
	ldr	w0, [x21, #12]
	bl	_ZSTR_VAL
	mov	x3, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_zend_error_noreturn
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ZEND_FETCH_CLASS_TRAIT,4,2     ; @ZEND_FETCH_CLASS_TRAIT
	.comm	_ZEND_ACC_TRAIT,4,2             ; @ZEND_ACC_TRAIT
	.comm	_E_ERROR,4,2                    ; @E_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s cannot use %s - it is not a trait"

	.no_dead_strip	_zend_do_bind_traits
.subsections_via_symbols
