	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_gpsk_derive_mid_helper
_eap_gpsk_derive_mid_helper:            ## @eap_gpsk_derive_mid_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$129, %edi
	jne	LBB0_5
## %bb.1:
	movq	%r9, %r15
	movq	%r8, %r12
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	leaq	16(%r9), %r14
	movq	%r14, %rdi
	callq	_os_malloc
	movl	$-1, %r13d
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	movl	$9, %edx
	movq	%rax, %rdi
	callq	_os_memcpy
	leaq	36(%rbx), %rdi
	leaq	16(%rbp), %rsi
	movl	$1, %edx
	callq	_os_memcpy
	leaq	40(%rbx), %rdi
	movq	_EAP_GPSK_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WPA_PUT_BE32
	leaq	56(%rbx), %rdi
	movl	$129, %esi
	callq	_WPA_PUT_BE16
	movq	%rbx, %rdi
	addq	$64, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_os_memcpy
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_wpa_hexdump
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %r8
	callq	_eap_gpsk_gkdf_cmac
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_os_free
	testl	%r14d, %r14d
	js	LBB0_4
## %bb.3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_wpa_hexdump
	xorl	%r13d, %r13d
	jmp	LBB0_4
LBB0_5:
	movl	%edi, %ebx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_wpa_printf
	movl	$-1, %r13d
LBB0_4:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	"EAP-GPSK: Unknown cipher %d used in Session-Id derivation"

L_.str.1:                               ## @.str.1
	.asciz	"Method ID"

	.comm	_EAP_GPSK_VENDOR_IETF,4,2       ## @EAP_GPSK_VENDOR_IETF
L_.str.2:                               ## @.str.2
	.asciz	"EAP-GPSK: Data to Method ID derivation"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-GPSK: Method ID"

	.comm	_SID_LABEL,8,3                  ## @SID_LABEL
	.no_dead_strip	_eap_gpsk_derive_mid_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_mid_helper
_eap_gpsk_derive_mid_helper:            ; @eap_gpsk_derive_mid_helper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	str	w6, [sp, #12]
	cmp	w0, #129
	b.ne	LBB0_4
; %bb.1:
	mov	x24, x5
	mov	x25, x4
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	add	x23, x5, #16
	mov	x0, x23
	bl	_os_malloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #9
	bl	_os_memcpy
	add	x0, x22, #36
	add	x1, sp, #12
	mov	w2, #1
	bl	_os_memcpy
	add	x0, x22, #40
Lloh2:
	adrp	x8, _EAP_GPSK_VENDOR_IETF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EAP_GPSK_VENDOR_IETF@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_WPA_PUT_BE32
	add	x0, x22, #56
	mov	w1, #129
	bl	_WPA_PUT_BE16
	add	x0, x22, #64
	mov	x1, x25
	mov	x2, x24
	bl	_os_memcpy
Lloh5:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	mov	x3, x23
	bl	_wpa_hexdump
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x20
	mov	x4, x19
	bl	_eap_gpsk_gkdf_cmac
	mov	x21, x0
	mov	x0, x22
	bl	_os_free
	tbnz	w21, #31, LBB0_5
; %bb.3:
	ldr	w0, [x24]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_wpa_hexdump
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	mov	x2, x0
Lloh11:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-GPSK: Unknown cipher %d used in Session-Id derivation"

l_.str.1:                               ; @.str.1
	.asciz	"Method ID"

	.comm	_EAP_GPSK_VENDOR_IETF,4,2       ; @EAP_GPSK_VENDOR_IETF
l_.str.2:                               ; @.str.2
	.asciz	"EAP-GPSK: Data to Method ID derivation"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-GPSK: Method ID"

	.comm	_SID_LABEL,8,3                  ; @SID_LABEL
	.no_dead_strip	_eap_gpsk_derive_mid_helper
.subsections_via_symbols
