	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function concat_xxlock
_concat_xxlock:                         ## @concat_xxlock
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r13
	callq	_CONCAT
	movq	%rax, %r15
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	subl	(%rcx), %eax
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.1:
	movq	%r13, %rdx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	%ecx, %rsi
	movq	%rdx, %r13
	cmpq	%rsi, %r14
	jge	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rsi
	movq	(%rsi,%r14,8), %rdi
	movq	(%rdi), %rsi
	subq	%rsi, %rdx
	jge	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r12,%r13), %rax
	movq	%rsi, %rbx
	subq	%r13, %rbx
	cmpq	%rsi, %rax
	cmovleq	%r12, %rbx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_mtd_lock
	testl	%eax, %eax
	je	LBB0_7
	jmp	LBB0_10
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_mtd_unlock
	testl	%eax, %eax
	jne	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	subq	%rbx, %r12
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movl	(%r15), %ecx
	xorl	%edx, %edx
	jmp	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_concat_xxlock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function concat_xxlock
_concat_xxlock:                         ; @concat_xxlock
	.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, x3
	mov	x20, x2
	mov	x22, x1
	bl	_CONCAT
	mov	x21, x0
Lloh0:
	adrp	x24, _EINVAL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EINVAL@GOTPAGEOFF]
	ldr	w8, [x24]
	neg	w0, w8
	ldr	w9, [x21]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x25, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x10
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	cmp	x25, w9, sxtw
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x25, lsl #3]
	ldr	x11, [x8]
	subs	x10, x22, x11
	b.ge	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x9, x11, x22
	add	x10, x22, x20
	cmp	x10, x11
	csel	x23, x9, x20, gt
	mov	x0, x8
	mov	x1, x22
	mov	x2, x23
	cbz	w19, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_mtd_lock
	cbz	w0, LBB0_8
	b	LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_mtd_unlock
	cbnz	w0, LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	subs	x20, x20, x23
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, #0
	ldr	w8, [x24]
	neg	w0, w8
	ldr	w9, [x21]
	b	LBB0_3
LBB0_10:
	mov	w0, #0
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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_concat_xxlock
.subsections_via_symbols
