	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function upnp_wps_device_start
_upnp_wps_device_start:                 ## @upnp_wps_device_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.2:
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_upnp_wps_device_stop
LBB0_4:
	movl	$-1, 8(%rbx)
	movabsq	$-4294967295, %rax              ## imm = 0xFFFFFFFF00000001
	movq	%rax, (%rbx)
	movq	$0, 24(%rbx)
	movq	%r15, %rdi
	callq	_add_ssdp_network
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	leaq	20(%rbx), %rsi
	leaq	16(%rbx), %rdx
	movl	12(%rbx), %ecx
	movq	%r15, %rdi
	callq	_get_netif_info
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_wpa_printf
	jmp	LBB0_7
LBB0_8:
	movq	%rbx, %rdi
	callq	_web_listener_start
	testq	%rax, %rax
	jne	LBB0_7
## %bb.9:
	movq	%rbx, %rdi
	callq	_ssdp_listener_start
	testq	%rax, %rax
	je	LBB0_10
LBB0_7:
	movq	%rbx, %rdi
	callq	_upnp_wps_device_stop
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rbx, %rdi
	callq	_ssdp_open_multicast
	testq	%rax, %rax
	js	LBB0_7
## %bb.11:
	movq	%rbx, %rdi
	callq	_advertisement_state_machine_start
	testq	%rax, %rax
	jne	LBB0_7
## %bb.12:
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS UPnP: Could not get IP/MAC address for %s. Does it have IP address?"

	.no_dead_strip	_upnp_wps_device_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function upnp_wps_device_start
lCPI0_0:
	.long	1                               ; 0x1
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_upnp_wps_device_start:                 ; @upnp_wps_device_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
	mov	w0, #-1
	cbz	x19, LBB0_10
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_10
; %bb.2:
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_upnp_wps_device_stop
LBB0_4:
	mov	w8, #-1
	str	w8, [x19, #8]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	str	xzr, [x19, #24]
	mov	x0, x20
	bl	_add_ssdp_network
	cbnz	x0, LBB0_9
; %bb.5:
	add	x1, x19, #20
	add	x2, x19, #16
	ldr	w3, [x19, #12]
	mov	x0, x20
	bl	_get_netif_info
	cbz	x0, LBB0_7
; %bb.6:
Lloh2:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_wpa_printf
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_web_listener_start
	cbnz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_ssdp_listener_start
	cbz	x0, LBB0_11
LBB0_9:
	mov	x0, x19
	bl	_upnp_wps_device_stop
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x0, x19
	bl	_ssdp_open_multicast
	tbnz	x0, #63, LBB0_9
; %bb.12:
	mov	x0, x19
	bl	_advertisement_state_machine_start
	cbnz	x0, LBB0_9
	b	LBB0_10
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS UPnP: Could not get IP/MAC address for %s. Does it have IP address?"

	.no_dead_strip	_upnp_wps_device_start
.subsections_via_symbols
