	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ntpsnmpd_cut_string            ## -- Begin function ntpsnmpd_cut_string
	.p2align	4, 0x90
_ntpsnmpd_cut_string:                   ## @ntpsnmpd_cut_string
	.cfi_startproc
## %bb.0:
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movq	%rdi, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	callq	_strlen
	movq	%rax, %r15
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_memset
	testq	%r15, %r15
	je	LBB0_3
## %bb.4:
	testl	%ebx, %ebx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	js	LBB0_13
## %bb.5:
	xorl	%ecx, %ecx
	movl	$1, %eax
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%r13,%rax), %edx
	cmpb	%r12b, %dl
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incl	%ecx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%ebx, %ecx
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rsi, %r14
	jae	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movb	%dl, (%r8,%r14)
	incq	%r14
	movl	%ebx, %ecx
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%r15, %rax
	jae	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	incq	%rax
	cmpl	%ebx, %ecx
	jle	LBB0_6
	jmp	LBB0_13
LBB0_1:
	xorl	%eax, %eax
	retq
LBB0_3:
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_13:
	decq	%rsi
	movq	%r14, %rdi
	movq	%r8, %rbx
	callq	_min
	movb	$0, (%rbx,%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ntpsnmpd_cut_string            ; -- Begin function ntpsnmpd_cut_string
	.p2align	2
_ntpsnmpd_cut_string:                   ; @ntpsnmpd_cut_string
	.cfi_startproc
; %bb.0:
	cbz	x4, LBB0_12
; %bb.1:
	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
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
	bl	_strlen
	mov	x24, x0
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_memset
	mov	x0, #0
	cbz	x24, LBB0_11
; %bb.2:
	tbnz	w21, #31, LBB0_11
; %bb.3:
	mov	w9, #0
	mov	x0, #0
	mov	x8, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x23, x8]
	cmp	w10, w22, uxtb
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w9, #1
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, w21
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x0, x20
	b.hs	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	w10, [x19, x0]
	add	x0, x0, #1
	mov	x9, x21
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	cmp	x8, x24
	b.hs	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, w21
	b.le	LBB0_4
LBB0_11:
	sub	x1, x20, #1
	bl	_min
	strb	wzr, [x19, x0]
	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
LBB0_12:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	mov	x0, #0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
