	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tftp_fetch_string              ## -- Begin function tftp_fetch_string
	.p2align	4, 0x90
_tftp_fetch_string:                     ## @tftp_fetch_string
	.cfi_startproc
## %bb.0:
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpb	$0, (%rdi)
	je	LBB0_3
## %bb.4:
	movl	%esi, %eax
	leaq	-1(%rax), %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, %rsi
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	1(%rdx), %rcx
	cmpb	$0, 1(%rdi,%rdx)
	movq	%rcx, %rdx
	jne	LBB0_6
## %bb.10:
	cmpq	%rax, %rcx
	setb	%dl
	jmp	LBB0_8
LBB0_1:
	movl	$-1, %eax
	retq
LBB0_3:
	movb	$1, %dl
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_7:
	incq	%rdx
	cmpq	%rax, %rdx
	setb	%dl
	movl	%eax, %ecx
LBB0_8:
	incl	%ecx
	testb	%dl, %dl
	movl	$-1, %eax
	cmovnel	%ecx, %eax
	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	_tftp_fetch_string              ; -- Begin function tftp_fetch_string
	.p2align	2
_tftp_fetch_string:                     ; @tftp_fetch_string
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_6
; %bb.1:
	ldrb	w8, [x0]
	cbz	w8, LBB0_7
; %bb.2:
	mov	w8, w1
	mov	w9, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w10, [x0, x9]
	add	x9, x9, #1
	cbnz	w10, LBB0_3
; %bb.5:
	sub	x9, x9, #1
	cmp	x9, x8
	cset	w10, lo
	b	LBB0_9
LBB0_6:
	mov	w0, #-1
	ret
LBB0_7:
	mov	w9, #0
	mov	w10, #1
	b	LBB0_9
LBB0_8:
	cmp	x9, x8
	cset	w10, lo
	mov	x9, x8
LBB0_9:
	cmp	w10, #0
	mov	w8, #-1
	csinc	w0, w8, w9, eq
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
