	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function select_purposes
_select_purposes:                       ## @select_purposes
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	_IDC_CERTIFICATE_USAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	addl	$-128, %ebx
	cmpl	$2, %ebx
	ja	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movslq	%ebx, %rax
	leaq	l_switch.table.select_purposes(%rip), %rcx
	movq	(%rcx,%rax,8), %rbx
	movl	(%rbx), %esi
	movl	%r15d, %edi
	callq	_EnableWindow
	movl	(%rbx), %esi
	movl	%r15d, %edi
	callq	_redraw_states
	movq	_IDC_ADD_PURPOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	movl	(%rbx), %esi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_EnableWindow                   ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_CERTIFICATE_USAGES,4,2     ## @IDC_CERTIFICATE_USAGES
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_IDC_ADD_PURPOSE,4,2            ## @IDC_ADD_PURPOSE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_select_purposes
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.select_purposes
l_switch.table.select_purposes:
	.quad	_TRUE
	.quad	_FALSE
	.quad	_FALSE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function select_purposes
_select_purposes:                       ; @select_purposes
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _IDC_CERTIFICATE_USAGES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDC_CERTIFICATE_USAGES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetDlgItem
	sub	w8, w21, #128
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x9, l_switch.table.select_purposes@PAGE
Lloh4:
	add	x9, x9, l_switch.table.select_purposes@PAGEOFF
	ldr	x21, [x9, w8, sxtw #3]
	ldr	w1, [x21]
	bl	_EnableWindow
	ldr	w1, [x21]
	mov	x0, x20
	bl	_redraw_states
Lloh5:
	adrp	x8, _IDC_ADD_PURPOSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IDC_ADD_PURPOSE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	ldr	w1, [x21]
	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
	b	_EnableWindow
LBB0_2:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_CERTIFICATE_USAGES,4,2     ; @IDC_CERTIFICATE_USAGES
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_IDC_ADD_PURPOSE,4,2            ; @IDC_ADD_PURPOSE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_select_purposes
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.select_purposes
l_switch.table.select_purposes:
	.quad	_TRUE
	.quad	_FALSE
	.quad	_FALSE

.subsections_via_symbols
