	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipoctal_copy_write_buffer
_ipoctal_copy_write_buffer:             ## @ipoctal_copy_write_buffer
	.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	%rsi, -48(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movl	%edx, %r13d
	leaq	8(%rdi), %r12
	xorl	%ebx, %ebx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	subl	4(%r15), %eax
	cmpq	%rax, %rbx
	ja	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movzbl	(%rax,%rbx), %eax
	movq	16(%r15), %rcx
	movl	(%r15), %edx
	movb	%al, (%rcx,%rdx)
	movl	(%r15), %eax
	incl	%eax
	xorl	%edx, %edx
	divl	(%r14)
	movl	%edx, (%r15)
	incl	4(%r15)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_3
## %bb.5:
	movl	%r13d, %ebx
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_ipoctal_copy_write_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipoctal_copy_write_buffer
_ipoctal_copy_write_buffer:             ; @ipoctal_copy_write_buffer
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cmp	w2, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	mov	x19, #0
	add	x22, x0, #8
Lloh0:
	adrp	x24, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PAGE_SIZE@GOTPAGEOFF]
	mov	w23, w2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	ldr	w9, [x21, #4]
	sub	w8, w8, w9
	cmp	x19, x8
	b.hi	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldrb	w8, [x20, x19]
	ldr	x9, [x21, #16]
	ldr	w10, [x21]
	strb	w8, [x9, x10]
	ldp	w8, w9, [x21]
	add	w8, w8, #1
	ldr	w10, [x24]
	udiv	w11, w8, w10
	msub	w8, w11, w10, w8
	add	w9, w9, #1
	stp	w8, w9, [x21]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	add	x19, x19, #1
	cmp	x23, x19
	b.ne	LBB0_2
; %bb.4:
	mov	x19, x23
	b	LBB0_6
LBB0_5:
	mov	w19, #0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_ipoctal_copy_write_buffer
.subsections_via_symbols
