	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_pids_by_binary_name       ## -- Begin function find_pids_by_binary_name
	.p2align	4, 0x90
_find_pids_by_binary_name:              ## @find_pids_by_binary_name
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	(%r15), %r14d
	incl	%r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	_PROC_PATH@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r12
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_readdir
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_16
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	_PROC_PATH@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%r12), %r8
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rsi
	callq	_stat
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-64(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rdi
	callq	_is_numeric
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r15), %esi
	movq	%r13, %rdi
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	movl	(%r15), %edx
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_readlink
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	cltq
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movb	$0, (%rdi,%rax)
	callq	_basename
	movl	%eax, %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rdi
	callq	_atol
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movslq	%r12d, %r12
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx,%r12,8)
	movl	(%rcx,%r12,8), %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcpy
	incl	%r12d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	cmpl	-60(%rbp), %r12d                ## 4-byte Folded Reload
	jne	LBB0_8
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_flag_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.3(%rip), %rdi
	callq	_nperror
	jmp	LBB0_8
LBB0_2:
	xorl	%eax, %eax
LBB0_15:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_16:
	movq	%r14, %rdi
	callq	_closedir
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_15
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_nperror
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROC_PATH@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_nfprintf
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_PROC_PATH,8,3                  ## @PROC_PATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"opendir"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Can't open %s\n"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.2:                               ## @.str.2
	.asciz	"%s/%s"

	.comm	_flag_debug,8,3                 ## @flag_debug
L_.str.3:                               ## @.str.3
	.asciz	"stat (find_pids_by_binary_name)"

L_.str.4:                               ## @.str.4
	.asciz	"%s/exe"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_pids_by_binary_name       ; -- Begin function find_pids_by_binary_name
	.p2align	2
_find_pids_by_binary_name:              ; @find_pids_by_binary_name
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #64
	mov	x27, x2
	mov	x28, x1
	stur	x0, [x29, #-120]                ; 8-byte Folded Spill
	mov	x19, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x21, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MAXPATHLEN@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w8, w8, #1
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w8, [x21]
	add	w8, w8, #1
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x1fffffff0
	sub	x23, x9, x12
	mov	sp, x23
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x25, x8, x12
	mov	sp, x25
Lloh11:
	adrp	x26, _PROC_PATH@GOTPAGE
Lloh12:
	ldr	x26, [x26, _PROC_PATH@GOTPAGEOFF]
	ldr	x0, [x26]
	bl	_opendir
	cbz	x0, LBB0_16
; %bb.1:
	mov	x24, x0
	stur	x19, [x29, #-112]               ; 8-byte Folded Spill
	bl	_readdir
	cbz	x0, LBB0_12
; %bb.2:
	mov	x20, x0
	stur	x28, [x29, #-136]               ; 8-byte Folded Spill
	stur	w27, [x29, #-124]               ; 4-byte Folded Spill
	stur	wzr, [x29, #-100]               ; 4-byte Folded Spill
Lloh13:
	adrp	x27, l_.str.2@PAGE
Lloh14:
	add	x27, x27, l_.str.2@PAGEOFF
Lloh15:
	adrp	x28, _flag_debug@GOTPAGE
Lloh16:
	ldr	x28, [x28, _flag_debug@GOTPAGEOFF]
Lloh17:
	adrp	x19, l_.str.4@PAGE
Lloh18:
	add	x19, x19, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_readdir
	mov	x20, x0
	cbz	x0, LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	ldr	x3, [x26]
	ldr	x8, [x20]
	str	x8, [sp, #-16]!
	mov	x0, x22
	mov	x2, x27
	bl	_snprintf
	add	sp, sp, #16
	sub	x1, x29, #96
	mov	x0, x22
	bl	_stat
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w0, [x29, #-96]
	bl	_S_ISDIR
	cbz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20]
	bl	_is_numeric
	cbz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x21]
	mov	x0, x23
	mov	x2, x19
	mov	x3, x22
	bl	_snprintf
	ldr	w2, [x21]
	mov	x0, x23
	mov	x1, x25
	bl	_readlink
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	wzr, [x25, w0, sxtw]
	mov	x0, x25
	bl	_basename
	ldur	x1, [x29, #-120]                ; 8-byte Folded Reload
	bl	_strcmp
	cbnz	w0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20]
	bl	_atol
	ldur	x8, [x29, #-136]                ; 8-byte Folded Reload
	ldur	w20, [x29, #-100]               ; 4-byte Folded Reload
	add	x8, x8, w20, sxtw #3
	str	w0, [x8, #4]
	ldr	w0, [x8]
	ldur	x1, [x29, #-120]                ; 8-byte Folded Reload
	bl	_strcpy
	add	w20, w20, #1
	ldur	w8, [x29, #-124]                ; 4-byte Folded Reload
	stur	w20, [x29, #-100]               ; 4-byte Folded Spill
	cmp	w20, w8
	b.ne	LBB0_3
	b	LBB0_15
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28]
	cbz	x8, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_nperror
	b	LBB0_3
LBB0_12:
	stur	wzr, [x29, #-100]               ; 4-byte Folded Spill
LBB0_13:
	mov	x0, x24
	bl	_closedir
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.14:
	ldur	w0, [x29, #-100]                ; 4-byte Folded Reload
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldur	w8, [x29, #-124]                ; 4-byte Folded Reload
	stur	w8, [x29, #-100]                ; 4-byte Folded Spill
	b	LBB0_13
LBB0_16:
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_nperror
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldr	x2, [x26]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_nfprintf
Lloh31:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_exit
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_PROC_PATH,8,3                  ; @PROC_PATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"opendir"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Can't open %s\n"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.2:                               ; @.str.2
	.asciz	"%s/%s"

	.comm	_flag_debug,8,3                 ; @flag_debug
l_.str.3:                               ; @.str.3
	.asciz	"stat (find_pids_by_binary_name)"

l_.str.4:                               ; @.str.4
	.asciz	"%s/exe"

.subsections_via_symbols
