	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setcarp_state
_setcarp_state:                         ## @setcarp_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_carpr_vhid@GOTPCREL(%rip), %rax
	cmpl	$-1, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_2:
	movq	_CARP_MAXSTATE@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	js	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	movq	_carp_states@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movq	%r15, %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%rbx), %rax
	movslq	(%r14), %rcx
	cmpq	%rcx, %rbx
	movq	%rax, %rbx
	jl	LBB0_4
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_errx                           ## TAILCALL
LBB0_7:
	movq	_carpr_state@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_carpr_vhid,4,2                 ## @carpr_vhid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"state requires vhid"

	.comm	_CARP_MAXSTATE,4,2              ## @CARP_MAXSTATE
	.comm	_carp_states,8,3                ## @carp_states
	.comm	_carpr_state,4,2                ## @carpr_state
L_.str.1:                               ## @.str.1
	.asciz	"unknown state"

	.no_dead_strip	_setcarp_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setcarp_state
_setcarp_state:                         ; @setcarp_state
	.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	x8, _carpr_vhid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _carpr_vhid@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w8, #1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
Lloh5:
	adrp	x20, _CARP_MAXSTATE@GOTPAGE
Lloh6:
	ldr	x20, [x20, _CARP_MAXSTATE@GOTPAGEOFF]
	ldr	w8, [x20]
	tbnz	w8, #31, LBB0_6
; %bb.3:
	mov	x21, #0
Lloh7:
	adrp	x22, _carp_states@GOTPAGE
Lloh8:
	ldr	x22, [x22, _carp_states@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w0, [x8, x21, lsl #2]
	mov	x1, x19
	bl	_strcasecmp
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x21, #1
	ldrsw	x9, [x20]
	cmp	x21, x9
	mov	x21, x8
	b.lt	LBB0_4
LBB0_6:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #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
	b	_errx
LBB0_7:
Lloh11:
	adrp	x8, _carpr_state@GOTPAGE
Lloh12:
	ldr	x8, [x8, _carpr_state@GOTPAGEOFF]
Lloh13:
	str	w21, [x8]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_carpr_vhid,4,2                 ; @carpr_vhid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"state requires vhid"

	.comm	_CARP_MAXSTATE,4,2              ; @CARP_MAXSTATE
	.comm	_carp_states,8,3                ; @carp_states
	.comm	_carpr_state,4,2                ; @carpr_state
l_.str.1:                               ; @.str.1
	.asciz	"unknown state"

	.no_dead_strip	_setcarp_state
.subsections_via_symbols
