	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_psk_process_4
_eap_psk_process_4:                     ## @eap_psk_process_4
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rsi), %rax
	movq	_PSK_3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_PSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-184(%rbp), %rcx
	movq	%r12, %rdx
	callq	_eap_hdr_validate
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	-184(%rbp), %rcx
	cmpq	$3, %rcx
	jbe	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	leaq	4(%rax), %r14
	addq	$-4, %rcx
	movq	%rcx, -184(%rbp)
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	callq	_wpa_hexdump
	movq	-184(%rbp), %rdx
	cmpq	$20, %rdx
	ja	LBB0_6
## %bb.5:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_24
LBB0_3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_11:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpq	$0, (%r14)
	jne	LBB0_12
## %bb.7:
	cmpq	$0, 12(%rbx)
	jne	LBB0_12
## %bb.8:
	cmpq	$0, 20(%rbx)
	jne	LBB0_12
## %bb.9:
	cmpq	$0, 28(%rbx)
	je	LBB0_10
LBB0_12:
	leaq	-176(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_os_memset
	leaq	-80(%rbp), %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_os_memcpy
	movq	-184(%rbp), %rsi
	leaq	164(%rbx), %rdi
	addq	$-20, %rsi
	movq	%rsi, -184(%rbp)
	callq	_os_memdup
	testq	%rax, %rax
	je	LBB0_24
## %bb.13:
	movq	%rax, %r14
	addq	$36, %rbx
	movl	8(%r15), %r13d
	movq	%r12, %rdi
	callq	_wpabuf_head
	leaq	-176(%rbp), %rsi
	movl	%r13d, %edi
	movl	$128, %edx
	movl	%eax, %ecx
	movl	$22, %r8d
	movq	%r14, %r9
	pushq	%rbx
	pushq	-184(%rbp)
	callq	_aes_128_eax_decrypt
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r14, %rdi
	callq	_os_free
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	jmp	LBB0_24
LBB0_15:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	-184(%rbp), %rcx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdx
	callq	_wpa_hexdump
	movq	(%r14), %rax
	sarq	$6, %rax
	cmpq	$128, %rax
	je	LBB0_19
## %bb.16:
	cmpq	$129, %rax
	je	LBB0_20
## %bb.17:
	cmpq	$130, %rax
	jne	LBB0_23
## %bb.18:
	movl	(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_21
LBB0_20:
	movl	(%rbx), %edi
	leaq	L_.str.9(%rip), %rsi
LBB0_21:
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_19:
	movl	(%rbx), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_SUCCESS@GOTPCREL(%rip), %rax
LBB0_22:
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_23:
	movq	%r14, %rdi
	callq	_os_free
	jmp	LBB0_24
LBB0_10:
	movl	(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_11
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PSK_3,8,3                      ## @PSK_3
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-PSK: Received PSK-4"

	.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
L_.str.1:                               ## @.str.1
	.asciz	"EAP-PSK: Invalid frame"

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.2:                               ## @.str.2
	.asciz	"EAP-PSK: Encrypted PCHANNEL"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-PSK: Too short PCHANNEL data in PSK-4 (len=%lu, expected 21)"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-PSK: Nonce did not increase"

	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
L_.str.5:                               ## @.str.5
	.asciz	"EAP-PSK: PCHANNEL decryption failed"

	.comm	_FAILURE,8,3                    ## @FAILURE
L_.str.6:                               ## @.str.6
	.asciz	"EAP-PSK: Decrypted PCHANNEL message"

L_.str.7:                               ## @.str.7
	.asciz	"EAP-PSK: R flag - CONT - unsupported"

L_.str.8:                               ## @.str.8
	.asciz	"EAP-PSK: R flag - DONE_SUCCESS"

	.comm	_SUCCESS,8,3                    ## @SUCCESS
L_.str.9:                               ## @.str.9
	.asciz	"EAP-PSK: R flag - DONE_FAILURE"

	.no_dead_strip	_eap_psk_process_4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_psk_process_4
_eap_psk_process_4:                     ; @eap_psk_process_4
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x8, [x1]
Lloh3:
	adrp	x9, _PSK_3@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PSK_3@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.1:
	mov	x20, x2
	mov	x19, x1
Lloh6:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh10:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _EAP_TYPE_PSK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EAP_TYPE_PSK@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x3, sp, #16
	mov	x2, x20
	bl	_eap_hdr_validate
	ldr	x8, [sp, #16]
	cmp	x0, #0
	ccmp	x8, #3, #0, ne
	b.hi	LBB0_3
; %bb.2:
Lloh16:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	b	LBB0_21
LBB0_3:
	mov	x22, x0
	add	x21, x0, #4
	sub	x3, x8, #4
	str	x3, [sp, #16]
Lloh21:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_wpa_hexdump
	ldr	x8, [sp, #16]
	cmp	x8, #20
	b.hi	LBB0_5
; %bb.4:
Lloh26:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	b	LBB0_21
LBB0_5:
	ldr	x8, [x21]
	cbnz	x8, LBB0_9
; %bb.6:
	ldur	x8, [x22, #12]
	cbnz	x8, LBB0_9
; %bb.7:
	ldur	x8, [x22, #20]
	cbnz	x8, LBB0_9
; %bb.8:
	ldur	x8, [x22, #28]
	cbz	x8, LBB0_23
LBB0_9:
	add	x23, sp, #24
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #12
	bl	_os_memset
	add	x0, x23, #96
	mov	x1, x21
	mov	w2, #4
	bl	_os_memcpy
	ldr	x8, [sp, #16]
	add	x0, x22, #164
	sub	x1, x8, #20
	str	x1, [sp, #16]
	bl	_os_memdup
	cbz	x0, LBB0_21
; %bb.10:
	mov	x21, x0
	add	x22, x22, #36
	ldr	w23, [x19, #8]
	mov	x0, x20
	bl	_wpabuf_head
	mov	x3, x0
	ldr	x6, [sp, #16]
	add	x1, sp, #24
	mov	x0, x23
	mov	w2, #128
	mov	w4, #22
	mov	x5, x21
	mov	x7, x22
	bl	_aes_128_eax_decrypt
	cbz	x0, LBB0_12
; %bb.11:
Lloh31:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	mov	x0, x21
	bl	_os_free
Lloh36:
	adrp	x8, _FAILURE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_21
LBB0_12:
	ldr	w0, [x24]
	ldr	x3, [sp, #16]
Lloh39:
	adrp	x1, l_.str.6@PAGE
Lloh40:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x21
	bl	_wpa_hexdump
	ldr	x8, [x21]
	asr	x8, x8, #6
	cmp	x8, #128
	b.eq	LBB0_16
; %bb.13:
	cmp	x8, #129
	b.eq	LBB0_17
; %bb.14:
	cmp	x8, #130
	b.ne	LBB0_20
; %bb.15:
	ldr	w0, [x24]
Lloh41:
	adrp	x1, l_.str.7@PAGE
Lloh42:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_18
LBB0_16:
	ldr	w0, [x24]
Lloh43:
	adrp	x1, l_.str.8@PAGE
Lloh44:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_wpa_printf
Lloh45:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
	ldr	w0, [x24]
Lloh47:
	adrp	x1, l_.str.9@PAGE
Lloh48:
	add	x1, x1, l_.str.9@PAGEOFF
LBB0_18:
	bl	_wpa_printf
Lloh49:
	adrp	x8, _FAILURE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
LBB0_19:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_20:
	mov	x0, x21
	bl	_os_free
LBB0_21:
	ldur	x8, [x29, #-56]
Lloh51:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh52:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.22:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_23:
	ldr	w0, [x24]
Lloh54:
	adrp	x1, l_.str.4@PAGE
Lloh55:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	b	LBB0_21
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_PSK_3,8,3                      ; @PSK_3
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-PSK: Received PSK-4"

	.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
l_.str.1:                               ; @.str.1
	.asciz	"EAP-PSK: Invalid frame"

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.2:                               ; @.str.2
	.asciz	"EAP-PSK: Encrypted PCHANNEL"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-PSK: Too short PCHANNEL data in PSK-4 (len=%lu, expected 21)"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-PSK: Nonce did not increase"

	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
l_.str.5:                               ; @.str.5
	.asciz	"EAP-PSK: PCHANNEL decryption failed"

	.comm	_FAILURE,8,3                    ; @FAILURE
l_.str.6:                               ; @.str.6
	.asciz	"EAP-PSK: Decrypted PCHANNEL message"

l_.str.7:                               ; @.str.7
	.asciz	"EAP-PSK: R flag - CONT - unsupported"

l_.str.8:                               ; @.str.8
	.asciz	"EAP-PSK: R flag - DONE_SUCCESS"

	.comm	_SUCCESS,8,3                    ; @SUCCESS
l_.str.9:                               ; @.str.9
	.asciz	"EAP-PSK: R flag - DONE_FAILURE"

	.no_dead_strip	_eap_psk_process_4
.subsections_via_symbols
