	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function subscription_first_event
_subscription_first_event:              ## @subscription_first_event
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	xorl	%eax, %eax
	callq	_build_fake_wsc_ack
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_wpabuf_head
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_wpabuf_len
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_base64_encode
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	callq	_wpabuf_free
LBB0_3:
	movq	(%r14), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	cmpb	$0, (%r15)
	jne	LBB0_6
LBB0_5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
	leaq	L_.str.4(%rip), %r15
LBB0_6:
	movq	%r15, %rdi
	callq	_os_strlen
	leaq	500(%rax), %rdi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_wpabuf_put_str
	leaq	L_.str.5(%rip), %rsi
	leaq	L_.str.6(%rip), %rdx
	movq	%rbx, %rdi
	callq	_wpabuf_put_property
	leaq	L_.str.7(%rip), %rdx
	leaq	-50(%rbp), %r12
	movq	%r12, %rdi
	movl	$10, %esi
	movl	$1, %ecx
	callq	_os_snprintf
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_wpabuf_put_property
	cmpb	$0, (%r15)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_wpabuf_put_property
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_str
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_event_add
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_wpabuf_free
	jmp	LBB0_11
LBB0_7:
	movl	$-1, %r14d
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<e:propertyset xmlns:e=\"urn:schemas-upnp-org:event-1-0\">\n"

L_.str.1:                               ## @.str.1
	.asciz	"</e:propertyset>\n"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"WPS UPnP: Use a fake WSC_ACK as the initial WLANEvent"

L_.str.3:                               ## @.str.3
	.asciz	"WPS UPnP: WLANEvent not known for initial event message"

L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	"STAStatus"

L_.str.6:                               ## @.str.6
	.asciz	"1"

L_.str.7:                               ## @.str.7
	.asciz	"%d"

L_.str.8:                               ## @.str.8
	.asciz	"APStatus"

L_.str.9:                               ## @.str.9
	.asciz	"WLANEvent"

	.no_dead_strip	_subscription_first_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function subscription_first_event
_subscription_first_event:              ; @subscription_first_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbnz	x8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	bl	_build_fake_wsc_ack
	cbz	x0, LBB0_3
; %bb.2:
	mov	x20, x0
	bl	_wpabuf_head
	mov	x21, x0
	mov	x0, x20
	bl	_wpabuf_len
	mov	x1, x0
	mov	x0, x21
	mov	x2, #0
	bl	_base64_encode
	ldr	x8, [x19]
	str	x0, [x8]
	mov	x0, x20
	bl	_wpabuf_free
LBB0_3:
	ldr	x8, [x19]
	ldr	x20, [x8]
	cbz	x20, LBB0_5
; %bb.4:
	ldrb	w8, [x20]
	cbnz	w8, LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
Lloh13:
	adrp	x20, l_.str.4@PAGE
Lloh14:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_6:
	mov	x0, x20
	bl	_os_strlen
	add	x0, x0, #500
	bl	_wpabuf_alloc
	cbz	x0, LBB0_10
; %bb.7:
	mov	x21, x0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpabuf_put_str
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
Lloh19:
	adrp	x2, l_.str.6@PAGE
Lloh20:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_wpabuf_put_property
Lloh21:
	adrp	x2, l_.str.7@PAGE
Lloh22:
	add	x2, x2, l_.str.7@PAGEOFF
	add	x0, sp, #14
	mov	w1, #10
	mov	w3, #1
	bl	_os_snprintf
Lloh23:
	adrp	x1, l_.str.8@PAGE
Lloh24:
	add	x1, x1, l_.str.8@PAGEOFF
	add	x2, sp, #14
	mov	x0, x21
	bl	_wpabuf_put_property
	ldrb	w8, [x20]
	cbz	w8, LBB0_9
; %bb.8:
Lloh25:
	adrp	x1, l_.str.9@PAGE
Lloh26:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_wpabuf_put_property
LBB0_9:
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_wpabuf_put_str
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_event_add
	mov	x19, x0
	mov	x0, x21
	bl	_wpabuf_free
	b	LBB0_11
LBB0_10:
	mov	w19, #-1
LBB0_11:
	ldr	x8, [sp, #24]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<e:propertyset xmlns:e=\"urn:schemas-upnp-org:event-1-0\">\n"

l_.str.1:                               ; @.str.1
	.asciz	"</e:propertyset>\n"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"WPS UPnP: Use a fake WSC_ACK as the initial WLANEvent"

l_.str.3:                               ; @.str.3
	.asciz	"WPS UPnP: WLANEvent not known for initial event message"

l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	"STAStatus"

l_.str.6:                               ; @.str.6
	.asciz	"1"

l_.str.7:                               ; @.str.7
	.asciz	"%d"

l_.str.8:                               ; @.str.8
	.asciz	"APStatus"

l_.str.9:                               ; @.str.9
	.asciz	"WLANEvent"

	.no_dead_strip	_subscription_first_event
.subsections_via_symbols
