	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tr2_dst_too_many_files
_tr2_dst_too_many_files:                ## @tr2_dst_too_many_files
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movq	_TR2_SYSENV_MAX_FILES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr2_sysenv_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	cmpb	$0, (%rax)
	je	LBB0_4
## %bb.2:
	movq	%rax, %rdi
	callq	_atoi
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	_tr2env_max_files@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	jne	LBB0_7
LBB0_6:
	xorl	%r15d, %r15d
	jmp	LBB0_20
LBB0_4:
	movq	_tr2env_max_files@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_strbuf_addstr
	movq	-40(%rbp), %rax
	movslq	-48(%rbp), %rcx
	movl	-4(%rax,%rcx,4), %edi
	callq	_is_dir_sep
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	leaq	-48(%rbp), %rdi
	movl	$47, %esi
	callq	_strbuf_addch
LBB0_9:
	leaq	-64(%rbp), %rbx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_strbuf_addbuf
	movq	_DISCARD_SENTINEL_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_strbuf_addstr
	movq	-56(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	callq	_stat
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movq	-40(%rbp), %rdi
	callq	_opendir
	movq	%rax, %r15
	xorl	%ebx, %ebx
	movq	_tr2env_max_files@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	cmpl	$0, (%r12)
	jle	LBB0_16
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_14
LBB0_16:
	testq	%r15, %r15
	je	LBB0_18
## %bb.17:
	movq	%r15, %rdi
	callq	_closedir
LBB0_18:
	xorl	%r15d, %r15d
	cmpl	(%r12), %ebx
	jl	LBB0_20
## %bb.19:
	movl	$1, (%r14)
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	-56(%rbp), %rdi
	movq	_O_EXCL@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	$438, %edx                      ## imm = 0x1B6
	callq	_open
	movl	%eax, 4(%r14)
	movl	$-1, %r15d
	jmp	LBB0_20
LBB0_10:
	movl	$1, %r15d
LBB0_20:
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	movl	%r15d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.comm	_TR2_SYSENV_MAX_FILES,4,2       ## @TR2_SYSENV_MAX_FILES
	.comm	_tr2env_max_files,4,2           ## @tr2env_max_files
	.comm	_DISCARD_SENTINEL_NAME,8,3      ## @DISCARD_SENTINEL_NAME
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_EXCL,4,2                     ## @O_EXCL
	.no_dead_strip	_tr2_dst_too_many_files
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tr2_dst_too_many_files
_tr2_dst_too_many_files:                ; @tr2_dst_too_many_files
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	stp	q0, q0, [sp, #16]
Lloh3:
	adrp	x8, _TR2_SYSENV_MAX_FILES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TR2_SYSENV_MAX_FILES@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_tr2_sysenv_get
	cbz	x0, LBB0_4
; %bb.1:
	ldrb	w8, [x0]
	cbz	w8, LBB0_4
; %bb.2:
	bl	_atoi
	tbnz	w0, #31, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _tr2env_max_files@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tr2env_max_files@GOTPAGEOFF]
Lloh8:
	str	w0, [x8]
	cbnz	w0, LBB0_5
	b	LBB0_16
LBB0_4:
Lloh9:
	adrp	x8, _tr2env_max_files@GOTPAGE
Lloh10:
	ldr	x8, [x8, _tr2env_max_files@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	cbz	w0, LBB0_16
LBB0_5:
	add	x0, sp, #32
	mov	x1, x20
	bl	_strbuf_addstr
	ldr	x8, [sp, #40]
	ldrsw	x9, [sp, #32]
	add	x8, x8, x9, lsl #2
	ldur	w0, [x8, #-4]
	bl	_is_dir_sep
	cbnz	w0, LBB0_7
; %bb.6:
	add	x0, sp, #32
	mov	w1, #47
	bl	_strbuf_addch
LBB0_7:
	add	x0, sp, #16
	add	x1, sp, #32
	bl	_strbuf_addbuf
Lloh12:
	adrp	x8, _DISCARD_SENTINEL_NAME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DISCARD_SENTINEL_NAME@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	add	x0, sp, #16
	bl	_strbuf_addstr
	ldr	x0, [sp, #24]
	add	x1, sp, #8
	bl	_stat
	cbz	w0, LBB0_17
; %bb.8:
	ldr	x0, [sp, #40]
	bl	_opendir
	mov	x20, x0
	mov	w22, #0
Lloh15:
	adrp	x21, _tr2env_max_files@GOTPAGE
Lloh16:
	ldr	x21, [x21, _tr2env_max_files@GOTPAGEOFF]
	cbz	x0, LBB0_13
; %bb.9:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.10:
	mov	w22, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_readdir
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w22, w22, #1
	ldr	w8, [x21]
	cmp	w22, w8
	b.lt	LBB0_11
LBB0_13:
	cbz	x20, LBB0_15
; %bb.14:
	mov	x0, x20
	bl	_closedir
LBB0_15:
	ldr	w8, [x21]
	cmp	w22, w8
	b.ge	LBB0_18
LBB0_16:
	mov	w19, #0
	b	LBB0_19
LBB0_17:
	mov	w19, #1
	b	LBB0_19
LBB0_18:
	mov	w8, #1
	str	w8, [x19]
	ldr	x0, [sp, #24]
Lloh17:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _O_EXCL@GOTPAGE
Lloh24:
	ldr	x9, [x9, _O_EXCL@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	w2, #438
	bl	_open
	str	w0, [x19, #4]
	mov	w19, #-1
LBB0_19:
	add	x0, sp, #32
	bl	_strbuf_release
	add	x0, sp, #16
	bl	_strbuf_release
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.comm	_TR2_SYSENV_MAX_FILES,4,2       ; @TR2_SYSENV_MAX_FILES
	.comm	_tr2env_max_files,4,2           ; @tr2env_max_files
	.comm	_DISCARD_SENTINEL_NAME,8,3      ; @DISCARD_SENTINEL_NAME
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_EXCL,4,2                     ; @O_EXCL
	.no_dead_strip	_tr2_dst_too_many_files
.subsections_via_symbols
