	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_er_http_get_dev_info_cb
_wps_er_http_get_dev_info_cb:           ## @wps_er_http_get_dev_info_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdi, %r14
	leal	-130(%rdx), %eax
	cmpl	$2, %eax
	jb	LBB0_6
## %bb.1:
	cmpl	$128, %edx
	je	LBB0_6
## %bb.2:
	cmpl	$129, %edx
	jne	LBB0_7
## %bb.3:
	movq	%rsi, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	%rbx, %rdi
	callq	_http_client_get_body
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_wpabuf_len
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_wpabuf_head
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_wpabuf_len
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_os_memcpy
	jmp	LBB0_8
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	(%r14), %rdi
	callq	_http_client_free
	movq	$0, (%r14)
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wps_er_ap_learn
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_os_free                        ## TAILCALL
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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: GetDeviceInfo OK"

L_.str.1:                               ## @.str.1
	.asciz	"WPS ER: GetDeviceInfo failed"

	.no_dead_strip	_wps_er_http_get_dev_info_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_get_dev_info_cb
_wps_er_http_get_dev_info_cb:           ; @wps_er_http_get_dev_info_cb
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	w8, w2, #130
	cmp	w8, #2
	b.lo	LBB0_6
; %bb.1:
	cmp	w2, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w2, #129
	b.ne	LBB0_7
; %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	x0, x20
	bl	_http_client_get_body
	cbz	x0, LBB0_7
; %bb.4:
	mov	x21, x0
	bl	_wpabuf_len
	add	w0, w0, #1
	bl	_os_zalloc
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x21
	bl	_wpabuf_head
	mov	x22, x0
	mov	x0, x21
	bl	_wpabuf_len
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_os_memcpy
	b	LBB0_8
LBB0_6:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_7:
	mov	x20, #0
LBB0_8:
	ldr	x0, [x19]
	bl	_http_client_free
	str	xzr, [x19]
	cbz	x20, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	bl	_wps_er_ap_learn
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_os_free
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS ER: GetDeviceInfo OK"

l_.str.1:                               ; @.str.1
	.asciz	"WPS ER: GetDeviceInfo failed"

	.no_dead_strip	_wps_er_http_get_dev_info_cb
.subsections_via_symbols
