	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function toggle_usage
_toggle_usage:                          ## @toggle_usage
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	_IDC_CERTIFICATE_USAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %ebx
	movq	_LVIF_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	%r14d, -56(%rbp)
	movq	$0, -40(%rbp)
	movq	_LVIS_STATEIMAGEMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_LVM_GETITEMW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %r15
	movl	%ebx, %edi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	callq	_SendMessageW
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	-52(%rbp), %eax
	sarl	$12, %eax
	movq	_CheckBitmapIndexChecked@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpl	%edi, %eax
	jne	LBB0_3
## %bb.2:
	movq	_CheckBitmapIndexUnchecked@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_3:
	callq	_INDEXTOSTATEIMAGEMASK
	movl	%eax, -52(%rbp)
	movq	_LVM_SETITEMSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	_SendMessageW
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_CERTIFICATE_USAGES,4,2     ## @IDC_CERTIFICATE_USAGES
	.comm	_LVIF_STATE,4,2                 ## @LVIF_STATE
	.comm	_LVIS_STATEIMAGEMASK,4,2        ## @LVIS_STATEIMAGEMASK
	.comm	_LVM_GETITEMW,4,2               ## @LVM_GETITEMW
	.comm	_CheckBitmapIndexChecked,4,2    ## @CheckBitmapIndexChecked
	.comm	_CheckBitmapIndexUnchecked,4,2  ## @CheckBitmapIndexUnchecked
	.comm	_LVM_SETITEMSTATE,4,2           ## @LVM_SETITEMSTATE
	.no_dead_strip	_toggle_usage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function toggle_usage
_toggle_usage:                          ; @toggle_usage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _IDC_CERTIFICATE_USAGES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDC_CERTIFICATE_USAGES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x20, x0
Lloh3:
	adrp	x8, _LVIF_STATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LVIF_STATE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	xzr, [sp, #16]
Lloh6:
	adrp	x8, _LVIS_STATEIMAGEMASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LVIS_STATEIMAGEMASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w19, [sp]
	str	w8, [sp, #8]
Lloh9:
	adrp	x8, _LVM_GETITEMW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LVM_GETITEMW@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x3, sp
	mov	w2, #0
	bl	_SendMessageW
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [sp, #4]
Lloh12:
	adrp	x9, _CheckBitmapIndexChecked@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CheckBitmapIndexChecked@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _CheckBitmapIndexUnchecked@GOTPAGE
Lloh16:
	ldr	x10, [x10, _CheckBitmapIndexUnchecked@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	w9, w8, asr #12
	csel	w0, w10, w9, eq
	bl	_INDEXTOSTATEIMAGEMASK
	str	w0, [sp, #4]
Lloh18:
	adrp	x8, _LVM_SETITEMSTATE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LVM_SETITEMSTATE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x3, sp
	mov	x0, x20
	mov	x2, x19
	bl	_SendMessageW
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_CERTIFICATE_USAGES,4,2     ; @IDC_CERTIFICATE_USAGES
	.comm	_LVIF_STATE,4,2                 ; @LVIF_STATE
	.comm	_LVIS_STATEIMAGEMASK,4,2        ; @LVIS_STATEIMAGEMASK
	.comm	_LVM_GETITEMW,4,2               ; @LVM_GETITEMW
	.comm	_CheckBitmapIndexChecked,4,2    ; @CheckBitmapIndexChecked
	.comm	_CheckBitmapIndexUnchecked,4,2  ; @CheckBitmapIndexUnchecked
	.comm	_LVM_SETITEMSTATE,4,2           ; @LVM_SETITEMSTATE
	.no_dead_strip	_toggle_usage
.subsections_via_symbols
