	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_er_http_subscribe_cb
_wps_er_http_subscribe_cb:              ## @wps_er_http_subscribe_cb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdi, %rbx
	leal	-130(%rdx), %eax
	cmpl	$2, %eax
	jb	LBB0_4
## %bb.1:
	cmpl	$128, %edx
	je	LBB0_4
## %bb.2:
	cmpl	$129, %edx
	jne	LBB0_5
## %bb.3:
	movq	%rsi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	$1, (%rbx)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_http_client_get_hdr_line
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_wps_er_get_sid
	movq	16(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_wps_er_ap_use_cached_settings
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movq	_WPS_EV_ER_AP_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_wps_er_ap_event
	jmp	LBB0_5
LBB0_4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
LBB0_5:
	movq	8(%rbx), %rdi
	callq	_http_client_free
	movq	$0, 8(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS ER: Subscribed to events"

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

	.comm	_WPS_EV_ER_AP_ADD,4,2           ## @WPS_EV_ER_AP_ADD
L_.str.2:                               ## @.str.2
	.asciz	"WPS ER: Failed to subscribe to events"

	.no_dead_strip	_wps_er_http_subscribe_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_er_http_subscribe_cb
_wps_er_http_subscribe_cb:              ; @wps_er_http_subscribe_cb
	.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
	sub	w8, w2, #130
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w2, #128
	b.eq	LBB0_4
; %bb.2:
	cmp	w2, #129
	b.ne	LBB0_5
; %bb.3:
	mov	x20, x1
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w8, #1
	str	w8, [x19]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_http_client_get_hdr_line
	mov	x1, x0
	mov	x0, x19
	bl	_wps_er_get_sid
	ldr	x0, [x19, #16]
	mov	x1, x19
	bl	_wps_er_ap_use_cached_settings
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _WPS_EV_ER_AP_ADD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WPS_EV_ER_AP_ADD@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_wps_er_ap_event
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
LBB0_5:
	ldr	x0, [x19, #8]
	bl	_http_client_free
	str	xzr, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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 ER: Subscribed to events"

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

	.comm	_WPS_EV_ER_AP_ADD,4,2           ; @WPS_EV_ER_AP_ADD
l_.str.2:                               ; @.str.2
	.asciz	"WPS ER: Failed to subscribe to events"

	.no_dead_strip	_wps_er_http_subscribe_cb
.subsections_via_symbols
