	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ozone_set_color_theme          ## -- Begin function ozone_set_color_theme
	.p2align	4, 0x90
_ozone_set_color_theme:                 ## @ozone_set_color_theme
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_5
## %bb.2:
	cmpl	$1, %r14d
	jne	LBB0_3
## %bb.4:
	movq	_ozone_theme_dark@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_ozone_theme_light@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_ozone_default_theme@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_6:
	movq	%rax, (%rbx)
	movl	32(%rbx), %edi
	movl	16(%rax), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	28(%rbx), %edi
	movq	(%rbx), %rax
	movl	12(%rax), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	24(%rbx), %edi
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	20(%rbx), %edi
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	16(%rbx), %edi
	movq	_ozone_pure_white@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	12(%rbx), %edi
	movl	(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	8(%rbx), %edi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_ozone_restart_cursor_animation
	movq	_last_color_theme@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_7:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ozone_default_theme,8,3        ## @ozone_default_theme
	.comm	_ozone_theme_dark,20,2          ## @ozone_theme_dark
	.comm	_ozone_theme_light,20,2         ## @ozone_theme_light
	.comm	_ozone_pure_white,4,2           ## @ozone_pure_white
	.comm	_last_color_theme,4,2           ## @last_color_theme
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ozone_set_color_theme          ; -- Begin function ozone_set_color_theme
	.p2align	2
_ozone_set_color_theme:                 ; @ozone_set_color_theme
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_2
; %bb.1:
	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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ozone_default_theme@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ozone_default_theme@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ozone_theme_light@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ozone_theme_light@GOTPAGEOFF]
	cmp	w1, #1
Lloh5:
	adrp	x10, _ozone_theme_dark@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ozone_theme_dark@GOTPAGEOFF]
	csel	x8, x8, x10, ne
	cmp	w1, #0
	csel	x8, x9, x8, eq
	str	x8, [x0]
	ldr	w0, [x0, #32]
	ldr	w1, [x8, #16]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x20, #28]
	ldr	x8, [x20]
	ldr	w1, [x8, #12]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x20, #24]
	ldr	x8, [x20]
	ldr	w1, [x8, #8]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x20, #20]
	ldr	x8, [x20]
	ldr	w1, [x8, #4]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x20, #16]
Lloh7:
	adrp	x21, _ozone_pure_white@GOTPAGE
Lloh8:
	ldr	x21, [x21, _ozone_pure_white@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x20, #12]
	ldr	w1, [x21]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x20, #8]
	ldr	x8, [x20]
	ldr	w1, [x8]
	mov	w2, #4
	bl	_memcpy
	mov	x0, x20
	bl	_ozone_restart_cursor_animation
Lloh9:
	adrp	x8, _last_color_theme@GOTPAGE
Lloh10:
	ldr	x8, [x8, _last_color_theme@GOTPAGEOFF]
Lloh11:
	str	w19, [x8]
	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
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ozone_default_theme,8,3        ; @ozone_default_theme
	.comm	_ozone_theme_dark,20,2          ; @ozone_theme_dark
	.comm	_ozone_theme_light,20,2         ; @ozone_theme_light
	.comm	_ozone_pure_white,4,2           ; @ozone_pure_white
	.comm	_last_color_theme,4,2           ; @last_color_theme
.subsections_via_symbols
