	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmem_shift_read_buffer_in_place
_nvmem_shift_read_buffer_in_place:      ## @nvmem_shift_read_buffer_in_place
	.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
	movq	%rdi, %r14
	movl	(%rdi), %r9d
	testl	%r9d, %r9d
	je	LBB0_4
## %bb.1:
	movl	(%rsi), %ebx
	movl	%r9d, %ecx
	sarl	%cl, %ebx
	movl	%ebx, (%rsi)
	movl	4(%r14), %r13d
	movq	%rsi, %r15
	cmpl	$2, %r13d
	jl	LBB0_5
## %bb.2:
	movl	$1, %edi
	movq	_BITS_PER_BYTE@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	4(%rsi), %r15
	movl	4(%rsi), %eax
	movl	(%r8), %ecx
	subl	%r9d, %ecx
	movl	%eax, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%ebx, %edx
	movl	%edx, (%rsi)
	movl	%r9d, %ecx
	sarl	%cl, %eax
	movl	%eax, 4(%rsi)
	incl	%edi
	movl	4(%r14), %r13d
	movq	%r15, %rsi
	movl	%eax, %ebx
	cmpl	%r13d, %edi
	jl	LBB0_3
	jmp	LBB0_5
LBB0_4:
	movslq	4(%r14), %r13
	leaq	(%rsi,%r13,4), %r15
	addq	$-4, %r15
LBB0_5:
	movl	8(%r14), %edi
	movq	_BITS_PER_BYTE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_DIV_ROUND_UP
	cmpl	%eax, %r13d
	jle	LBB0_7
## %bb.6:
	notl	%eax
	addl	%eax, %r13d
	leaq	(,%r13,4), %rax
	movq	%r15, %rdi
	subq	%rax, %rdi
	leaq	4(,%r13,4), %rsi
	callq	___bzero
	notq	%r13
	leaq	(%r15,%r13,4), %r15
LBB0_7:
	movl	8(%r14), %eax
	cltd
	idivl	(%r12)
                                        ## kill: def $edx killed $edx def $rdx
	leal	-1(%rdx), %edi
	xorl	%esi, %esi
	callq	_GENMASK
	andl	%eax, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BITS_PER_BYTE,4,2              ## @BITS_PER_BYTE
	.no_dead_strip	_nvmem_shift_read_buffer_in_place
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmem_shift_read_buffer_in_place
_nvmem_shift_read_buffer_in_place:      ; @nvmem_shift_read_buffer_in_place
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x21, _BITS_PER_BYTE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BITS_PER_BYTE@GOTPAGEOFF]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	w9, [x19]
	asr	w9, w9, w8
	str	w9, [x19]
	ldr	w22, [x20, #4]
	cmp	w22, #2
	b.lt	LBB0_6
; %bb.2:
	mov	w11, #1
	mov	x10, x19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10, #4]!
	ldr	w13, [x21]
	sub	w13, w13, w8
	lsl	w13, w12, w13
	orr	w9, w13, w9
	str	w9, [x19]
	asr	w9, w12, w8
	str	w9, [x10]
	add	w11, w11, #1
	ldr	w22, [x20, #4]
	mov	x19, x10
	cmp	w11, w22
	b.lt	LBB0_3
; %bb.4:
	mov	x19, x10
	b	LBB0_6
LBB0_5:
	ldr	w22, [x20, #4]
	sub	w8, w22, #1
	add	x19, x19, w8, sxtw #2
LBB0_6:
	ldr	w0, [x20, #8]
	ldr	w1, [x21]
	bl	_DIV_ROUND_UP
	cmp	w22, w0
	b.le	LBB0_8
; %bb.7:
	mvn	w8, w0
	add	w22, w22, w8
	lsl	x8, x22, #2
	sub	x0, x19, x8
	add	x1, x8, #4
	bl	_bzero
	mvn	x8, x22
	add	x19, x19, x8, lsl #2
LBB0_8:
	ldr	w8, [x20, #8]
	ldr	w9, [x21]
	sdiv	w10, w8, w9
	mul	w9, w10, w9
	mvn	w9, w9
	add	w0, w9, w8
	mov	w1, #0
	bl	_GENMASK
	ldr	w8, [x19]
	and	w8, w8, w0
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BITS_PER_BYTE,4,2              ; @BITS_PER_BYTE
	.no_dead_strip	_nvmem_shift_read_buffer_in_place
.subsections_via_symbols
