	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_psk_build_3
_eap_psk_build_3:                       ## @eap_psk_build_3
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_PSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EAP_CODE_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$37, %edx
	movl	%ebx, %r8d
	callq	_eap_msg_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$16, %esi
	callq	_wpabuf_put
	movq	%rax, %r13
	movl	$2, %edi
	callq	_EAP_PSK_FLAGS_SET_T
	movl	%eax, 12(%r13)
	movq	(%r13), %rdi
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	movq	(%r14), %rsi
	movq	_EAP_PSK_RAND_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_os_memcpy
	movslq	(%r12), %rax
	movslq	(%rbx), %rbx
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r14
	movq	8(%r12), %rsi
	movl	(%r12), %edx
	movq	%rax, %rdi
	callq	_os_memcpy
	movslq	(%r12), %rax
	leaq	(%r14,%rax,4), %rdi
	movq	-120(%rbp), %r12                ## 8-byte Reload
	movq	8(%r12), %rsi
	movq	_EAP_PSK_RAND_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
	movl	40(%r12), %edi
	movl	8(%r13), %ecx
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_omac1_aes_128
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_os_free
	testq	%rbx, %rbx
	jne	LBB0_7
## %bb.4:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	36(%rax), %edi
	movq	8(%rax), %rsi
	movl	24(%rax), %edx
	movl	32(%rax), %ecx
	movl	28(%rax), %r8d
	callq	_eap_psk_derive_keys
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rax, %rbx
	movq	-120(%rbp), %r12                ## 8-byte Reload
	movl	24(%r12), %edx
	movq	_EAP_PSK_TEK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_hexdump_key
	movl	(%rbx), %edi
	movl	32(%r12), %edx
	movq	_EAP_MSK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_hexdump_key
	movl	(%rbx), %edi
	movl	28(%r12), %edx
	movq	_EAP_EMSK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.4(%rip), %rsi
	callq	_wpa_hexdump_key
	leaq	-112(%rbp), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_os_memset
	movq	%r15, %rdi
	movl	$21, %esi
	callq	_wpabuf_put
	movq	%rax, %rbx
	leaq	-64(%rbp), %rsi
	movq	%rax, %rdi
	movl	$4, %edx
	callq	_os_memcpy
	leaq	16(%rbx), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_os_memset
	movq	_EAP_PSK_R_FLAG_DONE_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$6, %eax
	leaq	80(%rbx), %r14
	movl	%eax, 80(%rbx)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdx
	movl	$21, %ecx
	callq	_wpa_hexdump
	movl	24(%r12), %r12d
	movq	%r15, %rdi
	callq	_wpabuf_head
	movl	%r12d, %edi
	leaq	-112(%rbp), %rsi
	movl	$64, %edx
	movl	%eax, %ecx
	movl	$22, %r8d
	movq	%r14, %r9
	pushq	%r13
	pushq	$1
	callq	_aes_128_eax_encrypt
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	%r15, %rdi
	callq	_wpabuf_free
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, 16(%rcx)
	jmp	LBB0_8
LBB0_1:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
LBB0_8:
	xorl	%r15d, %r15d
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movq	%r15, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdx
	movl	$21, %ecx
	callq	_wpa_hexdump
	jmp	LBB0_9
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-PSK: PSK-3 (sending)"

	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_PSK,4,2               ## @EAP_TYPE_PSK
	.comm	_EAP_CODE_REQUEST,4,2           ## @EAP_CODE_REQUEST
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"EAP-PSK: Failed to allocate memory request"

	.comm	_FAILURE,8,3                    ## @FAILURE
	.comm	_EAP_PSK_RAND_LEN,4,2           ## @EAP_PSK_RAND_LEN
L_.str.2:                               ## @.str.2
	.asciz	"EAP-PSK: TEK"

	.comm	_EAP_PSK_TEK_LEN,4,2            ## @EAP_PSK_TEK_LEN
L_.str.3:                               ## @.str.3
	.asciz	"EAP-PSK: MSK"

	.comm	_EAP_MSK_LEN,4,2                ## @EAP_MSK_LEN
L_.str.4:                               ## @.str.4
	.asciz	"EAP-PSK: EMSK"

	.comm	_EAP_EMSK_LEN,4,2               ## @EAP_EMSK_LEN
	.comm	_EAP_PSK_R_FLAG_DONE_SUCCESS,4,2 ## @EAP_PSK_R_FLAG_DONE_SUCCESS
L_.str.5:                               ## @.str.5
	.asciz	"EAP-PSK: PCHANNEL (plaintext)"

L_.str.6:                               ## @.str.6
	.asciz	"EAP-PSK: PCHANNEL (encrypted)"

	.no_dead_strip	_eap_psk_build_3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_psk_build_3
_eap_psk_build_3:                       ; @eap_psk_build_3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
Lloh3:
	adrp	x25, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh7:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _EAP_TYPE_PSK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EAP_TYPE_PSK@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _EAP_CODE_REQUEST@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EAP_CODE_REQUEST@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	w2, #37
	mov	x4, x20
	bl	_eap_msg_alloc
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.1:
	mov	x0, x20
	mov	w1, #16
	bl	_wpabuf_put
	mov	x22, x0
	mov	w0, #2
	bl	_EAP_PSK_FLAGS_SET_T
	str	w0, [x22, #12]
	ldr	x0, [x22]
	ldr	x1, [x19]
Lloh16:
	adrp	x26, _EAP_PSK_RAND_LEN@GOTPAGE
Lloh17:
	ldr	x26, [x26, _EAP_PSK_RAND_LEN@GOTPAGEOFF]
	ldr	w2, [x26]
	bl	_os_memcpy
	ldrsw	x8, [x21]
	ldrsw	x9, [x26]
	add	x24, x9, x8
	mov	x0, x24
	bl	_os_malloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x23, x0
	ldr	x1, [x21, #8]
	ldr	w2, [x21]
	bl	_os_memcpy
	ldrsw	x8, [x21]
	add	x0, x23, x8, lsl #2
	ldr	x1, [x19, #8]
	ldr	w2, [x26]
	bl	_os_memcpy
	ldr	w0, [x19, #40]
	ldr	w3, [x22, #8]
	mov	x1, x23
	mov	x2, x24
	bl	_omac1_aes_128
	mov	x21, x0
	mov	x0, x23
	bl	_os_free
	cbnz	x21, LBB0_5
; %bb.3:
	ldr	x1, [x19, #8]
	ldp	w3, w0, [x19, #32]
	ldp	w2, w4, [x19, #24]
	bl	_eap_psk_derive_keys
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x25]
	ldr	w2, [x19, #24]
Lloh18:
	adrp	x8, _EAP_PSK_TEK_LEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EAP_PSK_TEK_LEN@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_hexdump_key
	ldr	w0, [x25]
	ldr	w2, [x19, #32]
Lloh23:
	adrp	x8, _EAP_MSK_LEN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EAP_MSK_LEN@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_hexdump_key
	ldr	w0, [x25]
	ldr	w2, [x19, #28]
Lloh28:
	adrp	x8, _EAP_EMSK_LEN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EAP_EMSK_LEN@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_hexdump_key
	add	x22, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #64
	bl	_os_memset
	mov	x0, x20
	mov	w1, #21
	bl	_wpabuf_put
	mov	x21, x0
	add	x1, x22, #48
	mov	w2, #4
	bl	_os_memcpy
	add	x22, x21, #16
	mov	x0, x22
	mov	w1, #0
	mov	w2, #16
	bl	_os_memset
Lloh33:
	adrp	x8, _EAP_PSK_R_FLAG_DONE_SUCCESS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EAP_PSK_R_FLAG_DONE_SUCCESS@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	lsl	w8, w8, #6
	mov	x23, x21
	str	w8, [x23, #80]!
	ldr	w0, [x25]
Lloh36:
	adrp	x1, l_.str.5@PAGE
Lloh37:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x21
	mov	w3, #21
	bl	_wpa_hexdump
	ldr	w24, [x19, #24]
	mov	x0, x20
	bl	_wpabuf_head
	mov	x3, x0
	add	x1, sp, #8
	mov	x0, x24
	mov	w2, #64
	mov	w4, #22
	mov	x5, x23
	mov	w6, #1
	mov	x7, x22
	bl	_aes_128_eax_encrypt
	cbz	x0, LBB0_10
LBB0_5:
	mov	x0, x20
	bl	_wpabuf_free
	mov	x20, #0
	b	LBB0_7
LBB0_6:
Lloh38:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
Lloh41:
	adrp	x1, l_.str.1@PAGE
Lloh42:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_7:
Lloh43:
	adrp	x8, _FAILURE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_8:
	ldr	x8, [sp, #72]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.9:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_10:
	ldr	w0, [x25]
Lloh49:
	adrp	x1, l_.str.6@PAGE
Lloh50:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x21
	mov	w3, #21
	bl	_wpa_hexdump
	b	LBB0_8
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-PSK: PSK-3 (sending)"

	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_PSK,4,2               ; @EAP_TYPE_PSK
	.comm	_EAP_CODE_REQUEST,4,2           ; @EAP_CODE_REQUEST
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"EAP-PSK: Failed to allocate memory request"

	.comm	_FAILURE,8,3                    ; @FAILURE
	.comm	_EAP_PSK_RAND_LEN,4,2           ; @EAP_PSK_RAND_LEN
l_.str.2:                               ; @.str.2
	.asciz	"EAP-PSK: TEK"

	.comm	_EAP_PSK_TEK_LEN,4,2            ; @EAP_PSK_TEK_LEN
l_.str.3:                               ; @.str.3
	.asciz	"EAP-PSK: MSK"

	.comm	_EAP_MSK_LEN,4,2                ; @EAP_MSK_LEN
l_.str.4:                               ; @.str.4
	.asciz	"EAP-PSK: EMSK"

	.comm	_EAP_EMSK_LEN,4,2               ; @EAP_EMSK_LEN
	.comm	_EAP_PSK_R_FLAG_DONE_SUCCESS,4,2 ; @EAP_PSK_R_FLAG_DONE_SUCCESS
l_.str.5:                               ; @.str.5
	.asciz	"EAP-PSK: PCHANNEL (plaintext)"

l_.str.6:                               ; @.str.6
	.asciz	"EAP-PSK: PCHANNEL (encrypted)"

	.no_dead_strip	_eap_psk_build_3
.subsections_via_symbols
