	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zend_check_trait_usage
_zend_check_trait_usage:                ## @zend_check_trait_usage
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	(%rsi), %eax
	movq	_ZEND_ACC_TRAIT@GOTPCREL(%rip), %rcx
	notl	%eax
	xorl	%edi, %edi
	andl	(%rcx), %eax
	setne	%dil
	callq	_UNEXPECTED
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	_E_COMPILE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	16(%r12), %edi
	callq	_ZSTR_VAL
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_zend_error_noreturn
	jmp	LBB0_6
LBB0_1:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, (%r15,%rbx,8)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_3
LBB0_5:
	movq	_E_COMPILE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	16(%r12), %edi
	callq	_ZSTR_VAL
	movl	%eax, %r12d
	movl	16(%r14), %edi
	callq	_ZSTR_VAL
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r15d, %edi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_zend_error_noreturn
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZEND_ACC_TRAIT,4,2             ## @ZEND_ACC_TRAIT
	.comm	_E_COMPILE_ERROR,4,2            ## @E_COMPILE_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Class %s is not a trait, Only traits may be used in 'as' and 'insteadof' statements"

L_.str.1:                               ## @.str.1
	.asciz	"Required Trait %s wasn't added to %s"

	.no_dead_strip	_zend_check_trait_usage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zend_check_trait_usage
_zend_check_trait_usage:                ; @zend_check_trait_usage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _ZEND_ACC_TRAIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ZEND_ACC_TRAIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	cset	w0, ne
	bl	_UNEXPECTED
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _E_COMPILE_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E_COMPILE_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	ldr	w0, [x20, #16]
	bl	_ZSTR_VAL
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	b	LBB0_7
LBB0_2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x0, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, x0, lsl #3]
	cmp	x9, x20
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x0, #1
	cmp	x8, x0
	b.ne	LBB0_4
LBB0_6:
Lloh8:
	adrp	x8, _E_COMPILE_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _E_COMPILE_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	ldr	w0, [x20, #16]
	bl	_ZSTR_VAL
	mov	x20, x0
	ldr	w0, [x19, #16]
	bl	_ZSTR_VAL
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x20
LBB0_7:
	bl	_zend_error_noreturn
	mov	x0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ZEND_ACC_TRAIT,4,2             ; @ZEND_ACC_TRAIT
	.comm	_E_COMPILE_ERROR,4,2            ; @E_COMPILE_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Class %s is not a trait, Only traits may be used in 'as' and 'insteadof' statements"

l_.str.1:                               ; @.str.1
	.asciz	"Required Trait %s wasn't added to %s"

	.no_dead_strip	_zend_check_trait_usage
.subsections_via_symbols
