	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_gpsk_derive_keys_helper
_eap_gpsk_derive_keys_helper:           ## @eap_gpsk_derive_keys_helper
	.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	$168, %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)
	movl	$-1, %ebx
	cmpq	$129, %rdi
	jne	LBB0_8
## %bb.1:
	movq	%r8, %r12
	cmpq	$16, %r8
	jb	LBB0_8
## %bb.2:
	movq	%rcx, %r13
	movq	%r9, -200(%rbp)                 ## 8-byte Spill
	movq	%rdx, -184(%rbp)                ## 8-byte Spill
	movq	%rsi, -192(%rbp)                ## 8-byte Spill
	movq	16(%rbp), %rax
	leaq	(%r12,%rax), %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_WPA_PUT_BE16
	leaq	8(%r14), %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_os_memcpy
	leaq	(%r14,%r12,4), %rdi
	addq	$8, %rdi
	movq	_EAP_GPSK_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WPA_PUT_BE32
	leaq	(%r14,%r12,4), %rdi
	addq	$24, %rdi
	movl	$129, %esi
	callq	_WPA_PUT_BE16
	leaq	(%r14,%r12,4), %rdi
	addq	$32, %rdi
	movq	-200(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rsi
	movq	16(%rbp), %rdx
	callq	_os_memcpy
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_wpa_hexdump_key
	leaq	-176(%rbp), %rcx
	movl	$16, %r8d
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_eap_gpsk_gkdf_cmac
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_os_free
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-176(%rbp), %rbx
	movl	$16, %ecx
	movq	%rbx, %rdx
	callq	_wpa_hexdump_key
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	16(%rbp), %rdx
	movq	-192(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rcx
	movq	-184(%rbp), %r8                 ## 8-byte Reload
	callq	_eap_gpsk_gkdf_cmac
	testl	%eax, %eax
	movl	$-1, %ebx
	js	LBB0_8
## %bb.6:
	movq	48(%rbp), %r15
	movq	24(%rbp), %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_EAP_MSK_LEN@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	callq	_wpa_hexdump_key
	movq	(%r13), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_os_memcpy
	movq	(%r13), %rax
	leaq	(%r14,%rax,4), %rbx
	movl	(%r12), %edi
	movq	_EAP_EMSK_LEN@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_hexdump_key
	movq	(%r14), %rdx
	movq	32(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_os_memcpy
	movq	(%r14), %rax
	leaq	(%rbx,%rax,4), %r13
	movl	(%r12), %edi
	movq	56(%rbp), %r12
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_wpa_hexdump_key
	movq	40(%rbp), %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_os_memcpy
	xorl	%ebx, %ebx
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:
	movq	64(%rbp), %r14
	leaq	(,%r15,4), %rbx
	addq	%r13, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_wpa_hexdump_key
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdx
	callq	_os_memcpy
	jmp	LBB0_8
LBB0_4:
	movl	$-1, %ebx
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_GPSK_VENDOR_IETF,4,2       ## @EAP_GPSK_VENDOR_IETF
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-GPSK: Data to MK derivation"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-GPSK: MK"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-GPSK: MSK"

	.comm	_EAP_MSK_LEN,8,3                ## @EAP_MSK_LEN
L_.str.3:                               ## @.str.3
	.asciz	"EAP-GPSK: EMSK"

	.comm	_EAP_EMSK_LEN,8,3               ## @EAP_EMSK_LEN
L_.str.4:                               ## @.str.4
	.asciz	"EAP-GPSK: SK"

L_.str.5:                               ## @.str.5
	.asciz	"EAP-GPSK: PK"

	.comm	_SHA256_MAC_LEN,8,3             ## @SHA256_MAC_LEN
	.no_dead_strip	_eap_gpsk_derive_keys_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_gpsk_derive_keys_helper
_eap_gpsk_derive_keys_helper:           ; @eap_gpsk_derive_keys_helper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x8, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-88]
	mov	w0, #-1
	cmp	x8, #129
	b.ne	LBB0_9
; %bb.1:
	mov	x27, x4
	cmp	x4, #16
	b.lo	LBB0_9
; %bb.2:
	mov	x20, x7
	mov	x21, x6
	mov	x23, x5
	mov	x24, x3
	mov	x22, x2
	mov	x19, x1
	add	x8, x27, x6
	add	x25, x8, #8
	mov	x0, x25
	bl	_os_malloc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x26, x0
	mov	x1, x27
	bl	_WPA_PUT_BE16
	add	x28, x26, #8
	mov	x0, x28
	mov	x1, x24
	mov	x2, x27
	bl	_os_memcpy
	add	x27, x28, x27, lsl #2
Lloh3:
	adrp	x8, _EAP_GPSK_VENDOR_IETF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_GPSK_VENDOR_IETF@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x27
	bl	_WPA_PUT_BE32
	add	x0, x27, #16
	mov	w1, #129
	bl	_WPA_PUT_BE16
	add	x0, x27, #24
	mov	x1, x23
	mov	x2, x21
	bl	_os_memcpy
Lloh6:
	adrp	x27, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x27, [x27, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x26
	mov	x3, x25
	bl	_wpa_hexdump_key
	add	x3, sp, #8
	mov	x0, x24
	mov	x1, x26
	mov	x2, x25
	mov	w4, #16
	bl	_eap_gpsk_gkdf_cmac
	mov	x24, x0
	mov	x0, x26
	bl	_os_free
	tbnz	w24, #31, LBB0_8
; %bb.4:
	ldr	w0, [x27]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	w3, #16
	bl	_wpa_hexdump_key
	add	x0, sp, #8
	mov	x1, x23
	mov	x2, x21
	mov	x3, x19
	mov	x4, x22
	bl	_eap_gpsk_gkdf_cmac
	tbnz	w0, #31, LBB0_8
; %bb.5:
	ldp	x22, x21, [x29, #32]
	ldp	x24, x23, [x29, #16]
	ldr	w0, [x27]
Lloh12:
	adrp	x25, _EAP_MSK_LEN@GOTPAGE
Lloh13:
	ldr	x25, [x25, _EAP_MSK_LEN@GOTPAGEOFF]
	ldr	x3, [x25]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_wpa_hexdump_key
	ldr	x2, [x25]
	mov	x0, x20
	mov	x1, x19
	bl	_os_memcpy
	ldr	x8, [x25]
	add	x19, x19, x8, lsl #2
	ldr	w0, [x27]
Lloh16:
	adrp	x20, _EAP_EMSK_LEN@GOTPAGE
Lloh17:
	ldr	x20, [x20, _EAP_EMSK_LEN@GOTPAGEOFF]
	ldr	x3, [x20]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_wpa_hexdump_key
	ldr	x2, [x20]
	mov	x0, x24
	mov	x1, x19
	bl	_os_memcpy
	ldr	x8, [x20]
	add	x19, x19, x8, lsl #2
	ldr	w0, [x27]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x19
	mov	x3, x22
	bl	_wpa_hexdump_key
	mov	x0, x23
	mov	x1, x19
	mov	x2, x22
	bl	_os_memcpy
	cbz	x21, LBB0_7
; %bb.6:
	ldr	x20, [x29, #48]
	add	x19, x19, x22, lsl #2
	ldr	w0, [x27]
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_wpa_hexdump_key
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_os_memcpy
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldur	x8, [x29, #-88]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_GPSK_VENDOR_IETF,4,2       ; @EAP_GPSK_VENDOR_IETF
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-GPSK: Data to MK derivation"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-GPSK: MK"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-GPSK: MSK"

	.comm	_EAP_MSK_LEN,8,3                ; @EAP_MSK_LEN
l_.str.3:                               ; @.str.3
	.asciz	"EAP-GPSK: EMSK"

	.comm	_EAP_EMSK_LEN,8,3               ; @EAP_EMSK_LEN
l_.str.4:                               ; @.str.4
	.asciz	"EAP-GPSK: SK"

l_.str.5:                               ; @.str.5
	.asciz	"EAP-GPSK: PK"

	.comm	_SHA256_MAC_LEN,8,3             ; @SHA256_MAC_LEN
	.no_dead_strip	_eap_gpsk_derive_keys_helper
.subsections_via_symbols
