	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad_churn_machine
_ad_churn_machine:                      ## @ad_churn_machine
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movq	_AD_PORT_CHURNED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	_AD_CHURN_MONITOR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	%rax, 16(%rbx)
	movq	_AD_ACTOR_CHURN_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	___ad_timer_to_ticks
	movq	%rax, 56(%rbx)
	movq	_AD_PARTNER_CHURN_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	___ad_timer_to_ticks
	jmp	LBB0_6
LBB0_2:
	movq	56(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	decq	%rax
	movq	%rax, 56(%rbx)
LBB0_4:
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	decq	%rax
LBB0_6:
	movq	%rax, 40(%rbx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD_PORT_CHURNED,4,2            ## @AD_PORT_CHURNED
	.comm	_AD_CHURN_MONITOR,8,3           ## @AD_CHURN_MONITOR
	.comm	_AD_ACTOR_CHURN_TIMER,4,2       ## @AD_ACTOR_CHURN_TIMER
	.comm	_AD_PARTNER_CHURN_TIMER,4,2     ## @AD_PARTNER_CHURN_TIMER
	.comm	_AD_STATE_SYNCHRONIZATION,4,2   ## @AD_STATE_SYNCHRONIZATION
	.comm	_AD_NO_CHURN,8,3                ## @AD_NO_CHURN
	.comm	_AD_CHURN,8,3                   ## @AD_CHURN
	.no_dead_strip	_ad_churn_machine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad_churn_machine
_ad_churn_machine:                      ; @ad_churn_machine
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _AD_PORT_CHURNED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AD_PORT_CHURNED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	bic	w8, w8, w9
	str	w8, [x19]
Lloh3:
	adrp	x8, _AD_CHURN_MONITOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AD_CHURN_MONITOR@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #8]
Lloh6:
	adrp	x8, _AD_ACTOR_CHURN_TIMER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AD_ACTOR_CHURN_TIMER@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #0
	bl	___ad_timer_to_ticks
	str	x0, [x19, #56]
Lloh9:
	adrp	x8, _AD_PARTNER_CHURN_TIMER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AD_PARTNER_CHURN_TIMER@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w1, #0
	bl	___ad_timer_to_ticks
	str	x0, [x19, #40]
	b	LBB0_6
LBB0_2:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_4
; %bb.3:
	sub	x8, x8, #1
	str	x8, [x19, #56]
LBB0_4:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_6
; %bb.5:
	sub	x8, x8, #1
	str	x8, [x19, #40]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AD_PORT_CHURNED,4,2            ; @AD_PORT_CHURNED
	.comm	_AD_CHURN_MONITOR,8,3           ; @AD_CHURN_MONITOR
	.comm	_AD_ACTOR_CHURN_TIMER,4,2       ; @AD_ACTOR_CHURN_TIMER
	.comm	_AD_PARTNER_CHURN_TIMER,4,2     ; @AD_PARTNER_CHURN_TIMER
	.comm	_AD_STATE_SYNCHRONIZATION,4,2   ; @AD_STATE_SYNCHRONIZATION
	.comm	_AD_NO_CHURN,8,3                ; @AD_NO_CHURN
	.comm	_AD_CHURN,8,3                   ; @AD_CHURN
	.no_dead_strip	_ad_churn_machine
.subsections_via_symbols
