	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_er_http_put_message_cb
_wps_er_http_put_message_cb:            ## @wps_er_http_put_message_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
	subq	$16, %rsp
	.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_9
## %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, %r12
	movq	%r15, %rdi
	callq	_wpabuf_head
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_wpabuf_len
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_os_memcpy
	jmp	LBB0_10
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
LBB0_7:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_wps_deinit
	movq	$0, (%r14)
LBB0_9:
	xorl	%r12d, %r12d
LBB0_10:
	movq	8(%r14), %rdi
	callq	_http_client_free
	movq	$0, 8(%r14)
	testq	%r12, %r12
	je	LBB0_14
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r12, %rdi
	callq	_xml_get_base64_item
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_os_free
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.13:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wps_er_ap_process
	movq	%rbx, %rdi
	callq	_wpabuf_free
	jmp	LBB0_14
LBB0_12:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
	movq	(%r14), %rdi
	callq	_wps_deinit
	movq	$0, (%r14)
LBB0_14:
	addq	$16, %rsp
	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: PutMessage OK"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"WPS ER: Could not extract NewOutMessage from PutMessage response"

	.no_dead_strip	_wps_er_http_put_message_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_put_message_cb
_wps_er_http_put_message_cb:            ; @wps_er_http_put_message_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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_9
; %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_8
; %bb.4:
	mov	x21, x0
	bl	_wpabuf_len
	add	w0, w0, #1
	bl	_os_zalloc
	cbz	x0, LBB0_8
; %bb.5:
	mov	x20, x0
	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_10
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
	ldr	x0, [x19]
	cbz	x0, LBB0_9
LBB0_7:
	bl	_wps_deinit
	mov	x20, #0
	str	xzr, [x19]
	b	LBB0_10
LBB0_8:
	ldr	x0, [x19]
	cbnz	x0, LBB0_7
LBB0_9:
	mov	x20, #0
LBB0_10:
	ldr	x0, [x19, #8]
	bl	_http_client_free
	str	xzr, [x19, #8]
	cbz	x20, LBB0_14
; %bb.11:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	bl	_xml_get_base64_item
	mov	x21, x0
	mov	x0, x20
	bl	_os_free
	cbz	x21, LBB0_13
; %bb.12:
	mov	x0, x19
	mov	x1, x21
	bl	_wps_er_ap_process
	mov	x0, x21
	bl	_wpabuf_free
	b	LBB0_14
LBB0_13:
Lloh12:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x19]
	bl	_wps_deinit
	str	xzr, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS ER: PutMessage OK"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"WPS ER: Could not extract NewOutMessage from PutMessage response"

	.no_dead_strip	_wps_er_http_put_message_cb
.subsections_via_symbols
