	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function web_connection_parse_subscribe
_web_connection_parse_subscribe:        ## @web_connection_parse_subscribe
	.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
	subq	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	callq	_http_request_get_hdr
	movq	%rax, %r15
	movq	_UUID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rbx, -184(%rbp)                ## 8-byte Spill
	movq	%r13, -176(%rbp)                ## 8-byte Spill
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	%r15, %rdi
	callq	_os_strlen
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_wpa_hexdump_ascii
	movq	_UPNP_WPS_DEVICE_EVENT_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_os_strcasecmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_HTTP_PRECONDITION_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r13, %r15
LBB0_52:
	xorl	%r13d, %r13d
LBB0_53:
	movq	-136(%rbp), %rbx                ## 8-byte Reload
LBB0_54:
	movl	(%r15), %edi
	leaq	L_.str.15(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_http_put_empty
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_http_request_send_and_deinit
	movq	%r13, %rdi
	callq	_os_free
LBB0_55:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_58
## %bb.56:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_58
## %bb.2:
	movq	%r12, %rdi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_http_request_deinit            ## TAILCALL
LBB0_5:
	movq	%r12, -152(%rbp)                ## 8-byte Spill
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_os_strchr
	movq	%rax, %r12
	movb	$1, %al
	movl	%eax, -156(%rbp)                ## 4-byte Spill
	xorl	%r13d, %r13d
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##       Child Loop BB0_18 Depth 3
                                        ##     Child Loop BB0_28 Depth 2
                                        ##     Child Loop BB0_34 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	movq	%r13, -144(%rbp)                ## 8-byte Spill
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##       Child Loop BB0_18 Depth 3
	movq	%r12, %r14
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	testq	%r14, %r14
	je	LBB0_40
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=3
	leaq	1(%r14), %rbx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_os_strchr
	testq	%rax, %rax
	je	LBB0_40
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=3
	movq	%rax, %r12
	leaq	L_.str.2(%rip), %r13
	movq	%r13, %rdi
	callq	_os_strlen
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_os_strncasecmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=3
	leaq	L_.str.4(%rip), %r13
	movq	%r13, %rdi
	callq	_os_strlen
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_os_strncasecmp
	testq	%rax, %rax
	je	LBB0_17
## %bb.26:                              ##   in Loop: Header=BB0_8 Depth=3
	leaq	L_.str.5(%rip), %r14
	movq	%r14, %rdi
	callq	_os_strlen
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_os_strncasecmp
	movq	%r12, %r14
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_27
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=2
	movslq	%r15d, %rax
	addq	%rax, %rbx
	xorl	%r13d, %r13d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=3
	incq	%r13
LBB0_18:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movzbl	(%rbx,%r13), %eax
	cmpb	$32, %al
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=3
	cmpb	$9, %al
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	%r12d, %eax
	subl	%r15d, %eax
	movl	%r14d, %ecx
	notl	%ecx
	addl	%eax, %ecx
	subq	%r13, %rcx
	movq	%rcx, -192(%rbp)                ## 8-byte Spill
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	callq	_os_free
	addq	%r13, %rbx
	movq	%rbx, %rdi
	movq	-192(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %esi
	callq	_dup_binstr
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_7 Depth=2
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.24:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	%r12d, %eax
	subl	%r14d, %eax
	subl	%r15d, %eax
	subl	%r13d, %eax
	addl	$-2, %eax
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	cmpb	$13, (%rcx,%rax)
	jne	LBB0_7
## %bb.25:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	movb	$0, (%rcx,%rax)
	jmp	LBB0_7
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movslq	%r15d, %rax
	addq	%rax, %rbx
	movq	-144(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=2
	incq	%rbx
LBB0_12:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rbx), %eax
	cmpb	$32, %al
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpb	$9, %al
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.3(%rip), %r14
	movq	%r14, %rdi
	callq	_os_strlen
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_os_strncasecmp
	movl	$0, -156(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_38
LBB0_27:                                ##   in Loop: Header=BB0_6 Depth=1
	movslq	%r15d, %rax
	addq	%rax, %rbx
	movq	-144(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_28 Depth=2
	incq	%rbx
LBB0_28:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rbx), %eax
	cmpb	$32, %al
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=2
	cmpb	$9, %al
	je	LBB0_30
## %bb.31:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.6(%rip), %r14
	movq	%r14, %rdi
	callq	_os_strlen
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_os_strncasecmp
	testq	%rax, %rax
	jne	LBB0_32
## %bb.33:                              ##   in Loop: Header=BB0_6 Depth=1
	movslq	%r15d, %rax
	addq	%rax, %rbx
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_34 Depth=2
	incq	%rbx
LBB0_34:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rbx), %eax
	cmpb	$32, %al
	je	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=2
	cmpb	$9, %al
	je	LBB0_36
## %bb.37:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	movq	-184(%rbp), %rsi                ## 8-byte Reload
	callq	_uuid_str2bin
	movl	$1, %ecx
	movq	%rcx, -168(%rbp)                ## 8-byte Spill
LBB0_38:                                ##   in Loop: Header=BB0_6 Depth=1
	testq	%rax, %rax
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_6
## %bb.39:
	movq	_HTTP_BAD_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-152(%rbp), %r12                ## 8-byte Reload
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	jmp	LBB0_54
LBB0_40:
	cmpl	$0, -168(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_46
## %bb.41:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-144(%rbp), %r13                ## 8-byte Reload
	testq	%r13, %r13
	movq	-152(%rbp), %r12                ## 8-byte Reload
	je	LBB0_44
## %bb.42:
	movq	_HTTP_BAD_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_53
LBB0_46:
	movq	-144(%rbp), %r13                ## 8-byte Reload
	testq	%r13, %r13
	movq	-152(%rbp), %r12                ## 8-byte Reload
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	je	LBB0_51
## %bb.47:
	movl	(%r15), %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	testb	$1, -156(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_48
## %bb.49:
	movq	-176(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, %rsi
	callq	_subscription_start
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_57
## %bb.50:
	movq	_HTTP_INTERNAL_SERVER_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-144(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_53
LBB0_44:
	movq	-176(%rbp), %rdi                ## 8-byte Reload
	movq	-184(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_subscription_renew
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_45
LBB0_57:
	movq	_HTTP_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_http_put_reply_code
	movq	_http_server_hdr@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_str
	movq	_http_connection_close@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_str
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_str
	leaq	L_.str.11(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_str
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	movq	%rax, %r13
	movq	(%r14), %rdi
	movq	%rax, %rsi
	movl	$80, %edx
	callq	_uuid_bin2str
	movl	(%r15), %edi
	leaq	L_.str.12(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r13, %rdi
	callq	_os_strlen
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_wpabuf_put
	leaq	L_.str.13(%rip), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_wpabuf_put_str
	movq	_UPNP_SUBSCRIBE_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.14(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_printf
	movq	%rbx, %rdi
	callq	_http_put_date
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_wpabuf_put_str
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	callq	_os_free
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_http_request_send_and_deinit
	jmp	LBB0_55
LBB0_51:
	movq	_HTTP_PRECONDITION_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_52
LBB0_45:
	leaq	-128(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$80, %edx
	callq	_uuid_bin2str
	movl	(%r15), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_48:
	movq	_HTTP_PRECONDITION_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_53
LBB0_22:
	movq	_HTTP_INTERNAL_SERVER_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%r13d, %r13d
	movq	-152(%rbp), %r12                ## 8-byte Reload
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	jmp	LBB0_54
LBB0_32:
	movq	_HTTP_BAD_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-152(%rbp), %r12                ## 8-byte Reload
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	jmp	LBB0_53
LBB0_58:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_UUID_LEN,4,2                   ## @UUID_LEN
	.comm	_HTTP_INTERNAL_SERVER_ERROR,4,2 ## @HTTP_INTERNAL_SERVER_ERROR
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS UPnP: HTTP SUBSCRIBE"

	.comm	_UPNP_WPS_DEVICE_EVENT_FILE,4,2 ## @UPNP_WPS_DEVICE_EVENT_FILE
	.comm	_HTTP_PRECONDITION_FAILED,4,2   ## @HTTP_PRECONDITION_FAILED
L_.str.1:                               ## @.str.1
	.asciz	"WPS UPnP: HTTP SUBSCRIBE for event"

L_.str.2:                               ## @.str.2
	.asciz	"NT:"

L_.str.3:                               ## @.str.3
	.asciz	"upnp:event"

	.comm	_HTTP_BAD_REQUEST,4,2           ## @HTTP_BAD_REQUEST
L_.str.4:                               ## @.str.4
	.asciz	"CALLBACK:"

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

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

L_.str.7:                               ## @.str.7
	.asciz	"WPS UPnP: Subscription renewal"

L_.str.8:                               ## @.str.8
	.asciz	"WPS UPnP: Could not find SID %s"

L_.str.9:                               ## @.str.9
	.asciz	"WPS UPnP: New subscription"

	.comm	_HTTP_OK,4,2                    ## @HTTP_OK
	.comm	_http_server_hdr,8,3            ## @http_server_hdr
	.comm	_http_connection_close,8,3      ## @http_connection_close
L_.str.10:                              ## @.str.10
	.asciz	"Content-Length: 0\r\n"

L_.str.11:                              ## @.str.11
	.asciz	"SID: uuid:"

L_.str.12:                              ## @.str.12
	.asciz	"WPS UPnP: Assigned SID %s"

L_.str.13:                              ## @.str.13
	.asciz	"\r\n"

L_.str.14:                              ## @.str.14
	.asciz	"Timeout: Second-%d\r\n"

	.comm	_UPNP_SUBSCRIBE_SEC,4,2         ## @UPNP_SUBSCRIBE_SEC
L_.str.15:                              ## @.str.15
	.asciz	"WPS UPnP: SUBSCRIBE failed - return %d"

	.no_dead_strip	_web_connection_parse_subscribe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function web_connection_parse_subscribe
_web_connection_parse_subscribe:        ; @web_connection_parse_subscribe
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #128
	mov	x24, x2
	mov	x25, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	x0, x1
	bl	_http_request_get_hdr
	mov	x21, x0
Lloh3:
	adrp	x8, _UUID_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UUID_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	mov	w0, #1000
	bl	_wpabuf_alloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
Lloh8:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w22, [x26]
	mov	x0, x21
	bl	_os_strlen
	mov	x3, x0
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_wpa_hexdump_ascii
Lloh12:
	adrp	x8, _UPNP_WPS_DEVICE_EVENT_FILE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UPNP_WPS_DEVICE_EVENT_FILE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_os_strcasecmp
	cbz	x0, LBB0_10
LBB0_2:
	mov	x19, #0
LBB0_3:
Lloh15:
	adrp	x8, _HTTP_PRECONDITION_FAILED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HTTP_PRECONDITION_FAILED@GOTPAGEOFF]
LBB0_4:
	ldr	w22, [x8]
LBB0_5:
	ldr	w0, [x26]
	str	x22, [sp, #-16]!
Lloh17:
	adrp	x1, l_.str.15@PAGE
Lloh18:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_wpa_printf
	add	sp, sp, #16
	mov	x0, x20
	mov	x1, x22
	bl	_http_put_empty
	mov	x0, x25
	mov	x1, x20
	bl	_http_request_send_and_deinit
	mov	x0, x19
	bl	_os_free
LBB0_6:
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_49
; %bb.7:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldur	x8, [x29, #-88]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_49
; %bb.9:
	mov	x0, x25
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_http_request_deinit
LBB0_10:
	stp	x19, x25, [x29, #-200]          ; 16-byte Folded Spill
	ldr	w0, [x26]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	x0, x21
	mov	w1, #10
	bl	_os_strchr
	mov	x21, x0
	stur	wzr, [x29, #-180]               ; 4-byte Folded Spill
	stur	xzr, [x29, #-176]               ; 8-byte Folded Spill
Lloh27:
	adrp	x24, l_.str.2@PAGE
Lloh28:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh29:
	adrp	x26, l_.str.4@PAGE
Lloh30:
	add	x26, x26, l_.str.4@PAGEOFF
	mov	w8, #1
Lloh31:
	adrp	x27, l_.str.5@PAGE
Lloh32:
	add	x27, x27, l_.str.5@PAGEOFF
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;       Child Loop BB0_13 Depth 3
                                        ;       Child Loop BB0_19 Depth 3
                                        ;       Child Loop BB0_30 Depth 3
                                        ;       Child Loop BB0_22 Depth 3
                                        ;     Child Loop BB0_34 Depth 2
	stur	w8, [x29, #-204]                ; 4-byte Folded Spill
LBB0_12:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_13 Depth 3
                                        ;       Child Loop BB0_19 Depth 3
                                        ;       Child Loop BB0_30 Depth 3
                                        ;       Child Loop BB0_22 Depth 3
	mov	x28, x21
LBB0_13:                                ;   Parent Loop BB0_11 Depth=1
                                        ;     Parent Loop BB0_12 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cbz	x28, LBB0_38
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=3
	add	x25, x28, #1
	mov	x0, x25
	mov	w1, #10
	bl	_os_strchr
	cbz	x0, LBB0_38
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=3
	mov	x21, x0
	mov	x0, x24
	bl	_os_strlen
	mov	x22, x0
	mov	x0, x25
	mov	x1, x24
	mov	x2, x22
	bl	_os_strncasecmp
	cbz	x0, LBB0_33
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=3
	mov	x0, x26
	bl	_os_strlen
	mov	x22, x0
	mov	x0, x25
	mov	x1, x26
	mov	x2, x22
	bl	_os_strncasecmp
	cbz	x0, LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=3
	mov	x0, x27
	bl	_os_strlen
	mov	x22, x0
	mov	x0, x25
	mov	x1, x27
	mov	x2, x22
	bl	_os_strncasecmp
	mov	x28, x21
	cbnz	x0, LBB0_13
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x25, x25, w22, sxtw
LBB0_19:                                ;   Parent Loop BB0_11 Depth=1
                                        ;     Parent Loop BB0_12 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrb	w8, [x25]
	cmp	w8, #32
	ccmp	w8, #9, #4, ne
	b.ne	LBB0_28
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=3
	add	x25, x25, #1
	b	LBB0_19
LBB0_21:                                ;   in Loop: Header=BB0_12 Depth=2
	sxtw	x8, w22
	add	x25, x25, x8
	add	x8, x28, x8
	sub	x8, x8, x21
	mov	x9, #-65534
	movk	x9, #0, lsl #16
	add	x19, x8, x9
	add	w8, w22, w28
	sub	w8, w8, w21
LBB0_22:                                ;   Parent Loop BB0_11 Depth=1
                                        ;     Parent Loop BB0_12 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	w8, w8, #1
	ldrb	w9, [x25]
	cmp	w9, #32
	ccmp	w9, #9, #4, ne
	b.ne	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=3
	add	x25, x25, #1
	add	x19, x19, #1
	b	LBB0_22
LBB0_24:                                ;   in Loop: Header=BB0_12 Depth=2
	neg	w22, w8
	ldur	x0, [x29, #-176]                ; 8-byte Folded Reload
	bl	_os_free
	mov	x0, x25
	mov	x1, x22
	bl	_dup_binstr
	stur	x0, [x29, #-176]                ; 8-byte Folded Spill
	cbz	x0, LBB0_48
; %bb.25:                               ;   in Loop: Header=BB0_12 Depth=2
	cmp	w22, #1
	b.lt	LBB0_12
; %bb.26:                               ;   in Loop: Header=BB0_12 Depth=2
	neg	w8, w19
	ldur	x9, [x29, #-176]                ; 8-byte Folded Reload
	ldrb	w9, [x9, x8]
	cmp	w9, #13
	b.ne	LBB0_12
; %bb.27:                               ;   in Loop: Header=BB0_12 Depth=2
	ldur	x9, [x29, #-176]                ; 8-byte Folded Reload
	strb	wzr, [x9, x8]
	b	LBB0_12
LBB0_28:                                ;   in Loop: Header=BB0_12 Depth=2
Lloh33:
	adrp	x19, l_.str.6@PAGE
Lloh34:
	add	x19, x19, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_os_strlen
	mov	x22, x0
	mov	x0, x25
	mov	x1, x19
	mov	x2, x22
	bl	_os_strncasecmp
	cbnz	x0, LBB0_37
; %bb.29:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x0, x25, w22, sxtw
LBB0_30:                                ;   Parent Loop BB0_11 Depth=1
                                        ;     Parent Loop BB0_12 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrb	w8, [x0]
	cmp	w8, #32
	ccmp	w8, #9, #4, ne
	b.ne	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=3
	add	x0, x0, #1
	b	LBB0_30
LBB0_32:                                ;   in Loop: Header=BB0_12 Depth=2
	mov	x1, x23
	bl	_uuid_str2bin
	mov	w8, #1
	stur	w8, [x29, #-180]                ; 4-byte Folded Spill
	cbz	x0, LBB0_12
	b	LBB0_37
LBB0_33:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x25, x25, w22, sxtw
LBB0_34:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x25]
	cmp	w8, #32
	ccmp	w8, #9, #4, ne
	b.ne	LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=2
	add	x25, x25, #1
	b	LBB0_34
LBB0_36:                                ;   in Loop: Header=BB0_11 Depth=1
Lloh35:
	adrp	x19, l_.str.3@PAGE
Lloh36:
	add	x19, x19, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_os_strlen
	mov	x2, x0
	mov	x0, x25
	mov	x1, x19
	bl	_os_strncasecmp
	mov	w8, #0
	cbz	x0, LBB0_11
LBB0_37:
Lloh37:
	adrp	x8, _HTTP_BAD_REQUEST@GOTPAGE
Lloh38:
	ldr	x8, [x8, _HTTP_BAD_REQUEST@GOTPAGEOFF]
Lloh39:
	ldr	w22, [x8]
	ldur	x25, [x29, #-192]               ; 8-byte Folded Reload
Lloh40:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh41:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
	ldur	x19, [x29, #-176]               ; 8-byte Folded Reload
	b	LBB0_5
LBB0_38:
	ldur	w8, [x29, #-180]                ; 4-byte Folded Reload
	cbz	w8, LBB0_41
; %bb.39:
Lloh42:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh43:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh44:
	adrp	x1, l_.str.7@PAGE
Lloh45:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wpa_printf
	ldp	x0, x25, [x29, #-200]           ; 16-byte Folded Reload
	ldur	x19, [x29, #-176]               ; 8-byte Folded Reload
	cbz	x19, LBB0_45
; %bb.40:
Lloh46:
	adrp	x8, _HTTP_BAD_REQUEST@GOTPAGE
Lloh47:
	ldr	x8, [x8, _HTTP_BAD_REQUEST@GOTPAGEOFF]
	b	LBB0_4
LBB0_41:
	ldp	x21, x25, [x29, #-200]          ; 16-byte Folded Reload
Lloh48:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh49:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
	ldur	x19, [x29, #-176]               ; 8-byte Folded Reload
	cbz	x19, LBB0_3
; %bb.42:
	ldr	w0, [x26]
Lloh50:
	adrp	x1, l_.str.9@PAGE
Lloh51:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_wpa_printf
	ldur	w8, [x29, #-204]                ; 4-byte Folded Reload
	tbnz	w8, #0, LBB0_3
; %bb.43:
	mov	x0, x21
	mov	x1, x19
	bl	_subscription_start
	mov	x22, x0
	cbnz	x0, LBB0_46
; %bb.44:
Lloh52:
	adrp	x8, _HTTP_INTERNAL_SERVER_ERROR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _HTTP_INTERNAL_SERVER_ERROR@GOTPAGEOFF]
	b	LBB0_4
LBB0_45:
	mov	x1, x23
	bl	_subscription_renew
	mov	x22, x0
	cbz	x0, LBB0_47
LBB0_46:
Lloh54:
	adrp	x8, _HTTP_OK@GOTPAGE
Lloh55:
	ldr	x8, [x8, _HTTP_OK@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_http_put_reply_code
Lloh57:
	adrp	x8, _http_server_hdr@GOTPAGE
Lloh58:
	ldr	x8, [x8, _http_server_hdr@GOTPAGEOFF]
Lloh59:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_wpabuf_put_str
Lloh60:
	adrp	x8, _http_connection_close@GOTPAGE
Lloh61:
	ldr	x8, [x8, _http_connection_close@GOTPAGEOFF]
Lloh62:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_wpabuf_put_str
Lloh63:
	adrp	x1, l_.str.10@PAGE
Lloh64:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x20
	bl	_wpabuf_put_str
Lloh65:
	adrp	x1, l_.str.11@PAGE
Lloh66:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x20
	bl	_wpabuf_put_str
	mov	x0, x20
	mov	w1, #0
	bl	_wpabuf_put
	mov	x23, x0
	ldr	x0, [x22]
	mov	x1, x23
	mov	w2, #80
	bl	_uuid_bin2str
	ldr	w0, [x26]
	str	x23, [sp, #-16]!
Lloh67:
	adrp	x1, l_.str.12@PAGE
Lloh68:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_wpa_printf
	add	sp, sp, #16
	mov	x0, x23
	bl	_os_strlen
	mov	x1, x0
	mov	x0, x20
	bl	_wpabuf_put
Lloh69:
	adrp	x22, l_.str.13@PAGE
Lloh70:
	add	x22, x22, l_.str.13@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_wpabuf_put_str
Lloh71:
	adrp	x8, _UPNP_SUBSCRIBE_SEC@GOTPAGE
Lloh72:
	ldr	x8, [x8, _UPNP_SUBSCRIBE_SEC@GOTPAGEOFF]
Lloh73:
	ldr	w2, [x8]
Lloh74:
	adrp	x1, l_.str.14@PAGE
Lloh75:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x20
	bl	_wpabuf_printf
	mov	x0, x20
	bl	_http_put_date
	mov	x0, x20
	mov	x1, x22
	bl	_wpabuf_put_str
	mov	x0, x19
	bl	_os_free
	mov	x0, x25
	mov	x1, x20
	bl	_http_request_send_and_deinit
	b	LBB0_6
LBB0_47:
	sub	x19, x29, #168
	sub	x1, x29, #168
	mov	x0, x23
	mov	w2, #80
	bl	_uuid_bin2str
	ldr	w0, [x26]
	str	x19, [sp, #-16]!
Lloh76:
	adrp	x1, l_.str.8@PAGE
Lloh77:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_wpa_printf
	add	sp, sp, #16
	b	LBB0_2
LBB0_48:
	mov	x19, #0
Lloh78:
	adrp	x8, _HTTP_INTERNAL_SERVER_ERROR@GOTPAGE
Lloh79:
	ldr	x8, [x8, _HTTP_INTERNAL_SERVER_ERROR@GOTPAGEOFF]
Lloh80:
	ldr	w22, [x8]
	ldur	x25, [x29, #-192]               ; 8-byte Folded Reload
Lloh81:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh82:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
	b	LBB0_5
LBB0_49:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.cfi_endproc
                                        ; -- End function
	.comm	_UUID_LEN,4,2                   ; @UUID_LEN
	.comm	_HTTP_INTERNAL_SERVER_ERROR,4,2 ; @HTTP_INTERNAL_SERVER_ERROR
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS UPnP: HTTP SUBSCRIBE"

	.comm	_UPNP_WPS_DEVICE_EVENT_FILE,4,2 ; @UPNP_WPS_DEVICE_EVENT_FILE
	.comm	_HTTP_PRECONDITION_FAILED,4,2   ; @HTTP_PRECONDITION_FAILED
l_.str.1:                               ; @.str.1
	.asciz	"WPS UPnP: HTTP SUBSCRIBE for event"

l_.str.2:                               ; @.str.2
	.asciz	"NT:"

l_.str.3:                               ; @.str.3
	.asciz	"upnp:event"

	.comm	_HTTP_BAD_REQUEST,4,2           ; @HTTP_BAD_REQUEST
l_.str.4:                               ; @.str.4
	.asciz	"CALLBACK:"

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

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

l_.str.7:                               ; @.str.7
	.asciz	"WPS UPnP: Subscription renewal"

l_.str.8:                               ; @.str.8
	.asciz	"WPS UPnP: Could not find SID %s"

l_.str.9:                               ; @.str.9
	.asciz	"WPS UPnP: New subscription"

	.comm	_HTTP_OK,4,2                    ; @HTTP_OK
	.comm	_http_server_hdr,8,3            ; @http_server_hdr
	.comm	_http_connection_close,8,3      ; @http_connection_close
l_.str.10:                              ; @.str.10
	.asciz	"Content-Length: 0\r\n"

l_.str.11:                              ; @.str.11
	.asciz	"SID: uuid:"

l_.str.12:                              ; @.str.12
	.asciz	"WPS UPnP: Assigned SID %s"

l_.str.13:                              ; @.str.13
	.asciz	"\r\n"

l_.str.14:                              ; @.str.14
	.asciz	"Timeout: Second-%d\r\n"

	.comm	_UPNP_SUBSCRIBE_SEC,4,2         ; @UPNP_SUBSCRIBE_SEC
l_.str.15:                              ; @.str.15
	.asciz	"WPS UPnP: SUBSCRIBE failed - return %d"

	.no_dead_strip	_web_connection_parse_subscribe
.subsections_via_symbols
