	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setcarp_vhid
_setcarp_vhid:                          ## @setcarp_vhid
	.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	%rcx, %rbx
	callq	_atoi
	movq	_carpr_vhid@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_CARP_MAXVHID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	testq	%rax, %rax
	jle	LBB0_2
## %bb.1:
	cmpq	%rdx, %rax
	jle	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_3:
	movq	8(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	movq	_setcarp_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_callback_register              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_carpr_vhid,8,3                 ## @carpr_vhid
	.comm	_CARP_MAXVHID,8,3               ## @CARP_MAXVHID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vhid must be greater than 0 and less than %u"

L_.str.1:                               ## @.str.1
	.asciz	"%s doesn't support carp(4)"

	.comm	_setcarp_callback,4,2           ## @setcarp_callback
	.no_dead_strip	_setcarp_vhid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setcarp_vhid
_setcarp_vhid:                          ; @setcarp_vhid
	.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, x3
	bl	_atoi
Lloh0:
	adrp	x8, _carpr_vhid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _carpr_vhid@GOTPAGEOFF]
Lloh2:
	str	x0, [x8]
Lloh3:
	adrp	x8, _CARP_MAXVHID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CARP_MAXVHID@GOTPAGEOFF]
Lloh5:
	ldr	x2, [x8]
	cmp	x0, #1
	b.lt	LBB0_2
; %bb.1:
	cmp	x0, x2
	b.le	LBB0_3
LBB0_2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_3:
	ldr	x2, [x19, #8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
Lloh10:
	adrp	x8, _setcarp_callback@GOTPAGE
Lloh11:
	ldr	x8, [x8, _setcarp_callback@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_callback_register
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_carpr_vhid,8,3                 ; @carpr_vhid
	.comm	_CARP_MAXVHID,8,3               ; @CARP_MAXVHID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vhid must be greater than 0 and less than %u"

l_.str.1:                               ; @.str.1
	.asciz	"%s doesn't support carp(4)"

	.comm	_setcarp_callback,4,2           ; @setcarp_callback
	.no_dead_strip	_setcarp_vhid
.subsections_via_symbols
