	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_supplicant_validate_ie
_wpa_supplicant_validate_ie:            ## @wpa_supplicant_validate_ie
	.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
	cmpq	$0, 48(%rdi)
	jne	LBB0_6
## %bb.1:
	cmpq	$0, 32(%r15)
	jne	LBB0_6
## %bb.2:
	movq	56(%r15), %rax
	movl	(%rax), %edi
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdx
	callq	_wpa_dbg
	movq	%r15, %rdi
	callq	_wpa_sm_get_beacon_ie
	movq	56(%r15), %rcx
	movl	(%rcx), %edi
	testq	%rax, %rax
	jns	LBB0_3
## %bb.4:
	leaq	L_.str.1(%rip), %rdx
	movq	_MSG_WARNING@GOTPCREL(%rip), %r12
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.2(%rip), %rdx
LBB0_5:
	movl	(%r12), %esi
	callq	_wpa_msg
LBB0_6:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.11:
	movq	48(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.12:
	movq	(%rbx), %rdx
	cmpq	(%r15), %rdx
	jne	LBB0_17
## %bb.13:
	callq	_os_memcmp
	testq	%rax, %rax
	jne	LBB0_17
	jmp	LBB0_14
LBB0_7:
	cmpq	$0, 16(%rbx)
	je	LBB0_8
LBB0_14:
	cmpq	$0, 16(%rbx)
	je	LBB0_18
## %bb.15:
	cmpq	$0, 32(%r15)
	je	LBB0_18
## %bb.16:
	movl	16(%r15), %edi
	callq	_wpa_key_mgmt_ft
	movq	32(%r15), %rsi
	movl	40(%r15), %edx
	movq	16(%rbx), %rcx
	movl	8(%rbx), %r8d
	movq	%rax, %rdi
	callq	_wpa_compare_rsn_ie
	testq	%rax, %rax
	je	LBB0_18
LBB0_17:
	movq	24(%rbx), %rcx
	movq	(%rbx), %r8
	movq	16(%rbx), %r9
	movl	8(%rbx), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.4(%rip), %rsi
LBB0_23:
	movq	%r15, %rdi
	movq	%r14, %rdx
	jmp	LBB0_24
LBB0_18:
	movq	8(%r15), %rcx
	movq	_WPA_PROTO_WPA@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_25
## %bb.19:
	movq	16(%rbx), %r9
	testq	%r9, %r9
	je	LBB0_25
## %bb.20:
	cmpq	$0, 32(%r15)
	jne	LBB0_25
## %bb.21:
	cmpq	$0, 24(%r15)
	je	LBB0_25
## %bb.22:
	movq	24(%rbx), %rcx
	movq	(%rbx), %r8
	movl	8(%rbx), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_23
LBB0_8:
	cmpq	$0, 48(%r15)
	jne	LBB0_10
## %bb.9:
	cmpq	$0, 32(%r15)
	je	LBB0_14
LBB0_10:
	movq	(%rbx), %r8
	movl	8(%rbx), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
LBB0_24:
	callq	_wpa_report_ie_mismatch
	movl	$-1, %eax
LBB0_25:
	addq	$16, %rsp
	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	"WPA: No WPA/RSN IE for this AP known. Trying to get from scan results"

	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"WPA: Could not find AP from the scan results"

L_.str.2:                               ## @.str.2
	.asciz	"WPA: Found the current AP from updated scan results"

L_.str.3:                               ## @.str.3
	.asciz	"IE in 3/4 msg does not match with IE in Beacon/ProbeResp (no IE?)"

L_.str.4:                               ## @.str.4
	.asciz	"IE in 3/4 msg does not match with IE in Beacon/ProbeResp"

	.comm	_WPA_PROTO_WPA,8,3              ## @WPA_PROTO_WPA
L_.str.5:                               ## @.str.5
	.asciz	"Possible downgrade attack detected - RSN was enabled and RSN IE was in msg 3/4, but not in Beacon/ProbeResp"

	.no_dead_strip	_wpa_supplicant_validate_ie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_supplicant_validate_ie
_wpa_supplicant_validate_ie:            ; @wpa_supplicant_validate_ie
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #48]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_6
LBB0_2:
	ldr	x0, [x21, #24]
	cbz	x0, LBB0_7
LBB0_3:
	ldr	x1, [x20, #48]
	cbz	x1, LBB0_8
; %bb.4:
	ldr	x2, [x21]
	ldr	x8, [x20]
	cmp	x2, x8
	b.ne	LBB0_11
; %bb.5:
	bl	_os_memcmp
	cbnz	x0, LBB0_11
	b	LBB0_8
LBB0_6:
	ldr	x8, [x20, #56]
	ldr	w0, [x8]
Lloh0:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_wpa_dbg
	mov	x0, x20
	bl	_wpa_sm_get_beacon_ie
	ldr	x8, [x20, #56]
	ldr	w8, [x8]
Lloh4:
	adrp	x9, l_.str.2@PAGE
Lloh5:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh6:
	adrp	x10, l_.str.1@PAGE
Lloh7:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x2, x10, x9, lt
Lloh8:
	adrp	x9, _MSG_WARNING@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MSG_WARNING@GOTPAGEOFF]
	csel	x9, x9, x22, lt
	ldr	w1, [x9]
	mov	x0, x8
	bl	_wpa_msg
	ldr	x0, [x21, #24]
	cbnz	x0, LBB0_3
LBB0_7:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_19
LBB0_8:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_14
; %bb.9:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_14
; %bb.10:
	ldr	w0, [x20, #16]
	bl	_wpa_key_mgmt_ft
	ldr	x1, [x20, #32]
	ldr	w2, [x20, #40]
	ldr	x3, [x21, #16]
	ldr	w4, [x21, #8]
	bl	_wpa_compare_rsn_ie
	cbz	x0, LBB0_14
LBB0_11:
	ldr	x4, [x21]
	ldp	x5, x3, [x21, #16]
	ldr	w6, [x21, #8]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_12:
	mov	x0, x20
	mov	x2, x19
LBB0_13:
	bl	_wpa_report_ie_mismatch
	mov	w0, #-1
	b	LBB0_18
LBB0_14:
	ldr	x8, [x20, #8]
Lloh12:
	adrp	x9, _WPA_PROTO_WPA@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WPA_PROTO_WPA@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.15:
	ldr	x5, [x21, #16]
	cbz	x5, LBB0_17
; %bb.16:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_22
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_19:
	ldr	x8, [x20, #48]
	cbnz	x8, LBB0_21
; %bb.20:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_8
LBB0_21:
	ldr	x4, [x21]
	ldr	w6, [x21, #8]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, #0
	mov	x5, #0
	b	LBB0_13
LBB0_22:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_17
; %bb.23:
	ldr	x3, [x21, #24]
	ldr	x4, [x21]
	ldr	w6, [x21, #8]
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPA: No WPA/RSN IE for this AP known. Trying to get from scan results"

	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"WPA: Could not find AP from the scan results"

l_.str.2:                               ; @.str.2
	.asciz	"WPA: Found the current AP from updated scan results"

l_.str.3:                               ; @.str.3
	.asciz	"IE in 3/4 msg does not match with IE in Beacon/ProbeResp (no IE?)"

l_.str.4:                               ; @.str.4
	.asciz	"IE in 3/4 msg does not match with IE in Beacon/ProbeResp"

	.comm	_WPA_PROTO_WPA,8,3              ; @WPA_PROTO_WPA
l_.str.5:                               ; @.str.5
	.asciz	"Possible downgrade attack detected - RSN was enabled and RSN IE was in msg 3/4, but not in Beacon/ProbeResp"

	.no_dead_strip	_wpa_supplicant_validate_ie
.subsections_via_symbols
