	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcsftime_l                     ## -- Begin function wcsftime_l
	.p2align	4, 0x90
_wcsftime_l:                            ## @wcsftime_l
	.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	%r8d, %r15d
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	%r8d, %edi
	callq	_FIX_LOCALE
	movl	$0, -44(%rbp)
	movq	%rbx, -64(%rbp)
	xorl	%r14d, %r14d
	leaq	-64(%rbp), %rsi
	leaq	-44(%rbp), %rcx
	xorl	%edi, %edi
	xorl	%edx, %edx
	movl	%r15d, %r8d
	callq	_wcsrtombs_l
	movl	$0, %r12d
	cmpq	$-1, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r13
	incq	%r13
	movq	%r13, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movl	$0, -44(%rbp)
	leaq	-64(%rbp), %rsi
	leaq	-44(%rbp), %rcx
	movq	%rax, %rdi
	movq	%r13, %rdx
	movl	%r15d, %r8d
	callq	_wcsrtombs_l
	movq	_SIZE_T_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MB_CUR_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movq	%rax, %rcx
	orq	%rdi, %rcx
	shrq	$32, %rcx
	je	LBB0_4
## %bb.5:
	xorl	%edx, %edx
	divq	%rdi
	jmp	LBB0_6
LBB0_2:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
LBB0_6:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, %rax
	jbe	LBB0_7
## %bb.10:
	imulq	%rbx, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, %r8d
	callq	_strftime_l
	testq	%rax, %rax
	je	LBB0_9
## %bb.12:
	movq	%r12, -72(%rbp)
	movl	$0, -44(%rbp)
	leaq	-72(%rbp), %rsi
	leaq	-44(%rbp), %rcx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%r15d, %r8d
	callq	_mbsrtowcs_l
	cmpq	$-3, %rax
	ja	LBB0_9
## %bb.13:
	cmpq	$0, -72(%rbp)
	jne	LBB0_9
## %bb.14:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_15
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_8:
	xorl	%r12d, %r12d
LBB0_9:
	movq	%r14, %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_free
	xorl	%ebx, %ebx
LBB0_15:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZE_T_MAX,8,3                 ## @SIZE_T_MAX
	.comm	_MB_CUR_MAX,8,3                 ## @MB_CUR_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcsftime_l                     ; -- Begin function wcsftime_l
	.p2align	2
_wcsftime_l:                            ; @wcsftime_l
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x4
	mov	x24, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x4
	bl	_FIX_LOCALE
	str	wzr, [sp, #28]
	str	x19, [sp, #8]
	add	x1, sp, #8
	add	x3, sp, #28
	mov	x0, #0
	mov	x2, #0
	mov	x4, x20
	bl	_wcsrtombs_l
	cmn	x0, #1
	b.eq	LBB0_8
; %bb.1:
	add	x23, x0, #1
	mov	x0, x23
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.2:
	str	wzr, [sp, #28]
	add	x1, sp, #8
	add	x3, sp, #28
	mov	x0, x19
	mov	x2, x23
	mov	x4, x20
	bl	_wcsrtombs_l
Lloh0:
	adrp	x8, _SIZE_T_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIZE_T_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x8, _MB_CUR_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MB_CUR_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	udiv	x9, x9, x8
	cmp	x9, x21
	b.ls	LBB0_10
; %bb.3:
	mul	x0, x8, x21
	bl	_malloc
	mov	x23, x0
	cbz	x0, LBB0_11
; %bb.4:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x19
	mov	x3, x24
	mov	x4, x20
	bl	_strftime_l
	cbz	x0, LBB0_11
; %bb.5:
	str	x23, [sp, #16]
	str	wzr, [sp, #28]
	add	x1, sp, #16
	add	x3, sp, #28
	mov	x0, x22
	mov	x2, x21
	mov	x4, x20
	bl	_mbsrtowcs_l
	cmn	x0, #3
	b.hi	LBB0_11
; %bb.6:
	ldr	x8, [sp, #16]
	cbnz	x8, LBB0_11
; %bb.7:
	mov	x20, x0
	mov	x0, x19
	bl	_free
	mov	x0, x23
	bl	_free
	b	LBB0_12
LBB0_8:
	mov	x19, #0
LBB0_9:
	mov	x23, #0
	b	LBB0_11
LBB0_10:
	mov	x23, #0
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _errno@GOTPAGE
Lloh10:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
LBB0_11:
	mov	x0, x19
	bl	_free
	mov	x0, x23
	bl	_free
	mov	x20, #0
LBB0_12:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZE_T_MAX,8,3                 ; @SIZE_T_MAX
	.comm	_MB_CUR_MAX,8,3                 ; @MB_CUR_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
