	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_advertisement_state_machine_stop ## -- Begin function advertisement_state_machine_stop
	.p2align	4, 0x90
_advertisement_state_machine_stop:      ## @advertisement_state_machine_stop
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	$0, -44(%rbp)
	movq	_advertisement_state_machine_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_eloop_cancel_timeout
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.1:
	cmpq	$0, (%r14)
	js	LBB0_7
## %bb.2:
	leaq	8(%r14), %rbx
	movq	_ADVERTISE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	$0, 8(%r14)
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_os_memset
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_UPNP_MULTICAST_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inet_addr
	movl	%eax, -52(%rbp)
	movq	_UPNP_MULTICAST_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, -56(%rbp)
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_wpabuf_free
	incq	(%rbx)
	cmpl	$0, -44(%rbp)
	jne	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	leaq	-44(%rbp), %rdx
	callq	_next_advertisement
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r13
	movq	(%r14), %r15
	movq	%rax, %rdi
	callq	_wpabuf_head
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_wpabuf_len
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	leaq	-56(%rbp), %r8
	movl	$12, %r9d
	callq	_sendto
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %r12
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_strerror
	movl	%r15d, %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movq	%r12, %rbx
	movl	%eax, %ecx
	callq	_wpa_printf
	jmp	LBB0_6
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_advertisement_state_machine_handler,4,2 ## @advertisement_state_machine_handler
	.comm	_ADVERTISE_DOWN,4,2             ## @ADVERTISE_DOWN
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_UPNP_MULTICAST_ADDRESS,4,2     ## @UPNP_MULTICAST_ADDRESS
	.comm	_UPNP_MULTICAST_PORT,4,2        ## @UPNP_MULTICAST_PORT
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS UPnP: Advertisement sendto failed: %d (%s)"

	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_advertisement_state_machine_stop ; -- Begin function advertisement_state_machine_stop
	.p2align	2
_advertisement_state_machine_stop:      ; @advertisement_state_machine_stop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _advertisement_state_machine_handler@GOTPAGE
Lloh1:
	ldr	x8, [x8, _advertisement_state_machine_handler@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, #0
	mov	x2, x19
	bl	_eloop_cancel_timeout
	cbz	w20, LBB0_7
; %bb.1:
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_7
; %bb.2:
	add	x20, x19, #8
Lloh3:
	adrp	x8, _ADVERTISE_DOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADVERTISE_DOWN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	str	xzr, [x19, #8]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_os_memset
Lloh6:
	adrp	x8, _AF_INET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh9:
	adrp	x8, _UPNP_MULTICAST_ADDRESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UPNP_MULTICAST_ADDRESS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_inet_addr
	str	w0, [sp, #4]
Lloh12:
	adrp	x8, _UPNP_MULTICAST_PORT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UPNP_MULTICAST_PORT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [sp]
Lloh15:
	adrp	x25, _MSG_INFO@GOTPAGE
Lloh16:
	ldr	x25, [x25, _MSG_INFO@GOTPAGEOFF]
Lloh17:
	adrp	x26, _errno@GOTPAGE
Lloh18:
	ldr	x26, [x26, _errno@GOTPAGEOFF]
Lloh19:
	adrp	x21, l_.str@PAGE
Lloh20:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_wpabuf_free
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_next_advertisement
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	ldr	x23, [x19]
	bl	_wpabuf_head
	mov	x24, x0
	mov	x0, x22
	bl	_wpabuf_len
	mov	x2, x0
	mov	x4, sp
	mov	x0, x23
	mov	x1, x24
	mov	w3, #0
	mov	w5, #12
	bl	_sendto
	tbz	x0, #63, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w23, [x25]
	ldr	w24, [x26]
	mov	x0, x24
	bl	_strerror
	mov	x3, x0
	mov	x0, x23
	mov	x1, x21
	mov	x2, x24
	bl	_wpa_printf
	b	LBB0_3
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_advertisement_state_machine_handler,4,2 ; @advertisement_state_machine_handler
	.comm	_ADVERTISE_DOWN,4,2             ; @ADVERTISE_DOWN
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_UPNP_MULTICAST_ADDRESS,4,2     ; @UPNP_MULTICAST_ADDRESS
	.comm	_UPNP_MULTICAST_PORT,4,2        ; @UPNP_MULTICAST_PORT
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS UPnP: Advertisement sendto failed: %d (%s)"

	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
