	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_gpsk_send_gpsk_4
_eap_gpsk_send_gpsk_4:                  ## @eap_gpsk_send_gpsk_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	(%r14), %esi
	movl	4(%r14), %edi
	callq	_eap_gpsk_mic_len
	movq	%rax, %r15
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_GPSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	3(%r15), %edx
	movq	_EAP_CODE_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %r8d
	callq	_eap_msg_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	_EAP_GPSK_OPCODE_GPSK_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpabuf_put_u8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	movq	%rax, %r12
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put_be16
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wpabuf_put
	movl	12(%r14), %edi
	movl	8(%r14), %esi
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	movq	%rax, %r9
	subq	%r12, %r9
	shrq	$2, %r9
	movq	%rax, (%rsp)
	movq	%r12, %r8
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_eap_gpsk_compute_mic
	testq	%rax, %rax
	jns	LBB0_4
## %bb.2:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_eap_gpsk_state
	movq	%rbx, %rdi
	callq	_wpabuf_free
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	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: Sending Response/GPSK-4"

	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_GPSK,4,2              ## @EAP_TYPE_GPSK
	.comm	_EAP_CODE_RESPONSE,4,2          ## @EAP_CODE_RESPONSE
	.comm	_EAP_GPSK_OPCODE_GPSK_4,4,2     ## @EAP_GPSK_OPCODE_GPSK_4
	.comm	_FAILURE,4,2                    ## @FAILURE
	.no_dead_strip	_eap_gpsk_send_gpsk_4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_gpsk_send_gpsk_4
_eap_gpsk_send_gpsk_4:                  ; @eap_gpsk_send_gpsk_4
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldp	w1, w0, [x19]
	bl	_eap_gpsk_mic_len
	mov	x21, x0
Lloh5:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh7:
	adrp	x9, _EAP_TYPE_GPSK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _EAP_TYPE_GPSK@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	ldr	w1, [x9]
	add	w2, w21, #3
Lloh11:
	adrp	x8, _EAP_CODE_RESPONSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAP_CODE_RESPONSE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x4, x20
	bl	_eap_msg_alloc
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.1:
Lloh14:
	adrp	x8, _EAP_GPSK_OPCODE_GPSK_4@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EAP_GPSK_OPCODE_GPSK_4@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wpabuf_put_u8
	mov	x0, x20
	mov	x1, #0
	bl	_wpabuf_put
	mov	x22, x0
	mov	x0, x20
	mov	w1, #0
	bl	_wpabuf_put_be16
	mov	x0, x20
	mov	x1, x21
	bl	_wpabuf_put
	mov	x6, x0
	ldp	w1, w0, [x19, #8]
	ldp	w3, w2, [x19]
	sub	x8, x6, x22
	lsr	x5, x8, #2
	mov	x4, x22
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_eap_gpsk_compute_mic
	tbz	x0, #63, LBB0_3
; %bb.2:
Lloh17:
	adrp	x8, _FAILURE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_gpsk_state
	mov	x0, x20
	bl	_wpabuf_free
	mov	x20, #0
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-GPSK: Sending Response/GPSK-4"

	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_GPSK,4,2              ; @EAP_TYPE_GPSK
	.comm	_EAP_CODE_RESPONSE,4,2          ; @EAP_CODE_RESPONSE
	.comm	_EAP_GPSK_OPCODE_GPSK_4,4,2     ; @EAP_GPSK_OPCODE_GPSK_4
	.comm	_FAILURE,4,2                    ; @FAILURE
	.no_dead_strip	_eap_gpsk_send_gpsk_4
.subsections_via_symbols
