	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssdp_listener_handler
_ssdp_listener_handler:                 ## @ssdp_listener_handler
	.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
	movq	%rdx, %r14
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MULTICAST_MAX_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	$8, -64(%rbp)
	movl	(%r14), %edi
	leal	-1(%rbx), %edx
	leaq	-56(%rbp), %r8
	leaq	-64(%rbp), %r9
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_recvfrom
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	movl	%eax, %eax
	movb	$0, (%r12,%rax)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_str_starts
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_os_strchr
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r15
	movb	$0, (%rax)
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	-52(%rbp), %edi
	callq	_inet_ntoa
	movl	%eax, %ebx
	movl	-56(%rbp), %edi
	callq	_ntohs
	leaq	L_.str.1(%rip), %rsi
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%eax, %ecx
	movq	%r12, %r8
	callq	_wpa_printf
	movb	$10, (%r15)
	jmp	LBB0_5
LBB0_4:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	-52(%rbp), %edi
	callq	_inet_ntoa
	movl	%eax, %ebx
	movl	-56(%rbp), %edi
	callq	_ntohs
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movq	%r12, %r8
	callq	_wpa_printf
LBB0_5:
	leaq	L_.str.2(%rip), %rbx
	movq	%rbx, %rdi
	callq	_os_strlen
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_os_strncasecmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movsbl	8(%r12), %edi
	callq	_isgraph
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_ssdp_parse_msearch
LBB0_8:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MULTICAST_MAX_READ,4,2         ## @MULTICAST_MAX_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NOTIFY "

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.1:                               ## @.str.1
	.asciz	"WPS UPnP: Received SSDP packet from %s:%d: %s"

L_.str.2:                               ## @.str.2
	.asciz	"M-SEARCH"

	.no_dead_strip	_ssdp_listener_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssdp_listener_handler
_ssdp_listener_handler:                 ; @ssdp_listener_handler
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #32
	mov	x19, x2
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MULTICAST_MAX_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MULTICAST_MAX_READ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x20, x9, x10
	mov	sp, x20
	mov	w9, #8
	stur	w9, [x29, #-84]
	ldr	w0, [x2]
	sub	w2, w8, #1
	sub	x4, x29, #80
	sub	x5, x29, #84
	mov	x1, x20
	mov	w3, #0
	bl	_recvfrom
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.1:
	strb	wzr, [x20, w0, uxtw]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_str_starts
	cbnz	x0, LBB0_8
; %bb.2:
	mov	w25, #10
	mov	x0, x20
	mov	w1, #10
	bl	_os_strchr
	cbz	x0, LBB0_4
; %bb.3:
	mov	x21, x0
	strb	wzr, [x0]
Lloh10:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	ldur	w0, [x29, #-76]
	bl	_inet_ntoa
	mov	x23, x0
	ldur	w0, [x29, #-80]
	bl	_ntohs
	mov	x3, x0
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	mov	x4, x20
	bl	_wpa_printf
	strb	w25, [x21]
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh17:
	ldr	w21, [x8]
	ldur	w0, [x29, #-76]
	bl	_inet_ntoa
	mov	x22, x0
	ldur	w0, [x29, #-80]
	bl	_ntohs
	mov	x3, x0
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	mov	x4, x20
	bl	_wpa_printf
LBB0_5:
Lloh20:
	adrp	x21, l_.str.2@PAGE
Lloh21:
	add	x21, x21, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_os_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_os_strncasecmp
	cbnz	x0, LBB0_8
; %bb.6:
	ldrsb	w0, [x20, #8]
	bl	_isgraph
	cbnz	w0, LBB0_8
; %bb.7:
	sub	x1, x29, #80
	mov	x0, x19
	mov	x2, x20
	bl	_ssdp_parse_msearch
LBB0_8:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #64
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MULTICAST_MAX_READ,4,2         ; @MULTICAST_MAX_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NOTIFY "

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.1:                               ; @.str.1
	.asciz	"WPS UPnP: Received SSDP packet from %s:%d: %s"

l_.str.2:                               ; @.str.2
	.asciz	"M-SEARCH"

	.no_dead_strip	_ssdp_listener_handler
.subsections_via_symbols
