	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_psk_check
_eap_psk_check:                         ## @eap_psk_check
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_PSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rcx
	callq	_eap_hdr_validate
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	$0, -32(%rbp)
	je	LBB0_2
## %bb.3:
	movl	(%rax), %edi
	callq	_EAP_PSK_FLAGS_GET_T
	movl	%eax, %ebx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%r14), %rax
	cmpl	$1, %ebx
	je	LBB0_7
## %bb.4:
	movq	_PSK_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_2:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_14:
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_15
LBB0_7:
	cmpl	$3, %ebx
	je	LBB0_10
## %bb.8:
	movq	_PSK_3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_6:
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_15:
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpl	$1, %ebx
	sete	%dl
	cmpq	$4, -32(%rbp)
	setb	%al
	cmpl	$3, %ebx
	sete	%cl
	testb	%al, %dl
	jne	LBB0_13
## %bb.11:
	andb	%al, %cl
	jne	LBB0_13
## %bb.12:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_13:
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_PSK,4,2               ## @EAP_TYPE_PSK
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-PSK: Invalid frame"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"EAP-PSK: received frame: T=%d"

	.comm	_PSK_1,8,3                      ## @PSK_1
L_.str.2:                               ## @.str.2
	.asciz	"EAP-PSK: Expected PSK-2 - ignore T=%d"

	.comm	_PSK_3,8,3                      ## @PSK_3
L_.str.3:                               ## @.str.3
	.asciz	"EAP-PSK: Expected PSK-4 - ignore T=%d"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-PSK: Too short frame"

	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_eap_psk_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_psk_check
_eap_psk_check:                         ; @eap_psk_check
	.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
Lloh0:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _EAP_TYPE_PSK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_TYPE_PSK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #8
	bl	_eap_hdr_validate
	ldr	x8, [sp, #8]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_2:
	ldr	w0, [x0]
	bl	_EAP_PSK_FLAGS_GET_T
	mov	x20, x0
Lloh11:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh12:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x21]
	str	x20, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19]
Lloh15:
	adrp	x9, _PSK_1@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PSK_1@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	w20, #1
	ccmp	x8, x9, #0, ne
	b.eq	LBB0_7
; %bb.3:
Lloh18:
	adrp	x9, _PSK_3@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PSK_3@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	w20, #3
	ccmp	x8, x9, #0, ne
	b.eq	LBB0_8
; %bb.4:
	cmp	w20, #1
	cset	w9, eq
	ldr	x8, [sp, #8]
	cmp	x8, #4
	cset	w8, lo
	and	w10, w9, w8
	cmp	w20, #3
	cset	w9, eq
	tbnz	w10, #0, LBB0_9
; %bb.5:
	and	w8, w9, w8
	cbnz	w8, LBB0_9
; %bb.6:
Lloh21:
	adrp	x8, _FALSE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	ldr	w0, [x21]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_8:
	ldr	w0, [x21]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_9:
	ldr	w0, [x21]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_10:
	bl	_wpa_printf
Lloh29:
	adrp	x8, _TRUE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_PSK,4,2               ; @EAP_TYPE_PSK
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-PSK: Invalid frame"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"EAP-PSK: received frame: T=%d"

	.comm	_PSK_1,8,3                      ; @PSK_1
l_.str.2:                               ; @.str.2
	.asciz	"EAP-PSK: Expected PSK-2 - ignore T=%d"

	.comm	_PSK_3,8,3                      ; @PSK_3
l_.str.3:                               ; @.str.3
	.asciz	"EAP-PSK: Expected PSK-4 - ignore T=%d"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-PSK: Too short frame"

	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_eap_psk_check
.subsections_via_symbols
