	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MONTHCAL_SetDayState
_MONTHCAL_SetDayState:                  ## @MONTHCAL_SetDayState
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movq	%r14, %rcx
	callq	_TRACE
	movq	_MCS_DAYSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	_GMR_DAYSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_MONTHCAL_GetMonthRange
	cmpl	%r15d, %eax
	jne	LBB0_4
## %bb.3:
	movl	4(%rbx), %edi
	shll	$2, %r15d
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movl	$1, %r12d
	jmp	LBB0_4
LBB0_1:
	xorl	%r12d, %r12d
LBB0_4:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%p %d %p\n"

	.comm	_MCS_DAYSTATE,4,2               ## @MCS_DAYSTATE
	.comm	_GMR_DAYSTATE,4,2               ## @GMR_DAYSTATE
	.no_dead_strip	_MONTHCAL_SetDayState
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MONTHCAL_SetDayState
_MONTHCAL_SetDayState:                  ; @MONTHCAL_SetDayState
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_TRACE
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _MCS_DAYSTATE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MCS_DAYSTATE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _GMR_DAYSTATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GMR_DAYSTATE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_MONTHCAL_GetMonthRange
	mov	x8, x0
	mov	w0, #0
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x21, #4]
	lsl	w2, w20, #2
	mov	x1, x19
	bl	_memcpy
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p %d %p\n"

	.comm	_MCS_DAYSTATE,4,2               ; @MCS_DAYSTATE
	.comm	_GMR_DAYSTATE,4,2               ; @GMR_DAYSTATE
	.no_dead_strip	_MONTHCAL_SetDayState
.subsections_via_symbols
