	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_gpsk_build_gpsk_3
_eap_gpsk_build_gpsk_3:                 ## @eap_gpsk_build_gpsk_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	$24, %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	_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_GPSK_RAND_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	addl	%eax, %eax
	addl	$3, %eax
	movslq	(%r12), %rcx
	cltq
	addq	%rcx, %rax
	leaq	(%r15,%rax), %rdx
	addq	$10, %rdx
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_GPSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EAP_CODE_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %r8d
	callq	_eap_msg_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_EAP_GPSK_OPCODE_GPSK_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpabuf_put_u8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	20(%r14), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_wpabuf_put_data
	movl	16(%r14), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_wpabuf_put_data
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_wpabuf_put_be16
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	%rbx, %rdi
	callq	_wpabuf_put_data
	movl	$8, %esi
	movq	%rbx, %rdi
	callq	_wpabuf_put
	movq	%rax, %r12
	movl	4(%rax), %edi
	movl	4(%r14), %esi
	callq	_WPA_PUT_BE32
	movl	(%r12), %edi
	movl	(%r14), %esi
	callq	_WPA_PUT_BE16
	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
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	subq	%r8, %r9
	shrq	$2, %r9
	movq	%rax, (%rsp)
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_eap_gpsk_compute_mic
	testq	%rax, %rax
	jns	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_wpabuf_free
	jmp	LBB0_4
LBB0_1:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
LBB0_4:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_eap_gpsk_state
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	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: Request/GPSK-3"

	.comm	_EAP_GPSK_RAND_LEN,4,2          ## @EAP_GPSK_RAND_LEN
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_GPSK,4,2              ## @EAP_TYPE_GPSK
	.comm	_EAP_CODE_REQUEST,4,2           ## @EAP_CODE_REQUEST
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"EAP-GPSK: Failed to allocate memory for request/GPSK-3"

	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_EAP_GPSK_OPCODE_GPSK_3,4,2     ## @EAP_GPSK_OPCODE_GPSK_3
	.no_dead_strip	_eap_gpsk_build_gpsk_3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_gpsk_build_gpsk_3
_eap_gpsk_build_gpsk_3:                 ; @eap_gpsk_build_gpsk_3
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x22, 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	x24, _EAP_GPSK_RAND_LEN@GOTPAGE
Lloh6:
	ldr	x24, [x24, _EAP_GPSK_RAND_LEN@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	w8, w8, #1
	add	w8, w8, #3
	ldrsw	x9, [x22]
	add	x8, x9, w8, sxtw
	add	x8, x0, x8
	add	x2, x8, #10
Lloh7:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _EAP_TYPE_GPSK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EAP_TYPE_GPSK@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	x4, x20
	bl	_eap_msg_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh16:
	adrp	x8, _EAP_GPSK_OPCODE_GPSK_3@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EAP_GPSK_OPCODE_GPSK_3@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_wpabuf_put_u8
	mov	x0, x20
	mov	x1, #0
	bl	_wpabuf_put
	mov	x23, x0
	ldr	w1, [x19, #20]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_wpabuf_put_data
	ldr	w1, [x19, #16]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_wpabuf_put_data
	ldr	w1, [x22]
	mov	x0, x20
	bl	_wpabuf_put_be16
	ldp	w2, w1, [x22]
	mov	x0, x20
	bl	_wpabuf_put_data
	mov	x0, x20
	mov	w1, #8
	bl	_wpabuf_put
	mov	x22, x0
	ldr	w0, [x0, #4]
	ldr	w1, [x19, #4]
	bl	_WPA_PUT_BE32
	ldr	w0, [x22]
	ldr	w1, [x19]
	bl	_WPA_PUT_BE16
	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, x23
	lsr	x5, x8, #2
	mov	x4, x23
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_eap_gpsk_compute_mic
	tbz	x0, #63, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_wpabuf_free
	b	LBB0_4
LBB0_3:
Lloh19:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_4:
Lloh24:
	adrp	x8, _FAILURE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_gpsk_state
	mov	x20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-GPSK: Request/GPSK-3"

	.comm	_EAP_GPSK_RAND_LEN,4,2          ; @EAP_GPSK_RAND_LEN
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_GPSK,4,2              ; @EAP_TYPE_GPSK
	.comm	_EAP_CODE_REQUEST,4,2           ; @EAP_CODE_REQUEST
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"EAP-GPSK: Failed to allocate memory for request/GPSK-3"

	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_EAP_GPSK_OPCODE_GPSK_3,4,2     ; @EAP_GPSK_OPCODE_GPSK_3
	.no_dead_strip	_eap_gpsk_build_gpsk_3
.subsections_via_symbols
