	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_registrar_config_ap        ## -- Begin function wps_registrar_config_ap
	.p2align	4, 0x90
_wps_registrar_config_ap:               ## @wps_registrar_config_ap
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%rbx), %edx
	movq	_WPS_ENCR_NONE@GOTPCREL(%rip), %rsi
	movq	_WPS_ENCR_TKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_WPS_ENCR_AES@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	orl	%eax, %ecx
	movl	(%rsi), %esi
	orl	%ecx, %esi
	testl	%edx, %esi
	je	LBB0_1
## %bb.3:
	andl	%edx, %ecx
	cmpl	%eax, %ecx
	jne	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r12), %eax
	orl	%eax, (%rbx)
LBB0_5:
	movq	_WPS_AUTH_WPAPSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_WPS_AUTH_WPA2PSK@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	orl	%eax, %ecx
	andl	4(%rbx), %ecx
	cmpl	%eax, %ecx
	jne	LBB0_7
## %bb.6:
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r12), %eax
	orl	%eax, 4(%rbx)
LBB0_7:
	movq	(%r14), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movl	8(%rcx), %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	movq	_WPS_ENCR_WEP@GOTPCREL(%rip), %rax
	movq	_MSG_INFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testl	%edx, (%rax)
	je	LBB0_9
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_10:
	movl	$-1, %eax
	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: encr_type=0x%x"

	.comm	_WPS_ENCR_NONE,4,2              ## @WPS_ENCR_NONE
	.comm	_WPS_ENCR_TKIP,4,2              ## @WPS_ENCR_TKIP
	.comm	_WPS_ENCR_AES,4,2               ## @WPS_ENCR_AES
	.comm	_WPS_ENCR_WEP,4,2               ## @WPS_ENCR_WEP
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"WPS: Reject new AP settings due to WEP configuration"

L_.str.2:                               ## @.str.2
	.asciz	"WPS: Reject new AP settings due to invalid encr_type 0x%x"

L_.str.3:                               ## @.str.3
	.asciz	"WPS: Upgrade encr_type TKIP -> TKIP+AES"

	.comm	_WPS_AUTH_WPAPSK,4,2            ## @WPS_AUTH_WPAPSK
	.comm	_WPS_AUTH_WPA2PSK,4,2           ## @WPS_AUTH_WPA2PSK
L_.str.4:                               ## @.str.4
	.asciz	"WPS: Upgrade auth_type WPAPSK -> WPAPSK+WPA2PSK"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_registrar_config_ap        ; -- Begin function wps_registrar_config_ap
	.p2align	2
_wps_registrar_config_ap:               ; @wps_registrar_config_ap
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w8, [x1]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	w8, [x19]
Lloh4:
	adrp	x9, _WPS_ENCR_NONE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _WPS_ENCR_NONE@GOTPAGEOFF]
Lloh6:
	ldr	w11, [x9]
Lloh7:
	adrp	x9, _WPS_ENCR_TKIP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _WPS_ENCR_TKIP@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x22, _WPS_ENCR_AES@GOTPAGE
Lloh11:
	ldr	x22, [x22, _WPS_ENCR_AES@GOTPAGEOFF]
	ldr	w10, [x22]
	orr	w10, w10, w9
	orr	w11, w10, w11
	tst	w11, w8
	b.eq	LBB0_7
; %bb.1:
	and	w8, w10, w8
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x21]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	ldr	w8, [x22]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_3:
	ldr	w8, [x19, #4]
Lloh14:
	adrp	x9, _WPS_AUTH_WPAPSK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _WPS_AUTH_WPAPSK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x22, _WPS_AUTH_WPA2PSK@GOTPAGE
Lloh18:
	ldr	x22, [x22, _WPS_AUTH_WPA2PSK@GOTPAGEOFF]
	ldr	w10, [x22]
	orr	w10, w10, w9
	and	w8, w10, w8
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x21]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	ldr	w8, [x22]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_5:
	ldr	x8, [x20]
	ldr	x2, [x8]
	cbz	x2, LBB0_11
; %bb.6:
	ldr	w0, [x8, #8]
	mov	x1, x19
	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
	br	x2
LBB0_7:
Lloh21:
	adrp	x9, _WPS_ENCR_WEP@GOTPAGE
Lloh22:
	ldr	x9, [x9, _WPS_ENCR_WEP@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _MSG_INFO@GOTPAGE
Lloh25:
	ldr	x10, [x10, _MSG_INFO@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x10]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
	str	x8, [sp]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	bl	_wpa_printf
LBB0_11:
	mov	w0, #-1
	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 AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: encr_type=0x%x"

	.comm	_WPS_ENCR_NONE,4,2              ; @WPS_ENCR_NONE
	.comm	_WPS_ENCR_TKIP,4,2              ; @WPS_ENCR_TKIP
	.comm	_WPS_ENCR_AES,4,2               ; @WPS_ENCR_AES
	.comm	_WPS_ENCR_WEP,4,2               ; @WPS_ENCR_WEP
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"WPS: Reject new AP settings due to WEP configuration"

l_.str.2:                               ; @.str.2
	.asciz	"WPS: Reject new AP settings due to invalid encr_type 0x%x"

l_.str.3:                               ; @.str.3
	.asciz	"WPS: Upgrade encr_type TKIP -> TKIP+AES"

	.comm	_WPS_AUTH_WPAPSK,4,2            ; @WPS_AUTH_WPAPSK
	.comm	_WPS_AUTH_WPA2PSK,4,2           ; @WPS_AUTH_WPA2PSK
l_.str.4:                               ; @.str.4
	.asciz	"WPS: Upgrade auth_type WPAPSK -> WPAPSK+WPA2PSK"

.subsections_via_symbols
