	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssdp_listener_start            ## -- Begin function ssdp_listener_start
	.p2align	4, 0x90
_ssdp_listener_start:                   ## @ssdp_listener_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_ssdp_listener_open
	movl	%eax, 4(%rbx)
	movq	_EVENT_TYPE_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_ssdp_listener_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_eloop_register_sock
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	%rbx, %rdi
	callq	_ssdp_listener_stop
	movl	$-1, %r14d
	jmp	LBB0_3
LBB0_1:
	movl	$1, (%rbx)
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVENT_TYPE_READ,4,2            ## @EVENT_TYPE_READ
	.comm	_ssdp_listener_handler,4,2      ## @ssdp_listener_handler
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS UPnP: ssdp_listener_start failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssdp_listener_start            ; -- Begin function ssdp_listener_start
	.p2align	2
_ssdp_listener_start:                   ; @ssdp_listener_start
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_ssdp_listener_open
	str	w0, [x19, #4]
Lloh0:
	adrp	x8, _EVENT_TYPE_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVENT_TYPE_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ssdp_listener_handler@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ssdp_listener_handler@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x3, #0
	mov	x4, x19
	bl	_eloop_register_sock
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_ssdp_listener_stop
	mov	w0, #-1
	b	LBB0_3
LBB0_2:
	mov	w8, #1
	str	w8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EVENT_TYPE_READ,4,2            ; @EVENT_TYPE_READ
	.comm	_ssdp_listener_handler,4,2      ; @ssdp_listener_handler
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS UPnP: ssdp_listener_start failed"

.subsections_via_symbols
