	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isocal_split_eraweeks          ## -- Begin function isocal_split_eraweeks
	.p2align	4, 0x90
_isocal_split_eraweeks:                 ## @isocal_split_eraweeks
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_int32_sflag
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_int32_to_uint32_2cpl
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_uint32_saturate
                                        ## kill: def $eax killed $eax def $rax
	leal	2(,%rax,4), %r14d
	movl	%r14d, %eax
	xorl	%ebx, %eax
	movq	_GREGORIAN_CYCLE_WEEKS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	divl	%ecx
	xorl	%eax, %ebx
	imull	%ebx, %ecx
	subl	%ecx, %r14d
	movl	%ebx, %r15d
	andl	$3, %r15d
	movl	%ebx, %edi
	callq	_uint32_2cpl_to_int32
	shrl	$2, %r14d
	imull	$157, %r14d, %ecx
	leaq	_isocal_split_eraweeks.bctab(%rip), %rdx
	addl	(%rdx,%r15,4), %ecx
	movl	%ecx, %edx
	shrl	$13, %edx
	imull	$100, %eax, %eax
	addl	%edx, %eax
	andl	$8191, %ecx                     ## imm = 0x1FFF
	imull	$53431, %ecx, %ecx              ## imm = 0xD0B7
	shrl	$23, %ecx
	shlq	$32, %rcx
	orq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @isocal_split_eraweeks.bctab
_isocal_split_eraweeks.bctab:
	.long	85                              ## 0x55
	.long	130                             ## 0x82
	.long	17                              ## 0x11
	.long	62                              ## 0x3e

	.comm	_GREGORIAN_CYCLE_WEEKS,4,2      ## @GREGORIAN_CYCLE_WEEKS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isocal_split_eraweeks          ; -- Begin function isocal_split_eraweeks
	.p2align	2
_isocal_split_eraweeks:                 ; @isocal_split_eraweeks
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_int32_sflag
	mov	x20, x0
	mov	x0, x19
	bl	_int32_to_uint32_2cpl
	mov	x1, x20
	bl	_uint32_saturate
	mov	w8, #2
	bfi	w8, w0, #2, #30
Lloh0:
	adrp	x9, _GREGORIAN_CYCLE_WEEKS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GREGORIAN_CYCLE_WEEKS@GOTPAGEOFF]
	eor	w10, w8, w20
Lloh2:
	ldr	w9, [x9]
	udiv	w10, w10, w9
	eor	w0, w10, w20
	msub	w19, w0, w9, w8
	and	w20, w0, #0x3
	bl	_uint32_2cpl_to_int32
	lsr	w8, w19, #2
	mov	w9, #157
Lloh3:
	adrp	x10, _isocal_split_eraweeks.bctab@PAGE
Lloh4:
	add	x10, x10, _isocal_split_eraweeks.bctab@PAGEOFF
	ldr	w10, [x10, w20, uxtw #2]
	madd	w8, w8, w9, w10
	mov	w9, #100
	mul	w9, w0, w9
	add	w0, w9, w8, lsr #13
	and	w8, w8, #0x1fff
	mov	w9, #53431
	mul	w8, w8, w9
	lsr	w8, w8, #23
	bfi	x0, x8, #32, #6
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @isocal_split_eraweeks.bctab
_isocal_split_eraweeks.bctab:
	.long	85                              ; 0x55
	.long	130                             ; 0x82
	.long	17                              ; 0x11
	.long	62                              ; 0x3e

	.comm	_GREGORIAN_CYCLE_WEEKS,4,2      ; @GREGORIAN_CYCLE_WEEKS
.subsections_via_symbols
