	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Meter_setMode                  ## -- Begin function Meter_setMode
	.p2align	4, 0x90
_Meter_setMode:                         ## @Meter_setMode
	.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, %rbx
	testl	%esi, %esi
	jle	LBB0_2
## %bb.1:
	cmpl	%esi, (%rbx)
	je	LBB0_7
LBB0_2:
	testl	%esi, %esi
	movl	$1, %r14d
	cmovnel	%esi, %r14d
	movq	_LAST_METERMODE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r14d
	setl	%dil
	callq	_assert
	movq	%rbx, %rdi
	callq	_Meter_defaultMode
	movq	_CUSTOM_METERMODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_Meter_drawFn
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_Meter_updateModeFn
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_Meter_updateMode
	jmp	LBB0_6
LBB0_5:
	xorl	%edi, %edi
	testl	%r14d, %r14d
	setg	%dil
	callq	_assert
	movq	16(%rbx), %rdi
	callq	_free
	movq	$0, 16(%rbx)
	movq	_Meter_modes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_6:
	movl	%r14d, (%rbx)
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LAST_METERMODE,4,2             ## @LAST_METERMODE
	.comm	_CUSTOM_METERMODE,8,3           ## @CUSTOM_METERMODE
	.comm	_Meter_modes,8,3                ## @Meter_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Meter_setMode                  ; -- Begin function Meter_setMode
	.p2align	2
_Meter_setMode:                         ; @Meter_setMode
	.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
	cmp	w1, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, w1
	b.eq	LBB0_7
LBB0_2:
	cmp	w1, #0
	csinc	w20, w1, wzr, ne
Lloh0:
	adrp	x8, _LAST_METERMODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LAST_METERMODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, w8
	cset	w0, lt
	bl	_assert
	mov	x0, x19
	bl	_Meter_defaultMode
Lloh3:
	adrp	x8, _CUSTOM_METERMODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CUSTOM_METERMODE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_Meter_drawFn
	str	w0, [x19, #8]
	mov	x0, x19
	bl	_Meter_updateModeFn
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_Meter_updateMode
	b	LBB0_6
LBB0_5:
	cmp	w20, #0
	cset	w0, gt
	bl	_assert
	ldr	x0, [x19, #16]
	bl	_free
Lloh6:
	adrp	x8, _Meter_modes@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Meter_modes@GOTPAGEOFF]
	str	xzr, [x19, #16]
Lloh8:
	ldr	x8, [x8]
	ldr	x8, [x8, w20, sxtw #3]
	ldr	d0, [x8]
	stur	d0, [x19, #4]
LBB0_6:
	str	w20, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LAST_METERMODE,4,2             ; @LAST_METERMODE
	.comm	_CUSTOM_METERMODE,8,3           ; @CUSTOM_METERMODE
	.comm	_Meter_modes,8,3                ; @Meter_modes
.subsections_via_symbols
