	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_process_config_methods
_wps_process_config_methods:            ## @wps_process_config_methods
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_WPA_GET_BE16
	movl	%eax, %ebx
	movq	_WPS_CONFIG_USBA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	_WPS_CONFIG_ETHERNET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ebx, %edx
	leaq	L_.str.4(%rip), %r8
	cmoveq	%rax, %r8
	movq	_WPS_CONFIG_LABEL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ebx, %edx
	leaq	L_.str.5(%rip), %r9
	cmoveq	%rax, %r9
	movq	_WPS_CONFIG_DISPLAY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ebx, %edx
	leaq	L_.str.6(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	_WPS_CONFIG_EXT_NFC_TOKEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ebx, %edx
	leaq	L_.str.7(%rip), %r11
	cmoveq	%rax, %r11
	movq	_WPS_CONFIG_INT_NFC_TOKEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ebx, %edx
	leaq	L_.str.8(%rip), %r13
	cmoveq	%rax, %r13
	movq	_WPS_CONFIG_NFC_INTERFACE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ebx, %edx
	leaq	L_.str.9(%rip), %r12
	cmoveq	%rax, %r12
	movq	_WPS_CONFIG_PUSHBUTTON@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ebx, %edx
	leaq	L_.str.10(%rip), %r14
	cmoveq	%rax, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rsi
	movq	_WPS_CONFIG_KEYPAD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ebx, %edx
	leaq	L_.str.11(%rip), %r10
	cmoveq	%rax, %r10
	movl	(%rsi), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%ebx, %edx
	xorl	%eax, %eax
	pushq	%r10
	pushq	%r14
	pushq	%r12
	pushq	%r13
	pushq	%r11
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_wpa_printf
	addq	$48, %rsp
	movq	_WPS_CONFIG_DISPLAY@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_5
## %bb.3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$0, (%rbx)
	jne	LBB0_5
## %bb.4:
	movl	(%rax), %edi
	leaq	L_.str.12(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$1, (%rbx)
	jmp	LBB0_5
LBB0_1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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: No Config Methods received"

L_.str.1:                               ## @.str.1
	.asciz	"WPS: Enrollee Config Methods 0x%x%s%s%s%s%s%s%s%s%s"

	.comm	_WPS_CONFIG_USBA,4,2            ## @WPS_CONFIG_USBA
L_.str.2:                               ## @.str.2
	.asciz	" [USBA]"

L_.str.3:                               ## @.str.3
	.space	1

	.comm	_WPS_CONFIG_ETHERNET,4,2        ## @WPS_CONFIG_ETHERNET
L_.str.4:                               ## @.str.4
	.asciz	" [Ethernet]"

	.comm	_WPS_CONFIG_LABEL,4,2           ## @WPS_CONFIG_LABEL
L_.str.5:                               ## @.str.5
	.asciz	" [Label]"

	.comm	_WPS_CONFIG_DISPLAY,4,2         ## @WPS_CONFIG_DISPLAY
L_.str.6:                               ## @.str.6
	.asciz	" [Display]"

	.comm	_WPS_CONFIG_EXT_NFC_TOKEN,4,2   ## @WPS_CONFIG_EXT_NFC_TOKEN
L_.str.7:                               ## @.str.7
	.asciz	" [Ext NFC Token]"

	.comm	_WPS_CONFIG_INT_NFC_TOKEN,4,2   ## @WPS_CONFIG_INT_NFC_TOKEN
L_.str.8:                               ## @.str.8
	.asciz	" [Int NFC Token]"

	.comm	_WPS_CONFIG_NFC_INTERFACE,4,2   ## @WPS_CONFIG_NFC_INTERFACE
L_.str.9:                               ## @.str.9
	.asciz	" [NFC]"

	.comm	_WPS_CONFIG_PUSHBUTTON,4,2      ## @WPS_CONFIG_PUSHBUTTON
L_.str.10:                              ## @.str.10
	.asciz	" [PBC]"

	.comm	_WPS_CONFIG_KEYPAD,4,2          ## @WPS_CONFIG_KEYPAD
L_.str.11:                              ## @.str.11
	.asciz	" [Keypad]"

L_.str.12:                              ## @.str.12
	.asciz	"WPS: Prefer PSK format key due to Enrollee not supporting display"

	.no_dead_strip	_wps_process_config_methods
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_process_config_methods
_wps_process_config_methods:            ; @wps_process_config_methods
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	cbz	x1, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x1
	bl	_WPA_GET_BE16
	mov	x20, x0
Lloh0:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _WPS_CONFIG_USBA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WPS_CONFIG_USBA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh7:
	adrp	x10, l_.str.3@PAGE
Lloh8:
	add	x10, x10, l_.str.3@PAGEOFF
	tst	w8, w20
	csel	x8, x10, x9, eq
Lloh9:
	adrp	x9, _WPS_CONFIG_ETHERNET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WPS_CONFIG_ETHERNET@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x11, l_.str.4@PAGE
Lloh13:
	add	x11, x11, l_.str.4@PAGEOFF
	tst	w9, w20
Lloh14:
	adrp	x9, _WPS_CONFIG_LABEL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _WPS_CONFIG_LABEL@GOTPAGEOFF]
	csel	x11, x10, x11, eq
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x12, l_.str.5@PAGE
Lloh18:
	add	x12, x12, l_.str.5@PAGEOFF
	tst	w9, w20
	csel	x9, x10, x12, eq
Lloh19:
	adrp	x22, _WPS_CONFIG_DISPLAY@GOTPAGE
Lloh20:
	ldr	x22, [x22, _WPS_CONFIG_DISPLAY@GOTPAGEOFF]
	ldr	w12, [x22]
Lloh21:
	adrp	x13, l_.str.6@PAGE
Lloh22:
	add	x13, x13, l_.str.6@PAGEOFF
	tst	w12, w20
	csel	x12, x10, x13, eq
Lloh23:
	adrp	x13, _WPS_CONFIG_EXT_NFC_TOKEN@GOTPAGE
Lloh24:
	ldr	x13, [x13, _WPS_CONFIG_EXT_NFC_TOKEN@GOTPAGEOFF]
Lloh25:
	ldr	w13, [x13]
Lloh26:
	adrp	x14, l_.str.7@PAGE
Lloh27:
	add	x14, x14, l_.str.7@PAGEOFF
	tst	w13, w20
	csel	x13, x10, x14, eq
Lloh28:
	adrp	x14, _WPS_CONFIG_INT_NFC_TOKEN@GOTPAGE
Lloh29:
	ldr	x14, [x14, _WPS_CONFIG_INT_NFC_TOKEN@GOTPAGEOFF]
Lloh30:
	adrp	x15, l_.str.8@PAGE
Lloh31:
	add	x15, x15, l_.str.8@PAGEOFF
Lloh32:
	ldr	w14, [x14]
	tst	w14, w20
	csel	x14, x10, x15, eq
Lloh33:
	adrp	x15, _WPS_CONFIG_NFC_INTERFACE@GOTPAGE
Lloh34:
	ldr	x15, [x15, _WPS_CONFIG_NFC_INTERFACE@GOTPAGEOFF]
Lloh35:
	ldr	w15, [x15]
Lloh36:
	adrp	x16, l_.str.9@PAGE
Lloh37:
	add	x16, x16, l_.str.9@PAGEOFF
	tst	w15, w20
	csel	x15, x10, x16, eq
Lloh38:
	adrp	x16, _WPS_CONFIG_PUSHBUTTON@GOTPAGE
Lloh39:
	ldr	x16, [x16, _WPS_CONFIG_PUSHBUTTON@GOTPAGEOFF]
Lloh40:
	ldr	w16, [x16]
Lloh41:
	adrp	x17, l_.str.10@PAGE
Lloh42:
	add	x17, x17, l_.str.10@PAGEOFF
	tst	w16, w20
Lloh43:
	adrp	x16, _WPS_CONFIG_KEYPAD@GOTPAGE
Lloh44:
	ldr	x16, [x16, _WPS_CONFIG_KEYPAD@GOTPAGEOFF]
	csel	x17, x10, x17, eq
Lloh45:
	ldr	w16, [x16]
Lloh46:
	adrp	x1, l_.str.11@PAGE
Lloh47:
	add	x1, x1, l_.str.11@PAGEOFF
	tst	w16, w20
	csel	x10, x10, x1, eq
	stp	x17, x10, [sp, #64]
	stp	x14, x15, [sp, #48]
	stp	x12, x13, [sp, #32]
	stp	x11, x9, [sp, #16]
Lloh48:
	adrp	x1, l_.str.1@PAGE
Lloh49:
	add	x1, x1, l_.str.1@PAGEOFF
	stp	x20, x8, [sp]
	bl	_wpa_printf
	ldr	w8, [x22]
	tst	w8, w20
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19]
	cbz	w8, LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh50:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh51:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
Lloh53:
	adrp	x1, l_.str@PAGE
Lloh54:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_6
LBB0_5:
	ldr	w0, [x21]
Lloh55:
	adrp	x1, l_.str.12@PAGE
Lloh56:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_wpa_printf
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh32
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: No Config Methods received"

l_.str.1:                               ; @.str.1
	.asciz	"WPS: Enrollee Config Methods 0x%x%s%s%s%s%s%s%s%s%s"

	.comm	_WPS_CONFIG_USBA,4,2            ; @WPS_CONFIG_USBA
l_.str.2:                               ; @.str.2
	.asciz	" [USBA]"

l_.str.3:                               ; @.str.3
	.space	1

	.comm	_WPS_CONFIG_ETHERNET,4,2        ; @WPS_CONFIG_ETHERNET
l_.str.4:                               ; @.str.4
	.asciz	" [Ethernet]"

	.comm	_WPS_CONFIG_LABEL,4,2           ; @WPS_CONFIG_LABEL
l_.str.5:                               ; @.str.5
	.asciz	" [Label]"

	.comm	_WPS_CONFIG_DISPLAY,4,2         ; @WPS_CONFIG_DISPLAY
l_.str.6:                               ; @.str.6
	.asciz	" [Display]"

	.comm	_WPS_CONFIG_EXT_NFC_TOKEN,4,2   ; @WPS_CONFIG_EXT_NFC_TOKEN
l_.str.7:                               ; @.str.7
	.asciz	" [Ext NFC Token]"

	.comm	_WPS_CONFIG_INT_NFC_TOKEN,4,2   ; @WPS_CONFIG_INT_NFC_TOKEN
l_.str.8:                               ; @.str.8
	.asciz	" [Int NFC Token]"

	.comm	_WPS_CONFIG_NFC_INTERFACE,4,2   ; @WPS_CONFIG_NFC_INTERFACE
l_.str.9:                               ; @.str.9
	.asciz	" [NFC]"

	.comm	_WPS_CONFIG_PUSHBUTTON,4,2      ; @WPS_CONFIG_PUSHBUTTON
l_.str.10:                              ; @.str.10
	.asciz	" [PBC]"

	.comm	_WPS_CONFIG_KEYPAD,4,2          ; @WPS_CONFIG_KEYPAD
l_.str.11:                              ; @.str.11
	.asciz	" [Keypad]"

l_.str.12:                              ; @.str.12
	.asciz	"WPS: Prefer PSK format key due to Enrollee not supporting display"

	.no_dead_strip	_wps_process_config_methods
.subsections_via_symbols
