	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mptscsih_copy_mem_info
_mptscsih_copy_mem_info:                ## @mptscsih_copy_mem_info
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	movq	8(%r14), %rax
	movslq	%edx, %rbx
	leaq	(%rdi,%rbx), %rcx
	movl	%eax, %edx
	subl	%edi, %edx
	cmpq	%rax, %rcx
	cmovgl	%edx, %ebx
	movslq	%ebx, %rcx
	addq	%rdi, %rcx
	movq	16(%r14), %rax
	cmpq	%rax, %rcx
	jl	LBB0_3
## %bb.1:
	xorl	%r8d, %r8d
	movq	%rax, %rcx
	subq	%rdi, %rcx
	movl	%ecx, %edx
	cmovlel	%r8d, %edx
	subl	%edx, %ebx
	testl	%ebx, %ebx
	jle	LBB0_4
## %bb.2:
	xorl	%edx, %edx
	cmpq	%rdi, %rax
	cmovgq	%rcx, %rdx
	addq	%rdx, %rsi
	addq	24(%r14), %rdi
	movl	%ebx, %edx
	callq	_memcpy
	movl	%ebx, %ecx
	addq	(%r14), %rcx
LBB0_3:
	movq	%rcx, (%r14)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mptscsih_copy_mem_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mptscsih_copy_mem_info
_mptscsih_copy_mem_info:                ; @mptscsih_copy_mem_info
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	x8, x9, [x0]
	add	x10, x8, w2, sxtw
	sub	w11, w9, w8
	cmp	x10, x9
	csel	w10, w11, w2, gt
	add	x11, x8, w10, sxtw
	ldr	x9, [x0, #16]
	cmp	x11, x9
	b.lt	LBB0_3
; %bb.1:
	subs	x11, x9, x8
	csel	w12, w11, wzr, gt
	sub	w20, w10, w12
	cmp	w20, #1
	b.lt	LBB0_4
; %bb.2:
	cmp	x9, x8
	csel	x9, x11, xzr, gt
	add	x1, x1, x9
	ldr	x9, [x19, #24]
	add	x0, x9, x8
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x19]
	add	x11, x8, w20, uxtw
LBB0_3:
	str	x11, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mptscsih_copy_mem_info
.subsections_via_symbols
