	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_wps_ssid_bss_match        ## -- Begin function wpas_wps_ssid_bss_match
	.p2align	4, 0x90
_wpas_wps_ssid_bss_match:               ## @wpas_wps_ssid_bss_match
	.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
	movq	_WPA_KEY_MGMT_WPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$-1, %r12d
	testl	%eax, (%rsi)
	je	LBB0_19
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_WPS_IE_VENDOR_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdx, %rdi
	callq	_wpa_bss_get_vendor_ie_multi
	movq	%rax, %r14
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_eap_is_wps_pbc_enrollee
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	testq	%r14, %r14
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_wps_is_selected_pbc_registrar
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_18
LBB0_8:
	movq	%rbx, %rdi
	callq	_eap_is_wps_pin_enrollee
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	testq	%r14, %r14
	je	LBB0_3
## %bb.10:
	movl	12(%r15), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_wps_is_addr_authorized
	testl	%eax, %eax
	je	LBB0_11
## %bb.14:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_18
LBB0_3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_19
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_6:
	movq	%r14, %rdi
	callq	_wpabuf_free
	jmp	LBB0_19
LBB0_15:
	testq	%r14, %r14
	je	LBB0_19
## %bb.16:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_17
LBB0_11:
	leaq	8(%r15), %rdi
	leaq	-40(%rbp), %rsi
	callq	_os_reltime_age
	movq	(%r15), %rdx
	movq	_WPS_PIN_SCAN_IGNORE_SEL_REG@GOTPCREL(%rip), %rax
	movq	-40(%rbp), %rcx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	cmpq	(%rax), %rdx
	jl	LBB0_13
## %bb.12:
	movq	_WPS_PIN_TIME_IGNORE_SEL_REG@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jl	LBB0_13
LBB0_17:
	leaq	L_.str.4(%rip), %rsi
LBB0_18:
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r14, %rdi
	callq	_wpabuf_free
	movl	$1, %r12d
LBB0_19:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r12d, %r12d
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_KEY_MGMT_WPS,4,2           ## @WPA_KEY_MGMT_WPS
	.comm	_WPS_IE_VENDOR_TYPE,4,2         ## @WPS_IE_VENDOR_TYPE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"   skip - non-WPS AP"

L_.str.1:                               ## @.str.1
	.asciz	"   skip - WPS AP without active PBC Registrar"

L_.str.2:                               ## @.str.2
	.asciz	"   selected based on WPS IE (Active PBC)"

	.comm	_WPS_PIN_SCAN_IGNORE_SEL_REG,8,3 ## @WPS_PIN_SCAN_IGNORE_SEL_REG
	.comm	_WPS_PIN_TIME_IGNORE_SEL_REG,8,3 ## @WPS_PIN_TIME_IGNORE_SEL_REG
L_.str.3:                               ## @.str.3
	.asciz	"   skip - WPS AP without active PIN Registrar (scan_runs=%d age=%d)"

L_.str.4:                               ## @.str.4
	.asciz	"   selected based on WPS IE"

L_.str.5:                               ## @.str.5
	.asciz	"   selected based on WPS IE (Authorized MAC or Active PIN)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_wps_ssid_bss_match        ; -- Begin function wpas_wps_ssid_bss_match
	.p2align	2
_wpas_wps_ssid_bss_match:               ; @wpas_wps_ssid_bss_match
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _WPA_KEY_MGMT_WPS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_KEY_MGMT_WPS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.1:
	mov	x21, x1
	mov	x20, x0
Lloh3:
	adrp	x8, _WPS_IE_VENDOR_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WPS_IE_VENDOR_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x2
	bl	_wpa_bss_get_vendor_ie_multi
	mov	x19, x0
	add	x21, x21, #4
	mov	x0, x21
	bl	_eap_is_wps_pbc_enrollee
	cbz	x0, LBB0_5
; %bb.2:
	cbz	x19, LBB0_9
; %bb.3:
	mov	x0, x19
	bl	_wps_is_selected_pbc_registrar
	mov	x8, x0
Lloh6:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
	cbz	w8, LBB0_10
; %bb.4:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_19
LBB0_5:
	mov	x0, x21
	bl	_eap_is_wps_pin_enrollee
	cbz	x0, LBB0_13
; %bb.6:
	cbz	x19, LBB0_9
; %bb.7:
	ldr	w1, [x20, #12]
	mov	x0, x19
	mov	w2, #1
	bl	_wps_is_addr_authorized
	cbz	w0, LBB0_16
; %bb.8:
Lloh11:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_19
LBB0_9:
Lloh16:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	b	LBB0_12
LBB0_10:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	bl	_wpa_printf
	mov	x0, x19
	bl	_wpabuf_free
LBB0_12:
	mov	w0, #0
	b	LBB0_20
LBB0_13:
	cbz	x19, LBB0_15
; %bb.14:
Lloh23:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	b	LBB0_18
LBB0_15:
	mov	w0, #-1
	b	LBB0_20
LBB0_16:
	add	x0, x20, #8
	add	x1, sp, #24
	bl	_os_reltime_age
	ldr	x8, [x20]
Lloh26:
	adrp	x9, _WPS_PIN_SCAN_IGNORE_SEL_REG@GOTPAGE
Lloh27:
	ldr	x9, [x9, _WPS_PIN_SCAN_IGNORE_SEL_REG@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x9]
	ldr	x9, [sp, #24]
Lloh29:
	adrp	x11, _WPS_PIN_TIME_IGNORE_SEL_REG@GOTPAGE
Lloh30:
	ldr	x11, [x11, _WPS_PIN_TIME_IGNORE_SEL_REG@GOTPAGEOFF]
Lloh31:
	ldr	x11, [x11]
Lloh32:
	adrp	x12, _MSG_DEBUG@GOTPAGE
Lloh33:
	ldr	x12, [x12, _MSG_DEBUG@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x12]
	cmp	x8, x10
	ccmp	x9, x11, #8, ge
	b.ge	LBB0_18
; %bb.17:
	stp	x8, x9, [sp]
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_18:
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_19:
	bl	_wpa_printf
	mov	x0, x19
	bl	_wpabuf_free
	mov	w0, #1
LBB0_20:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_KEY_MGMT_WPS,4,2           ; @WPA_KEY_MGMT_WPS
	.comm	_WPS_IE_VENDOR_TYPE,4,2         ; @WPS_IE_VENDOR_TYPE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"   skip - non-WPS AP"

l_.str.1:                               ; @.str.1
	.asciz	"   skip - WPS AP without active PBC Registrar"

l_.str.2:                               ; @.str.2
	.asciz	"   selected based on WPS IE (Active PBC)"

	.comm	_WPS_PIN_SCAN_IGNORE_SEL_REG,8,3 ; @WPS_PIN_SCAN_IGNORE_SEL_REG
	.comm	_WPS_PIN_TIME_IGNORE_SEL_REG,8,3 ; @WPS_PIN_TIME_IGNORE_SEL_REG
l_.str.3:                               ; @.str.3
	.asciz	"   skip - WPS AP without active PIN Registrar (scan_runs=%d age=%d)"

l_.str.4:                               ; @.str.4
	.asciz	"   selected based on WPS IE"

l_.str.5:                               ; @.str.5
	.asciz	"   selected based on WPS IE (Authorized MAC or Active PIN)"

.subsections_via_symbols
