	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_adjust_for_weekday
_do_adjust_for_weekday:                 ## @do_adjust_for_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	44(%rdi), %edi
	movl	40(%rbx), %esi
	movq	(%rbx), %rdx
	callq	_timelib_day_of_week
	movslq	8(%rbx), %rsi
	cmpq	$2, %rsi
	jne	LBB0_9
## %bb.1:
	movq	16(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.6:
	movl	$7, %ecx
	jmp	LBB0_7
LBB0_9:
	movq	16(%rbx), %rcx
	movq	24(%rbx), %rdi
	movq	%rcx, %rdx
	subq	%rax, %rdx
	testq	%rdi, %rdi
	jns	LBB0_11
## %bb.10:
	testq	%rdx, %rdx
	js	LBB0_13
LBB0_11:
	testq	%rdi, %rdi
	js	LBB0_14
## %bb.12:
	negq	%rsi
	cmpq	%rsi, %rdx
	jg	LBB0_14
LBB0_13:
	addq	$7, %rdx
LBB0_14:
	addq	%rcx, %rax
	movq	$-7, %rsi
	subq	%rax, %rsi
	testq	%rcx, %rcx
	cmovnsq	%rdx, %rsi
	addq	%rsi, (%rbx)
	movq	$0, 32(%rbx)
	jmp	LBB0_15
LBB0_2:
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	addq	$-7, %rcx
LBB0_7:
	movq	%rcx, 16(%rbx)
	jmp	LBB0_8
LBB0_3:
	xorl	%ecx, %ecx
LBB0_8:
	movq	(%rbx), %rdx
	subq	%rax, %rdx
	addq	%rcx, %rdx
	movq	%rdx, (%rbx)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_do_adjust_for_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_for_weekday
_do_adjust_for_weekday:                 ; @do_adjust_for_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
	ldr	w0, [x0, #44]
	ldr	w1, [x19, #40]
	ldr	x2, [x19]
	bl	_timelib_day_of_week
	ldrsw	x10, [x19, #8]
	cmp	w10, #2
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x0, LBB0_10
; %bb.2:
	cbnz	x8, LBB0_13
; %bb.3:
	mov	w8, #7
	b	LBB0_12
LBB0_4:
	ldp	x8, x11, [x19, #16]
	sub	x9, x8, x0
	tbz	x11, #63, LBB0_6
; %bb.5:
	tbnz	x9, #63, LBB0_8
LBB0_6:
	tbnz	x11, #63, LBB0_9
; %bb.7:
	neg	x10, x10
	cmp	x9, x10
	b.gt	LBB0_9
LBB0_8:
	add	x9, x9, #7
LBB0_9:
	ldr	x10, [x19]
	mov	x11, #-7
	add	x12, x0, x8
	sub	x11, x11, x12
	cmp	x8, #0
	csel	x8, x11, x9, lt
	add	x8, x10, x8
	str	x8, [x19]
	str	xzr, [x19, #32]
	b	LBB0_14
LBB0_10:
	cbz	x8, LBB0_13
; %bb.11:
	sub	x8, x8, #7
LBB0_12:
	str	x8, [x19, #16]
LBB0_13:
	ldr	x9, [x19]
	sub	x9, x9, x0
	add	x8, x8, x9
	str	x8, [x19]
LBB0_14:
	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_for_weekday
.subsections_via_symbols
