	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xdl_fill_merge_buffer
_xdl_fill_merge_buffer:                 ## @xdl_fill_merge_buffer
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	24(%rbp), %r14
	movq	16(%rbp), %r12
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movl	%r13d, %r9d
	movl	40(%rbp), %ebx
	pushq	%rbx
	pushq	%r14
	pushq	%r12
	movl	32(%rbp), %ebx
	pushq	%rbx
	pushq	%rax
	callq	_fill_conflict_hunk
	addq	$48, %rsp
	movl	%eax, %r15d
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r12), %eax
	addl	4(%r12), %eax
	movl	%r15d, %r13d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r12), %r12
	testq	%r12, %r12
	je	LBB0_15
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %ecx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%ecx, %ecx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%r12)
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%ecx, %ecx
	je	LBB0_12
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	testb	$3, %cl
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r12), %edx
	subl	%eax, %edx
	movslq	%r13d, %r9
	addq	%r14, %r9
	testq	%r14, %r14
	cmoveq	%r14, %r9
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_xdl_recs_copy
	movq	%rax, %r15
	addl	%r13d, %r15d
	movl	(%r12), %eax
	testb	$1, %al
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_is_cr_needed
	movl	(%r12), %r8d
	movl	4(%r12), %esi
	andl	$2, %r8d
	movslq	%r15d, %r15
	leaq	(%r14,%r15), %r9
	testq	%r14, %r14
	movl	8(%r12), %edx
	cmoveq	%r14, %r9
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_xdl_recs_copy
	addl	%eax, %r15d
	movl	(%r12), %eax
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	testb	$2, %al
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r15d, %r15
	leaq	(%r14,%r15), %r9
	testq	%r14, %r14
	movl	12(%r12), %esi
	movl	16(%r12), %edx
	cmoveq	%r14, %r9
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_xdl_recs_copy
	addl	%eax, %r15d
	jmp	LBB0_13
LBB0_1:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
LBB0_15:
	movl	(%rbx), %edx
	subl	%eax, %edx
	movslq	%r13d, %r15
	leaq	(%r14,%r15), %r9
	testq	%r14, %r14
	cmoveq	%r14, %r9
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_xdl_recs_copy
	addl	%r15d, %eax
                                        ## kill: def $eax killed $eax killed $rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xdl_fill_merge_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xdl_fill_merge_buffer
_xdl_fill_merge_buffer:                 ; @xdl_fill_merge_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	mov	x20, x0
	cbz	x6, LBB0_14
; %bb.1:
	mov	x22, x6
	mov	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x26, x2
	mov	x27, x1
	mov	w6, #0
	mov	w21, #0
	ldr	w8, [x29, #20]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	ldr	w28, [x29, #16]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	str	w8, [sp, #16]
	stp	x22, x19, [sp]
	mov	x0, x20
	mov	x1, x27
	mov	x2, x26
	mov	x3, x25
	mov	x4, x24
	mov	x5, x21
	mov	x7, x28
	bl	_fill_conflict_hunk
	mov	x21, x0
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldp	w8, w9, [x22, #4]
	add	w6, w9, w8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x22, [x22, #24]
	cbz	x22, LBB0_15
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	cbz	w23, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w8, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w23, [x22]
	mov	x8, x23
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w8, LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	tst	w8, #0x3
	b.eq	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x22, #4]
	sub	w2, w8, w6
	add	x8, x19, w21, sxtw
	cmp	x19, #0
	csel	x5, xzr, x8, eq
	mov	x0, x20
	mov	x1, x6
	mov	w3, #0
	mov	w4, #0
	bl	_xdl_recs_copy
	add	w21, w21, w0
	ldr	w8, [x22]
	tbz	w8, #0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x26
	mov	x2, x22
	bl	_is_cr_needed
	mov	x3, x0
	ldp	w1, w2, [x22, #4]
	ldr	w8, [x22]
	and	w4, w8, #0x2
	add	x8, x19, w21, sxtw
	cmp	x19, #0
	csel	x5, xzr, x8, eq
	mov	x0, x20
	bl	_xdl_recs_copy
	add	w21, w21, w0
	ldr	w8, [x22]
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	tbz	w8, #1, LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldp	w1, w2, [x22, #12]
	add	x8, x19, w21, sxtw
	cmp	x19, #0
	csel	x5, xzr, x8, eq
	mov	x0, x26
	mov	w3, #0
	mov	w4, #0
	bl	_xdl_recs_copy
	add	w21, w21, w0
	b	LBB0_3
LBB0_14:
	mov	w21, #0
LBB0_15:
	ldr	w8, [x20]
	sub	w2, w8, w6
	add	x8, x19, w21, sxtw
	cmp	x19, #0
	csel	x5, xzr, x8, eq
	mov	x0, x20
	mov	x1, x6
	mov	w3, #0
	mov	w4, #0
	bl	_xdl_recs_copy
	add	w0, w21, w0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_xdl_fill_merge_buffer
.subsections_via_symbols
