	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function layout
_layout:                                ## @layout
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	$0, (%rsi)
	movq	16(%rdi), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movq	(%r14), %rsi
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdi
	movslq	%edx, %rbx
	cmpq	%rbx, %rdi
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdi,4), %ebx
	cmpl	%ebx, %ecx
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, (%r12)
	movl	(%rax), %edx
	movl	%ebx, %ecx
	jmp	LBB0_5
LBB0_1:
	xorl	%ecx, %ecx
LBB0_6:
	addl	40(%r14), %ecx
	movl	%ecx, (%r12)
	movl	32(%r14), %r15d
	movl	36(%r14), %edi
	callq	_strlen
	subl	%eax, %r15d
	movl	%r15d, %eax
	cltd
	idivl	(%r12)
	testl	%eax, %eax
	movl	$1, %esi
	cmovnel	%eax, %esi
	movl	%esi, 8(%r14)
	movq	16(%r14), %rax
	movl	(%rax), %edi
	callq	_DIV_ROUND_UP
	movl	%eax, 24(%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_layout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function layout
_layout:                                ; @layout
	.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	x20, x1
	mov	x19, x0
	str	wzr, [x1]
	ldr	x8, [x0, #16]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w11, #0
	mov	x10, #0
	ldr	x12, [x19]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	cmp	x10, w9, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12, x10, lsl #2]
	cmp	w11, w13
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w13, [x20]
	ldr	w9, [x8]
	mov	x11, x13
	b	LBB0_2
LBB0_5:
	mov	w11, #0
LBB0_6:
	ldr	w8, [x19, #40]
	add	w8, w11, w8
	str	w8, [x20]
	ldp	w21, w0, [x19, #32]
	bl	_strlen
	sub	w8, w21, w0
	ldr	w9, [x20]
	sdiv	w8, w8, w9
	cmp	w8, #0
	csinc	w1, w8, wzr, ne
	str	w1, [x19, #8]
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_DIV_ROUND_UP
	str	w0, [x19, #24]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_layout
.subsections_via_symbols
