	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find                           ## -- Begin function find
	.p2align	4, 0x90
_find:                                  ## @find
	.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	%rbx
	subq	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	L_.str.1(%rip), %rdi
	callq	_ftp_rooted
	leaq	L_.str(%rip), %rdx
	leaq	-1056(%rbp), %r14
	movq	%r14, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%rax, %rcx
	movq	%rbx, %r8
	callq	_snprintf
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %ebx
	movq	%r14, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_ftpd_popen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	leaq	L_.str.4(%rip), %rsi
	movl	$200, %edi
	callq	_lreply
	leaq	-1056(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	leaq	L_.str.5(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_nreply
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	cmpb	$10, -1(%rax,%rbx)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	movb	$0, -1(%rax,%rbx)
	jmp	LBB0_6
LBB0_7:
	leaq	L_.str.6(%rip), %rsi
	movl	$200, %edi
	callq	_reply
	movq	%r14, %rdi
	callq	_ftpd_pclose
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str.3(%rip), %rsi
	movl	$550, %edi                      ## imm = 0x226
	callq	_perror_reply
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/bin/locate -d %s -- %s"

L_.str.1:                               ## @.str.1
	.asciz	"/etc/locatedb"

L_.str.2:                               ## @.str.2
	.asciz	"r"

L_.str.3:                               ## @.str.3
	.asciz	"/bin/locate"

L_.str.4:                               ## @.str.4
	.asciz	"Output from find."

L_.str.5:                               ## @.str.5
	.asciz	"%s"

L_.str.6:                               ## @.str.6
	.asciz	"Done"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find                           ; -- Begin function find
	.p2align	2
_find:                                  ; @find
	.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
	sub	sp, sp, #1040
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ftp_rooted
	mov	x3, x0
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #1024
	mov	x4, x19
	bl	_snprintf
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	w2, #1
	mov	w3, #1
	bl	_ftpd_popen
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #200
	bl	_lreply
	add	x21, sp, #8
	add	x0, sp, #8
	mov	w1, #1024
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_6
; %bb.2:
Lloh11:
	adrp	x20, l_.str.5@PAGE
Lloh12:
	add	x20, x20, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #8
	mov	x0, x20
	bl	_nreply
	add	x0, sp, #8
	mov	w1, #1024
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_strlen
	add	x8, x21, w0, sxtw
	ldurb	w8, [x8, #-1]
	cmp	w8, #10
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #8
	bl	_strlen
	add	x8, x21, w0, sxtw
	sturb	wzr, [x8, #-1]
	b	LBB0_3
LBB0_6:
Lloh13:
	adrp	x1, l_.str.6@PAGE
Lloh14:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #200
	bl	_reply
	mov	x0, x19
	bl	_ftpd_pclose
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #550
	bl	_perror_reply
	mov	w0, #1
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	add	sp, sp, #1040
	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
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/bin/locate -d %s -- %s"

l_.str.1:                               ; @.str.1
	.asciz	"/etc/locatedb"

l_.str.2:                               ; @.str.2
	.asciz	"r"

l_.str.3:                               ; @.str.3
	.asciz	"/bin/locate"

l_.str.4:                               ; @.str.4
	.asciz	"Output from find."

l_.str.5:                               ; @.str.5
	.asciz	"%s"

l_.str.6:                               ; @.str.6
	.asciz	"Done"

.subsections_via_symbols
