	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scan_available_timezones
_scan_available_timezones:              ## @scan_available_timezones
	.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
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_strlen
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_pgfnames
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.2:
	movslq	%r14d, %r12
	leaq	(%rbx,%r12), %r15
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	addq	$8, %r14
	jmp	LBB0_3
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_scan_available_timezones
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	$0, (%r15)
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rcx
	addq	$8, %r14
	testq	%rcx, %rcx
	je	LBB0_18
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$46, (%rcx)
	je	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	subq	%r12, %rsi
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rdx
	callq	_snprintf
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-64(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_score_timezone
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rcx), %eax
	jle	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, (%rcx)
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_TZ_STRLEN_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	incq	%rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_strlcpy
	jmp	LBB0_16
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	jne	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_zone_name_pref
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_zone_name_pref
	cmpl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	jg	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_strlen
	cmpl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	jl	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_strlen
	cmpl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcmp
	testq	%rax, %rax
	jns	LBB0_16
	jmp	LBB0_15
LBB0_18:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_pgfnames_cleanup
LBB0_19:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,8,3                  ## @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/%s"

	.comm	_TZ_STRLEN_MAX,8,3              ## @TZ_STRLEN_MAX
	.comm	_errno,4,2                      ## @errno
	.comm	_stderr,4,2                     ## @stderr
	.no_dead_strip	_scan_available_timezones
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scan_available_timezones
_scan_available_timezones:              ; @scan_available_timezones
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x4, [sp, #16]                   ; 8-byte Folded Spill
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_strlen
	mov	x25, x0
	mov	x0, x23
	bl	_pgfnames
	cbz	x0, LBB0_19
; %bb.1:
	mov	x24, x0
	ldr	x3, [x0]
	cbz	x3, LBB0_18
; %bb.2:
	sxtw	x28, w25
	add	x25, x23, x28
	add	x27, x24, #8
Lloh0:
	adrp	x19, _MAXPGPATH@GOTPAGE
Lloh1:
	ldr	x19, [x19, _MAXPGPATH@GOTPAGEOFF]
Lloh2:
	adrp	x26, l_.str@PAGE
Lloh3:
	add	x26, x26, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	ldr	x4, [sp, #16]                   ; 8-byte Folded Reload
	bl	_scan_available_timezones
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	strb	wzr, [x25]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x3, [x27], #8
	cbz	x3, LBB0_18
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x3]
	cmp	w8, #46
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	sub	x1, x8, x28
	mov	x0, x25
	mov	x2, x26
	bl	_snprintf
	add	x1, sp, #24
	mov	x0, x23
	bl	_stat
	cbnz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [sp, #24]
	bl	_S_ISDIR
	cbnz	x0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_score_timezone
	ldr	w8, [x20]
	cmp	w0, w8
	b.le	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	str	w0, [x20]
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh4:
	adrp	x8, _TZ_STRLEN_MAX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TZ_STRLEN_MAX@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	add	x2, x8, #1
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x22
	bl	_strlcpy
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	b.ne	LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_zone_name_pref
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_zone_name_pref
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, w0
	b.gt	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	b.ne	LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_strlen
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_strlen
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, w0
	b.lt	LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_strlen
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_strlen
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, w0
	b.ne	LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	bl	_strcmp
	tbz	x0, #63, LBB0_4
	b	LBB0_11
LBB0_18:
	mov	x0, x24
	bl	_pgfnames_cleanup
LBB0_19:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,8,3                  ; @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/%s"

	.comm	_TZ_STRLEN_MAX,8,3              ; @TZ_STRLEN_MAX
	.comm	_errno,4,2                      ; @errno
	.comm	_stderr,4,2                     ; @stderr
	.no_dead_strip	_scan_available_timezones
.subsections_via_symbols
