	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carp_set_state
_carp_set_state:                        ## @carp_set_state
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_CARP_LOCK_ASSERT
	cmpl	%r14d, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_CARP_STATES@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	_IFNAMSIZ@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	addl	$5, %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	(%r15), %esi
	addl	$5, %esi
	movl	4(%rbx), %ecx
	movq	8(%rbx), %rax
	movq	(%rax), %r8
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	callq	_snprintf
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%r12, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_CARP_LOG
	movl	%r14d, (%rbx)
	leaq	L_.str.2(%rip), %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_devctl_notify
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CARP_STATES,8,3                ## @CARP_STATES
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u@%s"

L_.str.1:                               ## @.str.1
	.asciz	"%s: %s -> %s (%s)\n"

L_.str.2:                               ## @.str.2
	.asciz	"CARP"

	.no_dead_strip	_carp_set_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carp_set_state
_carp_set_state:                        ; @carp_set_state
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_CARP_LOCK_ASSERT
	ldr	w8, [x20]
	cmp	w8, w19
	b.eq	LBB0_2
; %bb.1:
	mov	x24, sp
Lloh3:
	adrp	x8, _CARP_STATES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CARP_STATES@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
Lloh6:
	adrp	x12, _IFNAMSIZ@GOTPAGE
Lloh7:
	ldr	x12, [x12, _IFNAMSIZ@GOTPAGEOFF]
	ldr	w8, [x12]
	add	w8, w8, #5
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	ldr	w8, [x12]
	add	w1, w8, #5
	ldr	w3, [x20, #4]
	ldr	x8, [x20, #8]
	ldr	x4, [x8]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	bl	_snprintf
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	mov	x2, x22
	mov	x3, x22
	mov	x4, x21
	bl	_CARP_LOG
	str	w19, [x20]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x23
	mov	x2, x22
	mov	x3, #0
	bl	_devctl_notify
	mov	sp, x24
LBB0_2:
	ldur	x8, [x29, #-56]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CARP_STATES,8,3                ; @CARP_STATES
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u@%s"

l_.str.1:                               ; @.str.1
	.asciz	"%s: %s -> %s (%s)\n"

l_.str.2:                               ; @.str.2
	.asciz	"CARP"

	.no_dead_strip	_carp_set_state
.subsections_via_symbols
