	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_er_send_ssdp_msearch       ## -- Begin function wps_er_send_ssdp_msearch
	.p2align	4, 0x90
_wps_er_send_ssdp_msearch:              ## @wps_er_send_ssdp_msearch
	.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
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_wpabuf_put_str
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_os_memset
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_UPNP_MULTICAST_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inet_addr
	movl	%eax, -44(%rbp)
	movq	_UPNP_MULTICAST_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, -48(%rbp)
	movl	(%r14), %r14d
	movq	%rbx, %rdi
	callq	_wpabuf_head
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_wpabuf_len
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	movl	$12, %r9d
	callq	_sendto
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_wpa_printf
LBB0_3:
	movq	%rbx, %rdi
	callq	_wpabuf_free
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"M-SEARCH * HTTP/1.1\r\nHOST: 239.255.255.250:1900\r\nMAN: \"ssdp:discover\"\r\nMX: 3\r\nST: urn:schemas-wifialliance-org:device:WFADevice:1\r\n\r\n"

	.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_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"WPS ER: M-SEARCH 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	_wps_er_send_ssdp_msearch       ; -- Begin function wps_er_send_ssdp_msearch
	.p2align	2
_wps_er_send_ssdp_msearch:              ; @wps_er_send_ssdp_msearch
	.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	x20, x0
	mov	w0, #500
	bl	_wpabuf_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpabuf_put_str
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_os_memset
Lloh2:
	adrp	x8, _AF_INET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh5:
	adrp	x8, _UPNP_MULTICAST_ADDRESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UPNP_MULTICAST_ADDRESS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_inet_addr
	str	w0, [sp, #4]
Lloh8:
	adrp	x8, _UPNP_MULTICAST_PORT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UPNP_MULTICAST_PORT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [sp]
	ldr	w20, [x20]
	mov	x0, x19
	bl	_wpabuf_head
	mov	x21, x0
	mov	x0, x19
	bl	_wpabuf_len
	mov	x2, x0
	mov	x4, sp
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	mov	w5, #12
	bl	_sendto
	tbz	x0, #63, LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_strerror
	mov	x3, x0
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_wpa_printf
LBB0_3:
	mov	x0, x19
	bl	_wpabuf_free
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"M-SEARCH * HTTP/1.1\r\nHOST: 239.255.255.250:1900\r\nMAN: \"ssdp:discover\"\r\nMX: 3\r\nST: urn:schemas-wifialliance-org:device:WFADevice:1\r\n\r\n"

	.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_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"WPS ER: M-SEARCH sendto failed: %d (%s)"

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