	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_upnp_wps_device_init           ## -- Begin function upnp_wps_device_init
	.p2align	4, 0x90
_upnp_wps_device_init:                  ## @upnp_wps_device_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	$48, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%rbx, %rdi
	addq	$40, %rdi
	callq	_dl_list_init
	movq	%r15, 32(%rbx)
	movq	%r13, 24(%rbx)
	movq	%r14, 16(%rbx)
	movq	_shared_upnp_device@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	movl	(%r12), %edi
	je	LBB0_3
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%r13), %r13
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_dl_list_add
	jmp	LBB0_9
LBB0_1:
	movq	8(%r15), %rdi
	callq	_os_free
	movq	%r15, %rdi
	callq	_os_free
	jmp	LBB0_8
LBB0_3:
	movq	%r13, %r12
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$12, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %r13
	movq	%rax, (%r12)
	leaq	8(%rax), %rdi
	callq	_dl_list_init
	movq	%r13, %rdi
	addq	$4, %rdi
	callq	_dl_list_init
	movq	%r13, %rdi
	callq	_dl_list_init
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_dl_list_add
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_upnp_wps_device_start
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_upnp_wps_device_deinit
LBB0_8:
	xorl	%r13d, %r13d
LBB0_9:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%rbx, %rdi
	callq	_os_free
	movq	8(%r15), %rdi
	callq	_os_free
	movq	%r15, %rdi
	callq	_os_free
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS UPnP: Init interface instance %p"

	.comm	_shared_upnp_device,8,3         ## @shared_upnp_device
L_.str.1:                               ## @.str.1
	.asciz	"WPS UPnP: Share existing device context"

L_.str.2:                               ## @.str.2
	.asciz	"WPS UPnP: Initialize device context"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"WPS UPnP: upnp_wps_device_init failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_upnp_wps_device_init           ; -- Begin function upnp_wps_device_init
	.p2align	2
_upnp_wps_device_init:                  ; @upnp_wps_device_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
	mov	w0, #48
	bl	_os_zalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x25, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x25]
	str	x19, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	add	x0, x19, #40
	bl	_dl_list_init
	stp	x23, x22, [x19, #24]
	str	x20, [x19, #16]
Lloh4:
	adrp	x24, _shared_upnp_device@GOTPAGE
Lloh5:
	ldr	x24, [x24, _shared_upnp_device@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w0, [x25]
	cbz	x8, LBB0_4
; %bb.2:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	x23, [x24]
	mov	x0, x23
	mov	x1, x19
	bl	_dl_list_add
	b	LBB0_8
LBB0_3:
	ldr	x0, [x22, #8]
	bl	_os_free
	mov	x0, x22
	bl	_os_free
	b	LBB0_7
LBB0_4:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	w0, #12
	bl	_os_zalloc
	mov	x23, x0
	cbz	x0, LBB0_9
; %bb.5:
	str	x23, [x24]
	add	x0, x23, #8
	bl	_dl_list_init
	add	x0, x23, #4
	bl	_dl_list_init
	mov	x0, x23
	bl	_dl_list_init
	mov	x0, x23
	mov	x1, x19
	bl	_dl_list_add
	mov	x0, x23
	mov	x1, x21
	bl	_upnp_wps_device_start
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x23
	mov	x1, x20
	bl	_upnp_wps_device_deinit
LBB0_7:
	mov	x23, #0
LBB0_8:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
Lloh10:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_os_free
	ldr	x0, [x22, #8]
	bl	_os_free
	mov	x0, x22
	bl	_os_free
	b	LBB0_8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS UPnP: Init interface instance %p"

	.comm	_shared_upnp_device,8,3         ; @shared_upnp_device
l_.str.1:                               ; @.str.1
	.asciz	"WPS UPnP: Share existing device context"

l_.str.2:                               ; @.str.2
	.asciz	"WPS UPnP: Initialize device context"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"WPS UPnP: upnp_wps_device_init failed"

.subsections_via_symbols
