	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_adjust_special_weekday
_do_adjust_special_weekday:             ## @do_adjust_special_weekday
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movslq	12(%rdi), %rbx
	movl	8(%rdi), %edi
	movl	(%r14), %edx
	movl	4(%r14), %esi
	callq	_timelib_day_of_week
	imulq	$1717986919, %rbx, %rdx         ## imm = 0x66666667
	movq	%rdx, %rcx
	shrq	$63, %rcx
	sarq	$33, %rdx
	addl	%ecx, %edx
	leal	(,%rdx,8), %ecx
	subl	%edx, %ecx
	addl	(%r14), %ecx
	leal	(%rdx,%rdx,4), %esi
	movl	%ebx, %edx
	subl	%esi, %edx
	testq	%rbx, %rbx
	jle	LBB0_4
## %bb.1:
	testl	%edx, %edx
	je	LBB0_7
## %bb.2:
	cmpl	$6, %eax
	jne	LBB0_10
LBB0_17:
	incl	%ecx
	jmp	LBB0_18
LBB0_4:
	testl	%edx, %edx
	je	LBB0_12
## %bb.5:
	testl	%eax, %eax
	je	LBB0_16
## %bb.6:
	leal	-2(%rcx), %esi
	addl	%edx, %eax
	cmovgl	%ecx, %esi
	jmp	LBB0_11
LBB0_7:
	cmpl	$6, %eax
	je	LBB0_16
## %bb.8:
	testl	%eax, %eax
	jne	LBB0_18
## %bb.9:
	addl	$-2, %ecx
	jmp	LBB0_18
LBB0_10:
	addl	%edx, %eax
	leal	2(%rcx), %esi
	cmpl	$6, %eax
	cmovll	%ecx, %esi
LBB0_11:
	movl	%esi, %ecx
	jmp	LBB0_18
LBB0_16:
	decl	%ecx
	jmp	LBB0_18
LBB0_12:
	testl	%eax, %eax
	je	LBB0_17
## %bb.13:
	cmpl	$6, %eax
	jne	LBB0_18
## %bb.14:
	addl	$2, %ecx
LBB0_18:
	addl	%edx, %ecx
	movl	%ecx, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_do_adjust_special_weekday
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_adjust_special_weekday
_do_adjust_special_weekday:             ; @do_adjust_special_weekday
	.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
	ldp	w0, w20, [x0, #8]
	ldp	w2, w1, [x19]
	bl	_timelib_day_of_week
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w20, w8
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w8, w8, w9
	lsl	w9, w8, #3
	sub	w9, w9, w8
	ldr	w10, [x19]
	add	w9, w10, w9
	add	w8, w8, w8, lsl #2
	sub	w8, w20, w8
	add	w10, w0, w8
	sub	w11, w9, #2
	cmp	w10, #1
	csel	w12, w11, w9, lt
	sub	w13, w9, #1
	cmp	w0, #0
	csel	w12, w12, w13, ne
	add	w14, w9, #2
	cmp	w0, #6
	csel	w15, w9, w14, ne
	cmp	w0, #0
	csinc	w15, w15, w9, ne
	cmp	w8, #0
	csel	w12, w12, w15, ne
	cmp	w10, #5
	csel	w10, w14, w9, gt
	cmp	w0, #6
	csinc	w10, w10, w9, ne
	cmp	w0, #0
	csel	w9, w9, w11, ne
	cmp	w0, #6
	csel	w9, w13, w9, eq
	cmp	w8, #0
	csel	w9, w10, w9, ne
	cmp	w20, #1
	csel	w9, w12, w9, lt
	add	w8, w9, w8
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_do_adjust_special_weekday
.subsections_via_symbols
