	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function schema_attribute_fixup
_schema_attribute_fixup:                ## @schema_attribute_fixup
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rsi), %rsi
	testq	%rsi, %rsi
	je	LBB0_26
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.2:
	callq	_schema_find_by_ref
	testq	%rax, %rax
	je	LBB0_22
## %bb.3:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_schema_attribute_fixup
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	cmpq	$0, 8(%r15)
	jne	LBB0_6
## %bb.5:
	callq	_estrdup
	movq	%rax, 8(%r15)
LBB0_6:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:
	cmpq	$0, 16(%r15)
	jne	LBB0_9
## %bb.8:
	callq	_estrdup
	movq	%rax, 16(%r15)
LBB0_9:
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.10:
	cmpq	$0, 24(%r15)
	jne	LBB0_12
## %bb.11:
	callq	_estrdup
	movq	%rax, 24(%r15)
LBB0_12:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.13:
	cmpq	$0, 32(%r15)
	jne	LBB0_15
## %bb.14:
	callq	_estrdup
	movq	%rax, 32(%r15)
LBB0_15:
	movl	60(%r15), %eax
	movq	_XSD_FORM_DEFAULT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.16:
	movl	60(%r14), %eax
	movl	%eax, 60(%r15)
LBB0_17:
	movl	56(%r15), %eax
	movq	_XSD_USE_DEFAULT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.18:
	movl	56(%r14), %eax
	movl	%eax, 56(%r15)
LBB0_19:
	cmpq	$0, 48(%r14)
	je	LBB0_21
## %bb.20:
	movl	$4, %edi
	callq	_emalloc
	movq	%rax, %rbx
	movq	%rax, 48(%r15)
	movq	48(%r14), %rdi
	callq	_zend_hash_num_elements
	movq	_delete_extra_attribute@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_zend_hash_init
	movq	48(%r15), %rdi
	movq	48(%r14), %rsi
	movq	_copy_extra_attribute@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_zend_hash_copy
LBB0_21:
	movl	40(%r14), %eax
	movl	%eax, 40(%r15)
LBB0_22:
	cmpq	$0, 8(%r15)
	jne	LBB0_25
## %bb.23:
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_25
## %bb.24:
	movq	%rbx, %rdi
	movl	$58, %esi
	callq	_strrchr
	leaq	1(%rax), %rdi
	testq	%rax, %rax
	cmoveq	%rbx, %rdi
	callq	_estrdup
	movq	%rax, 8(%r15)
LBB0_25:
	movq	(%r15), %rdi
	callq	_efree
	movq	$0, (%r15)
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XSD_FORM_DEFAULT,4,2           ## @XSD_FORM_DEFAULT
	.comm	_XSD_USE_DEFAULT,4,2            ## @XSD_USE_DEFAULT
	.comm	_delete_extra_attribute,4,2     ## @delete_extra_attribute
	.comm	_copy_extra_attribute,4,2       ## @copy_extra_attribute
	.no_dead_strip	_schema_attribute_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function schema_attribute_fixup
_schema_attribute_fixup:                ; @schema_attribute_fixup
	.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
	mov	x19, x1
	ldr	x1, [x1]
	cbz	x1, LBB0_26
; %bb.1:
	mov	x21, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_22
; %bb.2:
	bl	_schema_find_by_ref
	cbz	x0, LBB0_22
; %bb.3:
	mov	x20, x0
	mov	x0, x21
	mov	x1, x20
	bl	_schema_attribute_fixup
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_6
; %bb.5:
	bl	_estrdup
	str	x0, [x19, #8]
LBB0_6:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_9
; %bb.8:
	bl	_estrdup
	str	x0, [x19, #16]
LBB0_9:
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_12
; %bb.11:
	bl	_estrdup
	str	x0, [x19, #24]
LBB0_12:
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_15
; %bb.13:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_15
; %bb.14:
	bl	_estrdup
	str	x0, [x19, #32]
LBB0_15:
	ldr	w8, [x19, #60]
Lloh0:
	adrp	x9, _XSD_FORM_DEFAULT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XSD_FORM_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.16:
	ldr	w8, [x20, #60]
	str	w8, [x19, #60]
LBB0_17:
	ldr	w8, [x19, #56]
Lloh3:
	adrp	x9, _XSD_USE_DEFAULT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XSD_USE_DEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.18:
	ldr	w8, [x20, #56]
	str	w8, [x19, #56]
LBB0_19:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_21
; %bb.20:
	mov	w0, #4
	bl	_emalloc
	mov	x21, x0
	str	x0, [x19, #48]
	ldr	x0, [x20, #48]
	bl	_zend_hash_num_elements
	mov	x1, x0
Lloh6:
	adrp	x8, _delete_extra_attribute@GOTPAGE
Lloh7:
	ldr	x8, [x8, _delete_extra_attribute@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x2, #0
	mov	w4, #0
	bl	_zend_hash_init
	ldr	x0, [x19, #48]
	ldr	x1, [x20, #48]
Lloh9:
	adrp	x8, _copy_extra_attribute@GOTPAGE
Lloh10:
	ldr	x8, [x8, _copy_extra_attribute@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_zend_hash_copy
LBB0_21:
	ldr	w8, [x20, #40]
	str	w8, [x19, #40]
LBB0_22:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_25
; %bb.23:
	ldr	x20, [x19]
	cbz	x20, LBB0_25
; %bb.24:
	mov	x0, x20
	mov	w1, #58
	bl	_strrchr
	cmp	x0, #0
	csinc	x0, x20, x0, eq
	bl	_estrdup
	str	x0, [x19, #8]
LBB0_25:
	ldr	x0, [x19]
	bl	_efree
	str	xzr, [x19]
LBB0_26:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_XSD_FORM_DEFAULT,4,2           ; @XSD_FORM_DEFAULT
	.comm	_XSD_USE_DEFAULT,4,2            ; @XSD_USE_DEFAULT
	.comm	_delete_extra_attribute,4,2     ; @delete_extra_attribute
	.comm	_copy_extra_attribute,4,2       ; @copy_extra_attribute
	.no_dead_strip	_schema_attribute_fixup
.subsections_via_symbols
