	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function concat_write_oob
_concat_write_oob:                      ## @concat_write_oob
	.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
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_CONCAT
	movq	%rax, %r14
	movups	(%r12), %xmm0
	movups	16(%r12), %xmm1
	movups	32(%r12), %xmm2
	movaps	%xmm2, -64(%rbp)
	movaps	%xmm1, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movq	_MTD_WRITEABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_16
## %bb.1:
	movq	$0, (%r12)
	cmpl	$0, (%r14)
	jle	LBB0_15
## %bb.2:
	xorl	%ebx, %ebx
	leaq	-96(%rbp), %r15
	movq	%r13, %rax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	(%r14), %rcx
	movq	%rax, %r13
	cmpq	%rcx, %rbx
	jge	LBB0_15
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rcx
	movq	(%rcx,%rbx,8), %rdi
	movq	8(%rdi), %rcx
	subq	%rcx, %rax
	jge	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-88(%rbp), %rax
	addq	%r13, %rax
	cmpq	%rcx, %rax
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	subq	%r13, %rcx
	movq	%rcx, -88(%rbp)
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	*16(%rdi)
	movq	-96(%rbp), %rcx
	movq	(%r12), %rdx
	addq	%rcx, %rdx
	movq	%rdx, (%r12)
	testl	%eax, %eax
	jne	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r12), %rsi
	subq	%rdx, %rsi
	movq	%rsi, -88(%rbp)
	je	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	addq	%rcx, %rax
	movq	%rax, -80(%rbp)
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	40(%r12), %rcx
	subq	24(%r12), %rcx
	movq	%rcx, -56(%rbp)
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	addq	-72(%rbp), %rax
	movq	%rax, -64(%rbp)
	jmp	LBB0_3
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_16:
	movq	_EROFS@GOTPCREL(%rip), %rcx
LBB0_17:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	xorl	%eax, %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_MTD_WRITEABLE,4,2              ## @MTD_WRITEABLE
	.comm	_EROFS,4,2                      ## @EROFS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_concat_write_oob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function concat_write_oob
_concat_write_oob:                      ; @concat_write_oob
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x21, x1
	mov	x22, x0
	bl	_CONCAT
	ldp	q0, q1, [x19]
	stp	q0, q1, [sp]
	ldr	q0, [x19, #32]
	str	q0, [sp, #32]
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _MTD_WRITEABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MTD_WRITEABLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.1:
	mov	x20, x0
	str	xzr, [x19]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.2:
	mov	x22, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, x9
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.ge	LBB0_16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x22, lsl #3]
	ldr	x8, [x0, #8]
	subs	x9, x21, x8
	b.ge	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [sp, #8]
	add	x9, x9, x21
	cmp	x9, x8
	b.le	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x8, x8, x21
	str	x8, [sp, #8]
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x0, #16]
	mov	x2, sp
	mov	x1, x21
	blr	x8
	ldr	x8, [sp]
	ldr	x9, [x19]
	add	x9, x9, x8
	str	x9, [x19]
	cbnz	w0, LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [sp, #16]
	cbz	x10, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x19, #8]
	subs	x9, x11, x9
	str	x9, [sp, #8]
	b.eq	LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x10, x8
	str	x8, [sp, #16]
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #40]
	ldr	x10, [x19, #24]
	subs	x9, x9, x10
	str	x9, [sp, #40]
	b.eq	LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, #0
	ldr	x9, [sp, #24]
	add	x8, x9, x8
	str	x8, [sp, #32]
	b	LBB0_4
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, #0
	b	LBB0_4
LBB0_16:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh5:
	adrp	x8, _EROFS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EROFS@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_20:
	mov	w0, #0
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MTD_WRITEABLE,4,2              ; @MTD_WRITEABLE
	.comm	_EROFS,4,2                      ; @EROFS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_concat_write_oob
.subsections_via_symbols
