	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xdl_append_merge
_xdl_append_merge:                      ## @xdl_append_merge
	.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	%r9, %r15
	movq	%r8, %r14
	movq	%rcx, %rbx
	movq	%rdi, %r12
	movq	24(%rbp), %r13
	movq	16(%rbp), %r8
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	(%rax), %rcx
	movq	8(%rax), %rdi
	addq	%rcx, %rdi
	cmpq	%r14, %rdi
	jge	LBB0_3
## %bb.2:
	movq	24(%rax), %rdi
	addq	16(%rax), %rdi
	cmpq	%r8, %rdi
	jge	LBB0_3
LBB0_6:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	$64, %edi
	callq	_xdl_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	$0, 56(%rax)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 32(%rax)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 48(%rax)
	movq	%rbx, 40(%rax)
	movq	%r14, (%rax)
	movq	%r15, 8(%rax)
	movq	16(%rbp), %rcx
	movq	%rcx, 16(%rax)
	movq	%r13, 24(%rax)
	movq	(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.9:
	movq	%rax, 56(%rcx)
LBB0_10:
	movq	%rax, (%r12)
	jmp	LBB0_11
LBB0_3:
	cmpl	%esi, 32(%rax)
	je	LBB0_5
## %bb.4:
	movl	$0, 32(%rax)
LBB0_5:
	addq	%rdx, %rbx
	subq	48(%rax), %rbx
	movq	%rbx, 40(%rax)
	addq	%r14, %r15
	subq	%rcx, %r15
	movq	%r15, 8(%rax)
	addq	%r8, %r13
	subq	16(%rax), %r13
	movq	%r13, 24(%rax)
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$-1, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xdl_append_merge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xdl_append_merge
_xdl_append_merge:                      ; @xdl_append_merge
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x25, x2
	mov	x26, x1
	mov	x24, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	ldp	x9, x10, [x8]
	add	x10, x10, x9
	cmp	x10, x22
	b.ge	LBB0_7
; %bb.2:
	ldp	x10, x11, [x8, #16]
	add	x10, x11, x10
	cmp	x10, x20
	b.ge	LBB0_7
LBB0_3:
	mov	w0, #64
	bl	_xdl_malloc
	cbz	x0, LBB0_10
; %bb.4:
	mov	x8, x0
	stp	x25, xzr, [x0, #48]
	str	w26, [x0, #32]
	str	x23, [x0, #40]
	stp	x22, x21, [x0]
	stp	x20, x19, [x0, #16]
	ldr	x9, [x24]
	cbz	x9, LBB0_6
; %bb.5:
	str	x8, [x9, #56]
LBB0_6:
	mov	w0, #0
	str	x8, [x24]
	b	LBB0_11
LBB0_7:
	ldr	w10, [x8, #32]
	cmp	w10, w26
	b.eq	LBB0_9
; %bb.8:
	str	wzr, [x8, #32]
LBB0_9:
	mov	w0, #0
	ldr	x10, [x8, #48]
	add	x11, x23, x25
	sub	x10, x11, x10
	str	x10, [x8, #40]
	add	x10, x21, x22
	sub	x9, x10, x9
	str	x9, [x8, #8]
	ldr	x9, [x8, #16]
	add	x10, x19, x20
	sub	x9, x10, x9
	str	x9, [x8, #24]
	b	LBB0_11
LBB0_10:
	mov	w0, #-1
LBB0_11:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_xdl_append_merge
.subsections_via_symbols
