	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ccp_SetOpenMode                ## -- Begin function ccp_SetOpenMode
	.p2align	4, 0x90
_ccp_SetOpenMode:                       ## @ccp_SetOpenMode
	.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	%rdi, %r12
	movq	_CCP_NEG_TOTAL@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_9
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_IsEnabled
	testq	%rax, %rax
	jne	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
## %bb.4:
	movq	_OPEN_PASSIVE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%r12)
	testl	%eax, %eax
	jle	LBB0_11
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_IsAccepted
	testq	%rax, %rax
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_9:
	movq	_OPEN_PASSIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	xorl	%eax, %eax
	movq	%r15, 8(%r12)
	jmp	LBB0_13
LBB0_10:
	movl	$1, %eax
	movq	%r15, 8(%r12)
	jmp	LBB0_13
LBB0_12:
	movl	$1, %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCP_NEG_TOTAL,4,2              ## @CCP_NEG_TOTAL
	.comm	_OPEN_PASSIVE,8,3               ## @OPEN_PASSIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ccp_SetOpenMode                ; -- Begin function ccp_SetOpenMode
	.p2align	2
_ccp_SetOpenMode:                       ; @ccp_SetOpenMode
	.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, x0
Lloh0:
	adrp	x20, _CCP_NEG_TOTAL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CCP_NEG_TOTAL@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #0
	b.le	LBB0_9
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x21, lsl #2]
	bl	_IsEnabled
	cbnz	x0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_2
; %bb.4:
Lloh2:
	adrp	x9, _OPEN_PASSIVE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OPEN_PASSIVE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	str	x9, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x21, lsl #2]
	bl	_IsAccepted
	cbnz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_6
LBB0_8:
	mov	w0, #0
	b	LBB0_12
LBB0_9:
	mov	w0, #0
Lloh5:
	adrp	x8, _OPEN_PASSIVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OPEN_PASSIVE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_12
LBB0_10:
	mov	x8, #0
	mov	w0, #1
	str	xzr, [x19, #8]
	b	LBB0_12
LBB0_11:
	mov	w0, #1
LBB0_12:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CCP_NEG_TOTAL,4,2              ; @CCP_NEG_TOTAL
	.comm	_OPEN_PASSIVE,8,3               ; @OPEN_PASSIVE
.subsections_via_symbols
