	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_document                  ## -- Begin function copy_document
	.p2align	4, 0x90
_copy_document:                         ## @copy_document
	.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	%rsi, %r12
	movq	%rdi, %r14
	movl	32(%rsi), %esi
	movl	28(%r12), %edx
	movl	24(%r12), %ecx
	movl	16(%r12), %r9d
	movl	20(%r12), %r8d
	callq	_yaml_document_initialize
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_26
## %bb.1:
	movq	(%r12), %r13
	movq	8(%r12), %rax
	cmpq	%rax, %r13
	jb	LBB0_2
## %bb.12:
	cmpq	%rax, %r13
	jb	LBB0_13
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	48(%r13), %edx
	movl	72(%r13), %esi
	movq	%r14, %rdi
	callq	_yaml_document_add_sequence
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	je	LBB0_23
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$80, %r13
	movq	8(%r12), %rax
	cmpq	%rax, %r13
	jae	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$130, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %eax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	72(%r13), %esi
	movl	64(%r13), %edx
	movl	56(%r13), %r8d
	movl	60(%r13), %ecx
	movq	%r14, %rdi
	callq	_yaml_document_add_scalar
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%r13), %edx
	movl	72(%r13), %esi
	movq	%r14, %rdi
	callq	_yaml_document_add_mapping
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	callq	_assert
	jmp	LBB0_10
LBB0_11:
	movq	(%r12), %r13
	cmpq	%rax, %r13
	jb	LBB0_13
LBB0_25:
	movl	$1, %r15d
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_13 Depth=1
	addq	$80, %r13
	cmpq	8(%r12), %r13
	jae	LBB0_25
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
	movl	(%r13), %eax
	cmpl	$130, %eax
	je	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$128, %eax
	jne	LBB0_24
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	40(%r13), %rbx
	cmpq	32(%r13), %rbx
	jae	LBB0_24
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rax
	subq	(%r12), %rax
	shrq	$4, %rax
	imull	$-858993459, %eax, %esi         ## imm = 0xCCCCCCCD
	incl	%esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_yaml_document_append_sequence_item
	testl	%eax, %eax
	je	LBB0_23
## %bb.16:                              ##   in Loop: Header=BB0_18 Depth=2
	addq	$4, %rbx
	cmpq	32(%r13), %rbx
	jb	LBB0_18
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	16(%r13), %rbx
	cmpq	8(%r13), %rbx
	jae	LBB0_24
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rax
	subq	(%r12), %rax
	shrq	$4, %rax
	imull	$-858993459, %eax, %esi         ## imm = 0xCCCCCCCD
	incl	%esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	callq	_yaml_document_append_mapping_pair
	testl	%eax, %eax
	je	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_22 Depth=2
	addq	$8, %rbx
	cmpq	8(%r13), %rbx
	jb	LBB0_22
	jmp	LBB0_24
LBB0_23:
	movq	%r14, %rdi
	callq	_yaml_document_delete
LBB0_26:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_document                  ; -- Begin function copy_document
	.p2align	2
_copy_document:                         ; @copy_document
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	w1, [x1, #32]
	ldp	w3, w2, [x20, #24]
	ldp	w5, w4, [x20, #16]
	bl	_yaml_document_initialize
	cbz	w0, LBB0_26
; %bb.1:
	ldp	x21, x8, [x20]
	cmp	x21, x8
	b.lo	LBB0_5
; %bb.2:
	cmp	x21, x8
	b.hs	LBB0_25
	b	LBB0_13
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #0
	bl	_assert
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #80
	ldr	x8, [x20, #8]
	cmp	x21, x8
	b.hs	LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #130
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #129
	b.ne	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x21, #72]
	ldp	w3, w2, [x21, #60]
	ldr	w4, [x21, #56]
	mov	x0, x19
	bl	_yaml_document_add_scalar
	cbnz	w0, LBB0_4
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x21, #72]
	ldr	w2, [x21, #48]
	mov	x0, x19
	bl	_yaml_document_add_sequence
	cbnz	w0, LBB0_4
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x21, #72]
	ldr	w2, [x21, #24]
	mov	x0, x19
	bl	_yaml_document_add_mapping
	cbnz	w0, LBB0_4
LBB0_11:
	mov	x0, x19
	bl	_yaml_document_delete
	mov	w0, #0
	b	LBB0_26
LBB0_12:
	ldr	x21, [x20]
	cmp	x21, x8
	b.hs	LBB0_25
LBB0_13:
	mov	w22, #52429
	movk	w22, #52428, lsl #16
	orr	w23, wzr, #0x1
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x21, x21, #80
	ldr	x8, [x20, #8]
	cmp	x21, x8
	b.hs	LBB0_25
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
                                        ;     Child Loop BB0_22 Depth 2
	ldr	w8, [x21]
	cmp	w8, #130
	b.eq	LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	cmp	w8, #128
	b.ne	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x24, [x21, #40]
LBB0_18:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21, #32]
	cmp	x24, x8
	b.hs	LBB0_14
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	x8, [x20]
	sub	x8, x21, x8
	lsr	x8, x8, #4
	madd	w1, w8, w22, w23
	ldr	w2, [x24]
	mov	x0, x19
	bl	_yaml_document_append_sequence_item
	cbz	w0, LBB0_11
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=2
	add	x24, x24, #4
	b	LBB0_18
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x24, [x21, #16]
LBB0_22:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21, #8]
	cmp	x24, x8
	b.hs	LBB0_14
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=2
	ldr	x8, [x20]
	sub	x8, x21, x8
	lsr	x8, x8, #4
	madd	w1, w8, w22, w23
	ldp	w3, w2, [x24]
	mov	x0, x19
	bl	_yaml_document_append_mapping_pair
	cbz	w0, LBB0_11
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=2
	add	x24, x24, #8
	b	LBB0_22
LBB0_25:
	mov	w0, #1
LBB0_26:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
