	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function concat_write
_concat_write:                          ## @concat_write
	.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	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_CONCAT
	movq	%rax, %r8
	movq	_MTD_WRITEABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_1
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	xorl	%r15d, %r15d
	movq	$0, (%rbx)
	cmpl	$0, (%r8)
	jle	LBB0_12
## %bb.3:
	movq	%rbx, %rsi
	movq	%r13, %rcx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	leaq	(%rbx,%r14,4), %rbx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movslq	(%r8), %rdx
	movq	%rcx, %r13
	cmpq	%rdx, %r15
	jge	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r8), %rdx
	movq	(%rdx,%r15,8), %rdi
	movq	8(%rdi), %rdx
	subq	%rdx, %rcx
	jge	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r12,%r13), %rax
	movq	%rdx, %r14
	subq	%r13, %r14
	cmpq	%rdx, %rax
	cmovbeq	%r12, %r14
	movq	_MTD_WRITEABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rsi
	movq	%r14, %rdx
	leaq	-64(%rbp), %rcx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%r8, %r13
	movq	%rbx, %r8
	callq	*16(%rdi)
	movq	%r13, %r8
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_9
	jmp	LBB0_12
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	movq	_EROFS@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rcx
	addq	%rcx, (%rsi)
	subq	%r14, %r12
	jne	LBB0_10
	jmp	LBB0_12
LBB0_1:
	movq	_EROFS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MTD_WRITEABLE,4,2              ## @MTD_WRITEABLE
	.comm	_EROFS,4,2                      ## @EROFS
	.no_dead_strip	_concat_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function concat_write
_concat_write:                          ; @concat_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x24, x0
	bl	_CONCAT
	ldr	w8, [x24]
Lloh0:
	adrp	x25, _MTD_WRITEABLE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MTD_WRITEABLE@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.1:
	mov	x22, x0
Lloh2:
	adrp	x26, _EINVAL@GOTPAGE
Lloh3:
	ldr	x26, [x26, _EINVAL@GOTPAGEOFF]
	ldr	w8, [x26]
	neg	w0, w8
	str	xzr, [x20]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.2:
	mov	x27, #0
Lloh4:
	adrp	x28, _EROFS@GOTPAGE
Lloh5:
	ldr	x28, [x28, _EROFS@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, x10
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x22]
	cmp	x27, x8
	b.ge	LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	x8, [x8, x27, lsl #3]
	ldr	x9, [x8, #8]
	subs	x10, x23, x9
	b.ge	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x10, x9, x23
	add	x11, x23, x21
	cmp	x11, x9
	csel	x24, x10, x21, hi
	ldr	w9, [x8]
	ldr	w10, [x25]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x8, #16]
	add	x3, sp, #8
	mov	x0, x8
	mov	x1, x23
	mov	x2, x24
	mov	x4, x19
	blr	x9
	cbz	w0, LBB0_9
	b	LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x28]
	neg	w0, w8
	cbnz	w0, LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x20]
	add	x8, x9, x8
	str	x8, [x20]
	subs	x21, x21, x24
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, #0
	ldr	w8, [x26]
	neg	w0, w8
	add	x19, x19, x24, lsl #2
	b	LBB0_4
LBB0_11:
Lloh6:
	adrp	x8, _EROFS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EROFS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MTD_WRITEABLE,4,2              ; @MTD_WRITEABLE
	.comm	_EROFS,4,2                      ; @EROFS
	.no_dead_strip	_concat_write
.subsections_via_symbols
