	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msearchreply_state_machine_start
_msearchreply_state_machine_start:      ## @msearchreply_state_machine_start
	.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
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_dl_list_len
	movl	%eax, %ebx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_MAX_MSEARCH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_5
## %bb.1:
	movl	$24, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	movq	_MSEARCH_REPLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	addq	$4, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_os_memcpy
	xorl	%eax, %eax
	callq	_os_random
	movzbl	%al, %eax
	imull	%eax, %r15d
	imull	$1000, %r15d, %eax              ## imm = 0x3E8
	sarl	$8, %eax
	movslq	%eax, %rsi
	imulq	$274877907, %rsi, %rdi          ## imm = 0x10624DD3
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$38, %rdi
	addl	%eax, %edi
	imull	$1000, %edi, %eax               ## imm = 0x3E8
	subl	%eax, %esi
	movq	_msearchreply_state_machine_handler@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
                                        ## kill: def $edi killed $edi killed $rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r14, %rcx
	movq	%rbx, %r8
	callq	_eloop_register_timeout
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r15), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_eloop_cancel_timeout
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_os_free                        ## TAILCALL
LBB0_5:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dl_list_add                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS UPnP: M-SEARCH reply start (%d outstanding)"

	.comm	_MAX_MSEARCH,4,2                ## @MAX_MSEARCH
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"WPS UPnP: Too many outstanding M-SEARCH replies"

	.comm	_MSEARCH_REPLY,4,2              ## @MSEARCH_REPLY
	.comm	_msearchreply_state_machine_handler,4,2 ## @msearchreply_state_machine_handler
L_.str.2:                               ## @.str.2
	.asciz	"WPS UPnP: M-SEARCH reply failure!"

	.no_dead_strip	_msearchreply_state_machine_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msearchreply_state_machine_start
_msearchreply_state_machine_start:      ; @msearchreply_state_machine_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_dl_list_len
	mov	x20, x0
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh5:
	adrp	x8, _MAX_MSEARCH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_MSEARCH@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ge	LBB0_4
; %bb.1:
	mov	w0, #24
	bl	_os_zalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
Lloh8:
	adrp	x8, _MSEARCH_REPLY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSEARCH_REPLY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	str	xzr, [x0, #8]
	add	x0, x0, #4
	mov	x1, x22
	mov	w2, #4
	bl	_os_memcpy
	bl	_os_random
	and	w8, w0, #0xff
	mul	w8, w21, w8
	mov	w9, #1000
	mul	w8, w8, w9
	asr	w8, w8, #8
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	smull	x10, w8, w10
	lsr	x11, x10, #63
	asr	x10, x10, #38
	add	w0, w10, w11
	msub	w1, w0, w9, w8
Lloh11:
	adrp	x21, _msearchreply_state_machine_handler@GOTPAGE
Lloh12:
	ldr	x21, [x21, _msearchreply_state_machine_handler@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x3, x19
	mov	x4, x20
	bl	_eloop_register_timeout
	cbz	x0, LBB0_6
; %bb.3:
Lloh13:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x21]
	mov	x1, x19
	mov	x2, x20
	bl	_eloop_cancel_timeout
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_os_free
LBB0_4:
Lloh18:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_wpa_printf
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_dl_list_add
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS UPnP: M-SEARCH reply start (%d outstanding)"

	.comm	_MAX_MSEARCH,4,2                ; @MAX_MSEARCH
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"WPS UPnP: Too many outstanding M-SEARCH replies"

	.comm	_MSEARCH_REPLY,4,2              ; @MSEARCH_REPLY
	.comm	_msearchreply_state_machine_handler,4,2 ; @msearchreply_state_machine_handler
l_.str.2:                               ; @.str.2
	.asciz	"WPS UPnP: M-SEARCH reply failure!"

	.no_dead_strip	_msearchreply_state_machine_start
.subsections_via_symbols
