	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_dir_name
_find_dir_name:                         ## @find_dir_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movq	_NO_EQUIVALENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	24(%rdi), %rcx
	movq	(%rcx,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movb	(%rbx), %al
	movq	_NUL@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	jne	LBB0_19
LBB0_4:
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.5:
	addq	$8, %rax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rax)
	leaq	8(%rax), %rax
	jne	LBB0_6
## %bb.7:
	movq	-16(%rax), %r15
	cmpb	$36, (%r15)
	jne	LBB0_12
## %bb.8:
	incq	%r15
	movq	_DIRCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	%rax, %r12
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_AO_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	subq	%r15, %r12
	movq	_AO_NAME_LIMIT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jle	LBB0_14
## %bb.10:
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_12:
	movq	%r15, %rbx
	jmp	LBB0_19
LBB0_13:
	movq	%r15, %rdi
	callq	_getenv
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_19
	jmp	LBB0_17
LBB0_14:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_memcpy
	movq	_NUL@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, (%rbx,%r12)
	movq	%rbx, %rdi
	callq	_getenv
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%ebx, %eax
	addl	$2, %eax
	movslq	%eax, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_AGALOC
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	%rax, %rbx
	movl	$1, (%r14)
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_sprintf
	jmp	LBB0_19
LBB0_17:
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_zsave_warn@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	8(%r13), %rdx
	callq	_fprintf
	movl	(%rbx), %edi
	movq	_zNotDef@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdx
	callq	_fprintf
LBB0_18:
	xorl	%ebx, %ebx
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_EQUIVALENT,8,3              ## @NO_EQUIVALENT
	.comm	_NUL,1,0                        ## @NUL
	.comm	_DIRCH,4,2                      ## @DIRCH
	.comm	_AO_NAME_SIZE,4,2               ## @AO_NAME_SIZE
	.comm	_AO_NAME_LIMIT,4,2              ## @AO_NAME_LIMIT
	.comm	_stderr,4,2                     ## @stderr
	.comm	_zsave_warn,8,3                 ## @zsave_warn
	.comm	_zNotDef,8,3                    ## @zNotDef
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dir name"

L_.str.1:                               ## @.str.1
	.asciz	"%s/%s"

	.no_dead_strip	_find_dir_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_dir_name
_find_dir_name:                         ; @find_dir_name
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x8, [x0, #16]
Lloh3:
	adrp	x9, _NO_EQUIVALENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NO_EQUIVALENT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x8, x9, #4, ne
	b.eq	LBB0_15
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x9, [x0, #24]
	ldr	x23, [x9, x8, lsl #3]
	cbz	x23, LBB0_3
; %bb.2:
	ldrb	w8, [x23]
Lloh6:
	adrp	x9, _NUL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NUL@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_16
LBB0_3:
	ldr	x8, [x20]
	cbz	x8, LBB0_15
; %bb.4:
	add	x8, x8, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8], #8
	cbnz	x9, LBB0_5
; %bb.6:
	ldur	x23, [x8, #-16]
	ldrb	w8, [x23]
	cmp	w8, #36
	b.ne	LBB0_16
; %bb.7:
	add	x21, x23, #1
Lloh8:
	adrp	x8, _DIRCH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DIRCH@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_strchr
	cbz	x0, LBB0_10
; %bb.8:
	mov	x22, x0
	mov	x25, sp
Lloh11:
	adrp	x8, _AO_NAME_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AO_NAME_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	mov	x9, x8
Lloh14:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh15:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
Lloh16:
	adrp	x8, _AO_NAME_LIMIT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AO_NAME_LIMIT@GOTPAGEOFF]
Lloh18:
	ldrsw	x8, [x8]
	sub	x24, x0, x21
	cmp	x24, x8
	b.le	LBB0_11
; %bb.9:
	mov	sp, x25
	b	LBB0_15
LBB0_10:
	mov	x0, x21
	bl	_getenv
	mov	x23, x0
	cbnz	x0, LBB0_16
	b	LBB0_14
LBB0_11:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x24
	bl	_memcpy
Lloh19:
	adrp	x8, _NUL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NUL@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [x23, x24]
	mov	x0, x23
	bl	_getenv
	mov	sp, x25
	cbz	x0, LBB0_14
; %bb.12:
	mov	x24, x0
	bl	_strlen
	mov	x20, x0
	mov	x0, x22
	bl	_strlen
	add	w8, w20, w0
	add	w8, w8, #2
	sxtw	x0, w8
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	bl	_AGALOC
	mov	x23, x0
	cbz	x0, LBB0_16
; %bb.13:
	mov	w8, #1
	str	w8, [x19]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	mov	x3, x22
	bl	_sprintf
	b	LBB0_16
LBB0_14:
Lloh25:
	adrp	x19, _stderr@GOTPAGE
Lloh26:
	ldr	x19, [x19, _stderr@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh27:
	adrp	x8, _zsave_warn@GOTPAGE
Lloh28:
	ldr	x8, [x8, _zsave_warn@GOTPAGEOFF]
Lloh29:
	ldr	x1, [x8]
	ldr	x2, [x20, #8]
	bl	_fprintf
	ldr	w0, [x19]
Lloh30:
	adrp	x8, _zNotDef@GOTPAGE
Lloh31:
	ldr	x8, [x8, _zNotDef@GOTPAGEOFF]
Lloh32:
	ldr	x1, [x8]
	mov	x2, x21
	bl	_fprintf
LBB0_15:
	mov	x23, #0
LBB0_16:
	ldur	x8, [x29, #-72]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x23
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_NO_EQUIVALENT,8,3              ; @NO_EQUIVALENT
	.comm	_NUL,1,0                        ; @NUL
	.comm	_DIRCH,4,2                      ; @DIRCH
	.comm	_AO_NAME_SIZE,4,2               ; @AO_NAME_SIZE
	.comm	_AO_NAME_LIMIT,4,2              ; @AO_NAME_LIMIT
	.comm	_stderr,4,2                     ; @stderr
	.comm	_zsave_warn,8,3                 ; @zsave_warn
	.comm	_zNotDef,8,3                    ; @zNotDef
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dir name"

l_.str.1:                               ; @.str.1
	.asciz	"%s/%s"

	.no_dead_strip	_find_dir_name
.subsections_via_symbols
