	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_er_ap_unsubscribe
_wps_er_ap_unsubscribe:                 ## @wps_er_ap_unsubscribe
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_8
## %bb.2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_4:
	callq	_wpa_printf
LBB0_5:
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	callq	_wps_er_ap_unsubscribed
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.7:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	-168(%rbp), %rsi
	leaq	-176(%rbp), %rdx
	callq	_http_client_url_parse
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%rax, %r15
	movq	24(%rbx), %rdi
	callq	_os_strlen
	leaq	1000(%rax), %rdi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	%rax, %r14
	movl	16(%rbx), %edi
	leaq	-160(%rbp), %rsi
	movl	$100, %edx
	callq	_uuid_bin2str
	movq	-176(%rbp), %r13
	movl	-164(%rbp), %edi
	callq	_inet_ntoa
	movl	%eax, %r12d
	movl	-168(%rbp), %edi
	callq	_ntohs
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	leaq	-160(%rbp), %r9
	callq	_wpabuf_printf
	movq	%r15, %rdi
	callq	_os_free
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_wpabuf_head
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_wpabuf_len
	leaq	L_.str.4(%rip), %rsi
	movl	%r15d, %edi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_wpa_hexdump_ascii
	movq	_wps_er_http_unsubscribe_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-168(%rbp), %rdi
	movq	%r14, %rsi
	movl	$1000, %edx                     ## imm = 0x3E8
	movq	%rbx, %r8
	callq	_http_client_addr
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.11:
	movq	%r14, %rdi
	callq	_wpabuf_free
	jmp	LBB0_5
LBB0_12:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
LBB0_13:
	movq	%r15, %rdi
	callq	_os_free
	jmp	LBB0_5
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS ER: No eventSubURL - cannot subscribe"

L_.str.1:                               ## @.str.1
	.asciz	"WPS ER: Pending HTTP request - cannot send subscribe request"

L_.str.2:                               ## @.str.2
	.asciz	"WPS ER: Failed to parse eventSubURL"

L_.str.3:                               ## @.str.3
	.asciz	"UNSUBSCRIBE %s HTTP/1.1\r\nHOST: %s:%d\r\nSID: uuid:%s\r\n\r\n"

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.4:                               ## @.str.4
	.asciz	"WPS ER: Unsubscription request"

	.comm	_wps_er_http_unsubscribe_cb,4,2 ## @wps_er_http_unsubscribe_cb
	.no_dead_strip	_wps_er_ap_unsubscribe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_er_ap_unsubscribe
_wps_er_ap_unsubscribe:                 ; @wps_er_ap_unsubscribe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x0, [x1, #24]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	bl	_wpa_printf
LBB0_5:
	ldr	w0, [x19]
	mov	x1, x19
	bl	_wps_er_ap_unsubscribed
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.7:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_8:
	add	x1, sp, #8
	mov	x2, sp
	bl	_http_client_url_parse
	cbz	x0, LBB0_12
; %bb.9:
	mov	x21, x0
	ldr	x0, [x19, #24]
	bl	_os_strlen
	add	x0, x0, #1000
	bl	_wpabuf_alloc
	cbz	x0, LBB0_13
; %bb.10:
	mov	x20, x0
	ldr	w0, [x19, #16]
	add	x1, sp, #20
	mov	w2, #100
	bl	_uuid_bin2str
	ldr	x22, [sp]
	ldr	w0, [sp, #12]
	bl	_inet_ntoa
	mov	x23, x0
	ldr	w0, [sp, #8]
	bl	_ntohs
	mov	x4, x0
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x5, sp, #20
	mov	x0, x20
	mov	x2, x22
	mov	x3, x23
	bl	_wpabuf_printf
	mov	x0, x21
	bl	_os_free
Lloh18:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh20:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_wpabuf_head
	mov	x22, x0
	mov	x0, x20
	bl	_wpabuf_len
	mov	x3, x0
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_wpa_hexdump_ascii
Lloh23:
	adrp	x8, _wps_er_http_unsubscribe_cb@GOTPAGE
Lloh24:
	ldr	x8, [x8, _wps_er_http_unsubscribe_cb@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	add	x0, sp, #8
	mov	x1, x20
	mov	w2, #1000
	mov	x4, x19
	bl	_http_client_addr
	str	x0, [x19, #8]
	cbnz	x0, LBB0_6
; %bb.11:
	mov	x0, x20
	bl	_wpabuf_free
	b	LBB0_5
LBB0_12:
Lloh26:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_13:
	mov	x0, x21
	bl	_os_free
	b	LBB0_5
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS ER: No eventSubURL - cannot subscribe"

l_.str.1:                               ; @.str.1
	.asciz	"WPS ER: Pending HTTP request - cannot send subscribe request"

l_.str.2:                               ; @.str.2
	.asciz	"WPS ER: Failed to parse eventSubURL"

l_.str.3:                               ; @.str.3
	.asciz	"UNSUBSCRIBE %s HTTP/1.1\r\nHOST: %s:%d\r\nSID: uuid:%s\r\n\r\n"

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.4:                               ; @.str.4
	.asciz	"WPS ER: Unsubscription request"

	.comm	_wps_er_http_unsubscribe_cb,4,2 ; @wps_er_http_unsubscribe_cb
	.no_dead_strip	_wps_er_ap_unsubscribe
.subsections_via_symbols
