	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_wps_security_workaround
_wpas_wps_security_workaround:          ## @wpas_wps_security_workaround
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-48(%rbp), %rsi
	callq	_wpa_drv_get_capa
	testq	%rax, %rax
	je	LBB0_1
LBB0_28:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	16(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_28
## %bb.2:
	movl	(%rbx), %esi
	movl	8(%r14), %ecx
	movq	%r15, %rdi
	callq	_wpa_bss_get
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movl	8(%r15), %esi
	movq	16(%r14), %rdx
	movl	8(%r14), %ecx
	movq	%r15, %rdi
	callq	_wpa_bss_get
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	_WLAN_EID_RSN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpa_bss_get_ie
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	8(%rax), %rsi
	addq	$2, %rsi
	leaq	-40(%rbp), %rdx
	movq	%rax, %rdi
	callq	_wpa_parse_wpa_ie
	testq	%rax, %rax
	je	LBB0_13
LBB0_7:
	movq	_WPA_IE_VENDOR_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpa_bss_get_vendor_ie
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	8(%rax), %rsi
	addq	$2, %rsi
	leaq	-40(%rbp), %rdx
	movq	%rax, %rdi
	callq	_wpa_parse_wpa_ie
	testq	%rax, %rax
	jne	LBB0_28
## %bb.9:
	movq	_WPA_CIPHER_CCMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movb	$1, %bl
	testl	%eax, -40(%rbp)
	jne	LBB0_15
	jmp	LBB0_28
LBB0_10:
	movq	_WPA_PROTO_WPA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_28
## %bb.11:
	movq	_WPA_CIPHER_TKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_28
## %bb.12:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_28
LBB0_13:
	movq	_WPA_CIPHER_CCMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -40(%rbp)
	je	LBB0_22
## %bb.14:
	xorl	%ebx, %ebx
LBB0_15:
	movl	4(%r14), %ecx
	testl	%ecx, %eax
	je	LBB0_16
LBB0_21:
	testb	%bl, %bl
	jne	LBB0_28
LBB0_22:
	movl	(%r14), %eax
	movq	_WPA_PROTO_RSN@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	jne	LBB0_28
## %bb.23:
	movq	_WPA_PROTO_WPA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_28
## %bb.24:
	movq	_WPA_DRIVER_CAPA_ENC_CCMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_28
## %bb.25:
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_wpa_printf
	movq	(%r15), %rax
	cmpl	$1, (%rax)
	movl	(%rbx), %eax
	jne	LBB0_27
## %bb.26:
	orl	%eax, (%r14)
	jmp	LBB0_28
LBB0_4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_28
LBB0_16:
	movq	_WPA_CIPHER_TKIP@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_21
## %bb.17:
	movq	_WPA_DRIVER_CAPA_KEY_MGMT_WPA2_PSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -48(%rbp)
	je	LBB0_21
## %bb.18:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
	movq	(%r15), %rax
	cmpl	$1, (%rax)
	movq	_WPA_CIPHER_CCMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jne	LBB0_20
## %bb.19:
	orl	%eax, 4(%r14)
	jmp	LBB0_21
LBB0_20:
	movl	%eax, 4(%r14)
	jmp	LBB0_21
LBB0_27:
	movl	%eax, (%r14)
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: The AP was not found from BSS table - use credential as-is"

L_.str.1:                               ## @.str.1
	.asciz	"WPS: AP found from BSS table"

	.comm	_WLAN_EID_RSN,4,2               ## @WLAN_EID_RSN
	.comm	_WPA_CIPHER_CCMP,4,2            ## @WPA_CIPHER_CCMP
	.comm	_WPA_IE_VENDOR_TYPE,4,2         ## @WPA_IE_VENDOR_TYPE
	.comm	_WPA_PROTO_WPA,4,2              ## @WPA_PROTO_WPA
	.comm	_WPA_CIPHER_TKIP,4,2            ## @WPA_CIPHER_TKIP
L_.str.2:                               ## @.str.2
	.asciz	"WPS: The AP did not yet advertise WPA support - use credential as-is"

	.comm	_WPA_DRIVER_CAPA_KEY_MGMT_WPA2_PSK,4,2 ## @WPA_DRIVER_CAPA_KEY_MGMT_WPA2_PSK
L_.str.3:                               ## @.str.3
	.asciz	"WPS: Add CCMP into the credential based on scan results"

	.comm	_WPA_PROTO_RSN,4,2              ## @WPA_PROTO_RSN
	.comm	_WPA_DRIVER_CAPA_ENC_CCMP,4,2   ## @WPA_DRIVER_CAPA_ENC_CCMP
L_.str.4:                               ## @.str.4
	.asciz	"WPS: Add WPA2 into the credential based on scan results"

	.no_dead_strip	_wpas_wps_security_workaround
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_wps_security_workaround
_wpas_wps_security_workaround:          ; @wpas_wps_security_workaround
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	x1, sp, #8
	bl	_wpa_drv_get_capa
	cbz	x0, LBB0_2
LBB0_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
LBB0_2:
	ldr	x2, [x19, #16]
	cbz	x2, LBB0_1
; %bb.3:
	ldr	w1, [x21]
	ldr	w3, [x19, #8]
	mov	x0, x20
	bl	_wpa_bss_get
	mov	x21, x0
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w1, [x20, #8]
	ldr	x2, [x19, #16]
	ldr	w3, [x19, #8]
	mov	x0, x20
	bl	_wpa_bss_get
	mov	x21, x0
	cbz	x0, LBB0_24
LBB0_5:
Lloh0:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
Lloh4:
	adrp	x8, _WLAN_EID_RSN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WLAN_EID_RSN@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_wpa_bss_get_ie
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x0, #8]
	add	x1, x8, #2
	mov	x2, sp
	bl	_wpa_parse_wpa_ie
	cbz	x0, LBB0_14
LBB0_7:
Lloh7:
	adrp	x8, _WPA_IE_VENDOR_TYPE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WPA_IE_VENDOR_TYPE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_wpa_bss_get_vendor_ie
	cbz	x0, LBB0_11
; %bb.8:
	ldr	x8, [x0, #8]
	add	x1, x8, #2
	mov	x2, sp
	bl	_wpa_parse_wpa_ie
	cbnz	x0, LBB0_1
; %bb.9:
	ldr	w9, [sp]
Lloh10:
	adrp	x8, _WPA_CIPHER_CCMP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WPA_CIPHER_CCMP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_1
; %bb.10:
	mov	w21, #1
	b	LBB0_16
LBB0_11:
	ldr	w8, [x19]
Lloh13:
	adrp	x9, _WPA_PROTO_WPA@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WPA_PROTO_WPA@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.12:
	ldr	w8, [x19, #4]
Lloh16:
	adrp	x9, _WPA_CIPHER_TKIP@GOTPAGE
Lloh17:
	ldr	x9, [x9, _WPA_CIPHER_TKIP@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.13:
	ldr	w0, [x22]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	b	LBB0_1
LBB0_14:
	ldr	w9, [sp]
Lloh21:
	adrp	x8, _WPA_CIPHER_CCMP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WPA_CIPHER_CCMP@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_18
; %bb.15:
	mov	w21, #0
LBB0_16:
	ldr	w9, [x19, #4]
	tst	w8, w9
	b.eq	LBB0_25
LBB0_17:
	tbnz	w21, #0, LBB0_1
LBB0_18:
	ldr	w8, [x19]
Lloh24:
	adrp	x21, _WPA_PROTO_RSN@GOTPAGE
Lloh25:
	ldr	x21, [x21, _WPA_PROTO_RSN@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_1
; %bb.19:
Lloh26:
	adrp	x9, _WPA_PROTO_WPA@GOTPAGE
Lloh27:
	ldr	x9, [x9, _WPA_PROTO_WPA@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.20:
	ldr	w8, [sp, #12]
Lloh29:
	adrp	x9, _WPA_DRIVER_CAPA_ENC_CCMP@GOTPAGE
Lloh30:
	ldr	x9, [x9, _WPA_DRIVER_CAPA_ENC_CCMP@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.21:
	ldr	w0, [x22]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x20]
	ldr	w9, [x8]
	ldr	w8, [x21]
	cmp	w9, #1
	b.ne	LBB0_23
; %bb.22:
	ldr	w9, [x19]
	orr	w8, w9, w8
LBB0_23:
	str	w8, [x19]
	b	LBB0_1
LBB0_24:
Lloh34:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x1, l_.str@PAGE
Lloh38:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	b	LBB0_1
LBB0_25:
Lloh39:
	adrp	x8, _WPA_CIPHER_TKIP@GOTPAGE
Lloh40:
	ldr	x8, [x8, _WPA_CIPHER_TKIP@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_17
; %bb.26:
	ldr	w8, [sp, #8]
Lloh42:
	adrp	x9, _WPA_DRIVER_CAPA_KEY_MGMT_WPA2_PSK@GOTPAGE
Lloh43:
	ldr	x9, [x9, _WPA_DRIVER_CAPA_KEY_MGMT_WPA2_PSK@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.27:
	ldr	w0, [x22]
Lloh45:
	adrp	x1, l_.str.3@PAGE
Lloh46:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x20]
	ldr	w9, [x8]
Lloh47:
	adrp	x8, _WPA_CIPHER_CCMP@GOTPAGE
Lloh48:
	ldr	x8, [x8, _WPA_CIPHER_CCMP@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	cmp	w9, #1
	b.ne	LBB0_29
; %bb.28:
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
LBB0_29:
	str	w8, [x19, #4]
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: The AP was not found from BSS table - use credential as-is"

l_.str.1:                               ; @.str.1
	.asciz	"WPS: AP found from BSS table"

	.comm	_WLAN_EID_RSN,4,2               ; @WLAN_EID_RSN
	.comm	_WPA_CIPHER_CCMP,4,2            ; @WPA_CIPHER_CCMP
	.comm	_WPA_IE_VENDOR_TYPE,4,2         ; @WPA_IE_VENDOR_TYPE
	.comm	_WPA_PROTO_WPA,4,2              ; @WPA_PROTO_WPA
	.comm	_WPA_CIPHER_TKIP,4,2            ; @WPA_CIPHER_TKIP
l_.str.2:                               ; @.str.2
	.asciz	"WPS: The AP did not yet advertise WPA support - use credential as-is"

	.comm	_WPA_DRIVER_CAPA_KEY_MGMT_WPA2_PSK,4,2 ; @WPA_DRIVER_CAPA_KEY_MGMT_WPA2_PSK
l_.str.3:                               ; @.str.3
	.asciz	"WPS: Add CCMP into the credential based on scan results"

	.comm	_WPA_PROTO_RSN,4,2              ; @WPA_PROTO_RSN
	.comm	_WPA_DRIVER_CAPA_ENC_CCMP,4,2   ; @WPA_DRIVER_CAPA_ENC_CCMP
l_.str.4:                               ; @.str.4
	.asciz	"WPS: Add WPA2 into the credential based on scan results"

	.no_dead_strip	_wpas_wps_security_workaround
.subsections_via_symbols
