	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function event_addr_failure
_event_addr_failure:                    ## @event_addr_failure
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %r14
	movq	(%rax), %r8
	incq	%r8
	movq	%r8, (%rax)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	12(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%rbx), %rax
	movq	(%rax), %rcx
	movq	_MAX_FAILURES@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	movl	$1, %esi
	jmp	LBB0_2
LBB0_3:
	movl	(%r15), %edi
	movl	12(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%rbx), %rdi
	addq	$8, %rdi
	callq	_dl_list_del
	movq	(%rbx), %rdi
	callq	_subscr_addr_delete
	movq	$0, (%rbx)
	leaq	4(%r14), %rdi
	callq	_dl_list_empty
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r14, %rdi
	callq	_dl_list_del
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_subscription_destroy           ## TAILCALL
LBB0_4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_event_retry                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS UPnP: Failed to send event %p to %s (num_failures=%u)"

	.comm	_MAX_FAILURES,8,3               ## @MAX_FAILURES
L_.str.1:                               ## @.str.1
	.asciz	"WPS UPnP: Deleting subscription %p address %s due to errors"

L_.str.2:                               ## @.str.2
	.asciz	"WPS UPnP: Removing subscription %p with no addresses"

	.no_dead_strip	_event_addr_failure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function event_addr_failure
_event_addr_failure:                    ; @event_addr_failure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	ldp	x8, x19, [x0]
	ldr	x9, [x8]
	add	x9, x9, #1
	str	x9, [x8]
Lloh0:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w8, [x8, #12]
	stp	x8, x9, [sp, #8]
	str	x20, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x20]
	ldr	x9, [x8]
Lloh4:
	adrp	x10, _MAX_FAILURES@GOTPAGE
Lloh5:
	ldr	x10, [x10, _MAX_FAILURES@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #1
	b	LBB0_5
LBB0_2:
	ldr	w0, [x21]
	ldr	w8, [x8, #12]
	stp	x19, x8, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x20]
	add	x0, x8, #8
	bl	_dl_list_del
	ldr	x0, [x20]
	bl	_subscr_addr_delete
	str	xzr, [x20]
	add	x0, x19, #4
	bl	_dl_list_empty
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x21]
	str	x19, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_dl_list_del
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_subscription_destroy
LBB0_4:
	mov	x0, x20
	mov	w1, #0
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_event_retry
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS UPnP: Failed to send event %p to %s (num_failures=%u)"

	.comm	_MAX_FAILURES,8,3               ; @MAX_FAILURES
l_.str.1:                               ; @.str.1
	.asciz	"WPS UPnP: Deleting subscription %p address %s due to errors"

l_.str.2:                               ; @.str.2
	.asciz	"WPS UPnP: Removing subscription %p with no addresses"

	.no_dead_strip	_event_addr_failure
.subsections_via_symbols
