	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_process_ap_settings_r
_wps_process_ap_settings_r:             ## @wps_process_ap_settings_r
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	32(%rdi), %rax
	xorl	%ebx, %ebx
	cmpq	$0, 8(%rax)
	jne	LBB0_10
## %bb.1:
	movq	%rdi, %r14
	cmpq	$0, 48(%rdi)
	je	LBB0_2
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rsi, %rdi
	movq	%r14, %rsi
	callq	_wps_process_ap_settings
	movl	$-1, %ebx
	testq	%rax, %rax
	js	LBB0_10
## %bb.3:
	movq	_MSG_INFO@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	cmpq	$0, 40(%r14)
	je	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	40(%r14), %rsi
	movq	%r14, %rdi
	callq	_wps_cred_update
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_5:
	movq	32(%r14), %rax
	movl	(%rax), %edi
	callq	_wps_registrar_pin_completed
	movq	%r14, %rdi
	callq	_wps_build_ap_cred
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_wpabuf_head
	movq	%rax, 8(%r14)
	movq	%r15, %rdi
	callq	_wpabuf_len
	movq	%rax, (%r14)
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	16(%r14), %edi
	movq	%r14, %rsi
	callq	*%rax
	jmp	LBB0_9
LBB0_8:
	movq	%r14, %rdi
	callq	_wps_sta_cred_cb
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
LBB0_9:
	movq	%r15, %rdi
	callq	_wpabuf_free
	movl	$1, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: Received old AP configuration from AP"

L_.str.1:                               ## @.str.1
	.asciz	"WPS: Update AP configuration based on new settings"

	.no_dead_strip	_wps_process_ap_settings_r
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_process_ap_settings_r
_wps_process_ap_settings_r:             ; @wps_process_ap_settings_r
	.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
	ldr	x8, [x0, #32]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x1
	mov	x1, x19
	bl	_wps_process_ap_settings
	tbnz	x0, #63, LBB0_10
; %bb.5:
Lloh0:
	adrp	x20, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MSG_INFO@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x20]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	x1, [x19, #40]
	mov	x0, x19
	bl	_wps_cred_update
	b	LBB0_2
LBB0_7:
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
	bl	_wps_registrar_pin_completed
	mov	x0, x19
	bl	_wps_build_ap_cred
	cbz	x0, LBB0_10
; %bb.8:
	mov	x20, x0
	bl	_wpabuf_head
	str	x0, [x19, #8]
	mov	x0, x20
	bl	_wpabuf_len
	str	x0, [x19]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	w0, [x19, #16]
	mov	x1, x19
	blr	x8
	b	LBB0_12
LBB0_10:
	mov	w0, #-1
	b	LBB0_3
LBB0_11:
	mov	x0, x19
	bl	_wps_sta_cred_cb
	stp	xzr, xzr, [x19]
LBB0_12:
	mov	x0, x20
	bl	_wpabuf_free
	mov	w0, #1
	b	LBB0_3
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Received old AP configuration from AP"

l_.str.1:                               ; @.str.1
	.asciz	"WPS: Update AP configuration based on new settings"

	.no_dead_strip	_wps_process_ap_settings_r
.subsections_via_symbols
