	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctr_down
_ctr_down:                              ## @ctr_down
	.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	(%rdi), %eax
	movq	_CAPI_CTR_DETECTED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.1:
	movq	_CAPI_CTR_DETACHED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.2:
	movq	%rdi, %r14
	movl	%esi, (%rdi)
	movq	24(%rdi), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	leaq	20(%r14), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	16(%r14), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	8(%r14), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_CAPI_MAXAPPL@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jg	LBB0_3
LBB0_6:
	addq	$4, %r14
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up_interruptible_all      ## TAILCALL
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	(%r15), %ebx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movl	%ebx, %edi
	callq	___get_capi_appl_by_nr
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_capi_ctr_put
	jmp	LBB0_5
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAPI_CTR_DETECTED,4,2          ## @CAPI_CTR_DETECTED
	.comm	_CAPI_CTR_DETACHED,4,2          ## @CAPI_CTR_DETACHED
	.comm	_CAPI_MAXAPPL,4,2               ## @CAPI_MAXAPPL
	.no_dead_strip	_ctr_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctr_down
_ctr_down:                              ; @ctr_down
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _CAPI_CTR_DETECTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CAPI_CTR_DETECTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _CAPI_CTR_DETACHED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CAPI_CTR_DETACHED@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	x19, x0
	str	w1, [x0]
	ldr	x0, [x0, #24]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	add	x0, x19, #20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, x19, #16
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x0, [x19, #8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh6:
	adrp	x21, _CAPI_MAXAPPL@GOTPAGE
Lloh7:
	ldr	x21, [x21, _CAPI_MAXAPPL@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	w20, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x21]
	cmp	w20, w8
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w20, w20, #1
	mov	x0, x20
	bl	___get_capi_appl_by_nr
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_capi_ctr_put
	b	LBB0_4
LBB0_7:
	add	x0, x19, #4
	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	_wake_up_interruptible_all
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CAPI_CTR_DETECTED,4,2          ; @CAPI_CTR_DETECTED
	.comm	_CAPI_CTR_DETACHED,4,2          ; @CAPI_CTR_DETACHED
	.comm	_CAPI_MAXAPPL,4,2               ; @CAPI_MAXAPPL
	.no_dead_strip	_ctr_down
.subsections_via_symbols
