	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function malloc_counter
_malloc_counter:                        ## @malloc_counter
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$4, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
LBB0_2:
	movl	$48, %edi
	callq	_zzmalloc0
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_17
## %bb.3:
	movq	_tot_counters_allocated@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%r14, (%rbx)
	movq	$0, 32(%rbx)
	movq	_default_timezone@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_copy_ancestor
LBB0_5:
	movq	_create_day_start@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_now@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	je	LBB0_7
## %bb.6:
	movl	40(%rbx), %edi
	callq	_tz_offset
	addl	%eax, %r12d
	movslq	%r12d, %rcx
	imulq	$-1037155065, %rcx, %rdx        ## imm = 0xC22E4507
	shrq	$32, %rdx
	addl	%edx, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$16, %ecx
	addl	%edx, %ecx
	imull	$86400, %ecx, %r12d             ## imm = 0x15180
	subl	%eax, %r12d
LBB0_7:
	movl	%r12d, 8(%rbx)
	movq	$-1, 12(%rbx)
	movl	$-1, 20(%rbx)
	movq	_auto_create_new_versions@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.9:
	movl	(%r13), %r12d
	movl	40(%rbx), %edi
	callq	_tz_offset
	addl	%eax, %r12d
	movslq	%r12d, %rcx
	imulq	$-1037155065, %rcx, %rdx        ## imm = 0xC22E4507
	shrq	$32, %rdx
	addl	%edx, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$16, %ecx
	addl	%edx, %ecx
	imull	$86400, %ecx, %ecx              ## imm = 0x15180
	subl	%eax, %ecx
	addl	$86400, %ecx                    ## imm = 0x15180
	jmp	LBB0_10
LBB0_8:
	movl	$2147483647, %ecx               ## imm = 0x7FFFFFFF
LBB0_10:
	movq	_verbosity@GOTPCREL(%rip), %r12
	movl	%ecx, 24(%rbx)
	movq	_custom_version_names@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.11:
	movq	_incr_version@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_12:
	movq	%r15, 32(%rbx)
	testq	%r15, %r15
	je	LBB0_14
## %bb.13:
	movq	_FORCE_COUNTER_TYPE@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
LBB0_14:
	movq	%r14, %rdi
	callq	_get_cnt_type
	movl	%eax, 28(%rbx)
LBB0_15:
	cmpl	$4, (%r12)
	jl	LBB0_17
## %bb.16:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
LBB0_17:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Allocating new counter\n"

	.comm	_tot_counters_allocated,4,2     ## @tot_counters_allocated
	.comm	_default_timezone,4,2           ## @default_timezone
	.comm	_create_day_start,8,3           ## @create_day_start
	.comm	_now,4,2                        ## @now
	.comm	_auto_create_new_versions,8,3   ## @auto_create_new_versions
	.comm	_custom_version_names,8,3       ## @custom_version_names
	.comm	_incr_version,4,2               ## @incr_version
	.comm	_FORCE_COUNTER_TYPE,8,3         ## @FORCE_COUNTER_TYPE
L_.str.1:                               ## @.str.1
	.asciz	"New counter allocated\n"

	.no_dead_strip	_malloc_counter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function malloc_counter
_malloc_counter:                        ; @malloc_counter
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _verbosity@GOTPAGE
Lloh1:
	ldr	x22, [x22, _verbosity@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #4
	b.lt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
	mov	w0, #48
	bl	_zzmalloc0
	mov	x20, x0
	cbz	x0, LBB0_17
; %bb.3:
Lloh7:
	adrp	x8, _tot_counters_allocated@GOTPAGE
Lloh8:
	ldr	x8, [x8, _tot_counters_allocated@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	str	x19, [x20]
	str	xzr, [x20, #32]
Lloh9:
	adrp	x8, _default_timezone@GOTPAGE
Lloh10:
	ldr	x8, [x8, _default_timezone@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20, #40]
	cbz	x21, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	bl	_copy_ancestor
LBB0_5:
	mov	w23, #20864
	movk	w23, #1, lsl #16
Lloh12:
	adrp	x8, _create_day_start@GOTPAGE
Lloh13:
	ldr	x8, [x8, _create_day_start@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x24, _now@GOTPAGE
Lloh16:
	ldr	x24, [x24, _now@GOTPAGEOFF]
	ldr	w25, [x24]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x20, #40]
	bl	_tz_offset
	add	w8, w0, w25
	sdiv	w8, w8, w23
	neg	w9, w0
	madd	w25, w8, w23, w9
LBB0_7:
	str	w25, [x20, #8]
	movi.2d	v0, #0xffffffffffffffff
	stur	d0, [x20, #12]
	mov	w8, #-1
	str	w8, [x20, #20]
Lloh17:
	adrp	x8, _auto_create_new_versions@GOTPAGE
Lloh18:
	ldr	x8, [x8, _auto_create_new_versions@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w24, [x24]
	ldr	w0, [x20, #40]
	bl	_tz_offset
	add	w8, w0, w24
	neg	w9, w8
	sdiv	w8, w8, w23
	madd	w8, w8, w23, w9
	add	w9, w24, w23
	add	w8, w9, w8
	b	LBB0_10
LBB0_9:
	mov	w8, #2147483647
LBB0_10:
	str	w8, [x20, #24]
Lloh20:
	adrp	x8, _custom_version_names@GOTPAGE
Lloh21:
	ldr	x8, [x8, _custom_version_names@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.11:
Lloh23:
	adrp	x8, _incr_version@GOTPAGE
Lloh24:
	ldr	x8, [x8, _incr_version@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x20, #8]
LBB0_12:
	str	x21, [x20, #32]
	cbz	x21, LBB0_14
; %bb.13:
Lloh26:
	adrp	x8, _FORCE_COUNTER_TYPE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FORCE_COUNTER_TYPE@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
LBB0_14:
	mov	x0, x19
	bl	_get_cnt_type
	str	w0, [x20, #28]
LBB0_15:
	ldr	w8, [x22]
	cmp	w8, #4
	b.lt	LBB0_17
; %bb.16:
Lloh29:
	adrp	x8, _stderr@GOTPAGE
Lloh30:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_17:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Allocating new counter\n"

	.comm	_tot_counters_allocated,4,2     ; @tot_counters_allocated
	.comm	_default_timezone,4,2           ; @default_timezone
	.comm	_create_day_start,8,3           ; @create_day_start
	.comm	_now,4,2                        ; @now
	.comm	_auto_create_new_versions,8,3   ; @auto_create_new_versions
	.comm	_custom_version_names,8,3       ; @custom_version_names
	.comm	_incr_version,4,2               ; @incr_version
	.comm	_FORCE_COUNTER_TYPE,8,3         ; @FORCE_COUNTER_TYPE
l_.str.1:                               ; @.str.1
	.asciz	"New counter allocated\n"

	.no_dead_strip	_malloc_counter
.subsections_via_symbols
