	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carp_setrun
_carp_setrun:                           ## @carp_setrun
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_CARP_LOCK_ASSERT
	movq	40(%rbx), %rax
	movq	_IFF_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.1:
	movq	8(%rax), %rax
	movq	_LINK_STATE_UP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.2:
	cmpq	$0, (%rbx)
	jne	LBB0_4
## %bb.3:
	cmpq	$0, 8(%rbx)
	je	LBB0_11
LBB0_4:
	movq	_V_carp_allow@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.5:
	movl	16(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_10
## %bb.6:
	cmpl	$130, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.8:
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	$130, %esi
	callq	_carp_set_state
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_carp_setrun                    ## TAILCALL
LBB0_10:
	movl	20(%rbx), %eax
	movl	%eax, -24(%rbp)
	imull	$1000000, 24(%rbx), %eax        ## imm = 0xF4240
	leal	255(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$8, %ecx
	movl	%ecx, -20(%rbp)
	leaq	28(%rbx), %r14
	leaq	-24(%rbp), %rdi
	callq	_tvtohz
	movq	_carp_send_ad@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rcx
	callq	_callout_reset
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	addq	$28, %rbx
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_callout_stop                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_LINK_STATE_UP,8,3              ## @LINK_STATE_UP
	.comm	_V_carp_allow,4,2               ## @V_carp_allow
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"initialization complete"

	.comm	_carp_send_ad,4,2               ## @carp_send_ad
	.comm	_carp_master_down,4,2           ## @carp_master_down
	.no_dead_strip	_carp_setrun
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carp_setrun
_carp_setrun:                           ; @carp_setrun
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_CARP_LOCK_ASSERT
	ldr	x8, [x19, #40]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _IFF_UP@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IFF_UP@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_10
; %bb.1:
	ldr	x8, [x8, #8]
Lloh3:
	adrp	x9, _LINK_STATE_UP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LINK_STATE_UP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.2:
	ldr	x8, [x19]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
LBB0_4:
Lloh6:
	adrp	x8, _V_carp_allow@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V_carp_allow@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.5:
	ldr	w8, [x19, #16]
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.6:
	cmp	w8, #130
	b.eq	LBB0_11
; %bb.7:
	cmp	w8, #129
	b.ne	LBB0_10
; %bb.8:
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #130
	bl	_carp_set_state
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_carp_setrun
LBB0_9:
	ldp	w8, w9, [x19, #20]
	mov	w10, #16960
	movk	w10, #15, lsl #16
	mul	w9, w9, w10
	add	w10, w9, #255
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #8
	stp	w8, w9, [sp, #8]
	add	x20, x19, #28
	add	x0, sp, #8
	bl	_tvtohz
	mov	x1, x0
Lloh11:
	adrp	x8, _carp_send_ad@GOTPAGE
Lloh12:
	ldr	x8, [x8, _carp_send_ad@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x19
	bl	_callout_reset
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_11:
	add	x0, x19, #28
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_callout_stop
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_LINK_STATE_UP,8,3              ; @LINK_STATE_UP
	.comm	_V_carp_allow,4,2               ; @V_carp_allow
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"initialization complete"

	.comm	_carp_send_ad,4,2               ; @carp_send_ad
	.comm	_carp_master_down,4,2           ; @carp_master_down
	.no_dead_strip	_carp_setrun
.subsections_via_symbols
