	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_gpsk_compute_mic           ## -- Begin function eap_gpsk_compute_mic
	.p2align	4, 0x90
_eap_gpsk_compute_mic:                  ## @eap_gpsk_compute_mic
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_EAP_GPSK_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	$-1, %ebx
	cmpl	%edx, (%rax)
	jne	LBB0_6
## %bb.1:
	cmpl	$129, %ecx
	jne	LBB0_2
## %bb.4:
	movq	16(%rbp), %rax
	movq	%r8, %rdx
	movq	%r9, %rcx
	movq	%rax, %r8
	callq	_eap_gpsk_compute_mic_aes
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %ebx
LBB0_3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.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: Unknown cipher %d:%d used in MIC computation"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-GPSK: Could not compute MIC"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_gpsk_compute_mic           ; -- Begin function eap_gpsk_compute_mic
	.p2align	2
_eap_gpsk_compute_mic:                  ; @eap_gpsk_compute_mic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w3 killed $w3 def $x3
                                        ; kill: def $w2 killed $w2 def $x2
Lloh0:
	adrp	x8, _EAP_GPSK_VENDOR_IETF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAP_GPSK_VENDOR_IETF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x20, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MSG_DEBUG@GOTPAGEOFF]
	cmp	w3, #129
	b.ne	LBB0_4
; %bb.2:
	mov	x2, x4
	mov	x3, x5
	mov	x4, x6
	bl	_eap_gpsk_compute_mic_aes
	mov	x19, x0
	cbnz	w0, LBB0_5
	b	LBB0_6
LBB0_3:
	mov	w19, #-1
	b	LBB0_6
LBB0_4:
	ldr	w0, [x20]
	stp	x2, x3, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w19, #-1
LBB0_5:
	ldr	w0, [x20]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.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: Unknown cipher %d:%d used in MIC computation"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-GPSK: Could not compute MIC"

.subsections_via_symbols
