	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carp_send_ad_error
_carp_send_ad_error:                    ## @carp_send_ad_error
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %rax
	testl	%esi, %esi
	je	LBB0_6
## %bb.1:
	movl	%esi, %ebx
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.2:
	incq	%rax
	movq	%rax, (%r14)
LBB0_3:
	movq	_CARP_SENDAD_MAX_ERRORS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%rsp, %r12
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$20, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	16(%r14), %rax
	movl	(%rax), %ecx
	leaq	_carp_send_ad_error.fmt(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_sprintf
	movq	_V_carp_senderr_adj@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_carp_demote_adj
	movq	%r12, %rsp
LBB0_5:
	movq	$0, 8(%r14)
	jmp	LBB0_10
LBB0_6:
	movq	_CARP_SENDAD_MAX_ERRORS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_9
## %bb.7:
	movq	8(%r14), %rax
	incq	%rax
	movq	%rax, 8(%r14)
	movq	_CARP_SENDAD_MIN_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_8
LBB0_9:
	movq	$0, (%r14)
	jmp	LBB0_10
LBB0_8:
	movq	%rsp, %r12
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	16(%r14), %rax
	movl	(%rax), %edx
	leaq	_carp_send_ad_error.fmt.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	movq	_V_carp_senderr_adj@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_carp_demote_adj
	movq	$0, (%r14)
	movq	%r12, %rsp
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_CARP_SENDAD_MAX_ERRORS,8,3     ## @CARP_SENDAD_MAX_ERRORS
	.section	__TEXT,__const
	.p2align	4                               ## @carp_send_ad_error.fmt
_carp_send_ad_error.fmt:
	.asciz	"send error %d on %s"

	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.comm	_V_carp_senderr_adj,4,2         ## @V_carp_senderr_adj
	.comm	_CARP_SENDAD_MIN_SUCCESS,8,3    ## @CARP_SENDAD_MIN_SUCCESS
_carp_send_ad_error.fmt.1:              ## @carp_send_ad_error.fmt.1
	.asciz	"send ok on %s"

	.no_dead_strip	_carp_send_ad_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carp_send_ad_error
_carp_send_ad_error:                    ; @carp_send_ad_error
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x8, [x0]
	cbz	w1, LBB0_6
; %bb.1:
	mov	x2, x1
Lloh3:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.2:
	add	x8, x8, #1
	str	x8, [x19]
LBB0_3:
Lloh6:
	adrp	x9, _CARP_SENDAD_MAX_ERRORS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CARP_SENDAD_MAX_ERRORS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	x21, sp
Lloh9:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh11:
	ldrsw	x8, [x8]
	add	x9, x8, #20
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #35
	and	x8, x8, #0xfffffffffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	str	x8, [sp, #-16]!
Lloh14:
	adrp	x1, _carp_send_ad_error.fmt@PAGE
Lloh15:
	add	x1, x1, _carp_send_ad_error.fmt@PAGEOFF
	mov	x0, x20
	bl	_sprintf
	add	sp, sp, #16
Lloh16:
	adrp	x8, _V_carp_senderr_adj@GOTPAGE
Lloh17:
	ldr	x8, [x8, _V_carp_senderr_adj@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_carp_demote_adj
	mov	sp, x21
LBB0_5:
	str	xzr, [x19, #8]
	b	LBB0_10
LBB0_6:
Lloh19:
	adrp	x9, _CARP_SENDAD_MAX_ERRORS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _CARP_SENDAD_MAX_ERRORS@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_8
; %bb.7:
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
Lloh22:
	adrp	x9, _CARP_SENDAD_MIN_SUCCESS@GOTPAGE
Lloh23:
	ldr	x9, [x9, _CARP_SENDAD_MIN_SUCCESS@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_9
LBB0_8:
	str	xzr, [x19]
	b	LBB0_10
LBB0_9:
	mov	x21, sp
Lloh25:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh27:
	ldrsw	x8, [x8]
	add	x9, x8, #14
Lloh28:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh29:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #29
	and	x8, x8, #0xfffffffffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x8, [x19, #16]
	ldr	w2, [x8]
Lloh30:
	adrp	x1, _carp_send_ad_error.fmt.1@PAGE
Lloh31:
	add	x1, x1, _carp_send_ad_error.fmt.1@PAGEOFF
	mov	x0, x20
	bl	_sprintf
Lloh32:
	adrp	x8, _V_carp_senderr_adj@GOTPAGE
Lloh33:
	ldr	x8, [x8, _V_carp_senderr_adj@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w0, w8
	mov	x1, x20
	bl	_carp_demote_adj
	str	xzr, [x19]
	mov	sp, x21
LBB0_10:
	ldur	x8, [x29, #-40]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #32
	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
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_CARP_SENDAD_MAX_ERRORS,8,3     ; @CARP_SENDAD_MAX_ERRORS
	.section	__TEXT,__const
_carp_send_ad_error.fmt:                ; @carp_send_ad_error.fmt
	.asciz	"send error %d on %s"

	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.comm	_V_carp_senderr_adj,4,2         ; @V_carp_senderr_adj
	.comm	_CARP_SENDAD_MIN_SUCCESS,8,3    ; @CARP_SENDAD_MIN_SUCCESS
_carp_send_ad_error.fmt.1:              ; @carp_send_ad_error.fmt.1
	.asciz	"send ok on %s"

	.no_dead_strip	_carp_send_ad_error
.subsections_via_symbols
