	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_gpsk_send_gpsk_2
_eap_gpsk_send_gpsk_2:                  ## @eap_gpsk_send_gpsk_2
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	callq	_eap_gpsk_mic_len
	movq	%rax, %r15
	movl	(%rbx), %eax
	movq	_EAP_GPSK_RAND_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	4(%rbx), %eax
	leal	(%rax,%rcx,2), %eax
	addl	$7, %eax
	cltq
	leaq	(%r13,%r15), %rcx
	leaq	10(%rax,%rcx), %rdx
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_GPSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EAP_CODE_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %r8d
	callq	_eap_msg_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movq	_EAP_GPSK_OPCODE_GPSK_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_u8
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	movq	48(%rbx), %rdx
	movl	(%rbx), %ecx
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_hexdump_ascii
	movslq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_wpabuf_put_be16
	movq	48(%rbx), %rsi
	movslq	(%rbx), %rdx
	movq	%r14, %rdi
	callq	_wpabuf_put_data
	movslq	4(%rbx), %rsi
	movq	%r14, %rdi
	callq	_wpabuf_put_be16
	movq	40(%rbx), %rsi
	movslq	4(%rbx), %rdx
	movq	%r14, %rdi
	callq	_wpabuf_put_data
	movq	64(%rbx), %rdi
	movq	_EAP_GPSK_RAND_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_random_get_bytes
	movl	(%r12), %edi
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
LBB0_3:
	callq	_wpa_printf
LBB0_4:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_eap_gpsk_state
	movq	%r14, %rdi
	callq	_wpabuf_free
LBB0_5:
	xorl	%r14d, %r14d
LBB0_6:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	64(%rbx), %rdx
	movq	_EAP_GPSK_RAND_LEN@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_hexdump
	movq	64(%rbx), %rsi
	movslq	(%r15), %rdx
	movq	%r14, %rdi
	callq	_wpabuf_put_data
	movq	56(%rbx), %rsi
	movslq	(%r15), %rdx
	movq	%r14, %rdi
	callq	_wpabuf_put_data
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_wpabuf_put_be16
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_wpabuf_put_data
	movl	$8, %esi
	movq	%r14, %rdi
	callq	_wpabuf_put
	movq	%rax, %r12
	movl	4(%rax), %edi
	movl	16(%rbx), %esi
	callq	_WPA_PUT_BE32
	movl	(%r12), %edi
	movl	12(%rbx), %esi
	callq	_WPA_PUT_BE16
	movl	76(%rbx), %edi
	movl	72(%rbx), %esi
	movl	12(%rbx), %ecx
	movl	16(%rbx), %edx
	movq	64(%rbx), %r8
	movq	56(%rbx), %r9
	movslq	(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movslq	4(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	92(%rbx), %r12d
	movl	88(%rbx), %r13d
	movl	24(%rbx), %r11d
	leaq	20(%rbx), %r15
	movl	84(%rbx), %r10d
	leaq	80(%rbx), %rax
	pushq	%rax
	pushq	%r10
	pushq	%r15
	pushq	%r11
	pushq	%r13
	pushq	%r12
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	40(%rbx)
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	48(%rbx)
	callq	_eap_gpsk_derive_keys
	addq	$80, %rsp
	testq	%rax, %rax
	js	LBB0_10
## %bb.8:
	movl	76(%rbx), %edi
	movl	72(%rbx), %esi
	movl	12(%rbx), %ecx
	movl	16(%rbx), %edx
	movq	64(%rbx), %r8
	movq	56(%rbx), %r9
	movslq	(%rbx), %r10
	movslq	4(%rbx), %r11
	movq	_EAP_TYPE_GPSK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	8(%rbx), %rax
	subq	$8, %rsp
	pushq	%rax
	pushq	32(%rbx)
	pushq	%r15
	pushq	%r11
	pushq	40(%rbx)
	pushq	%r10
	pushq	48(%rbx)
	callq	_eap_gpsk_derive_session_id
	addq	$64, %rsp
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testq	%rax, %rax
	js	LBB0_11
## %bb.9:
	movq	32(%rbx), %rdx
	movl	8(%rbx), %ecx
	leaq	L_.str.6(%rip), %rsi
	callq	_wpa_hexdump
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put_be16
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_wpabuf_put
	movl	24(%rbx), %edi
	movl	20(%rbx), %esi
	movl	12(%rbx), %ecx
	movl	16(%rbx), %edx
	movq	%rax, %r9
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	subq	%r8, %r9
	shrq	$2, %r9
	subq	$8, %rsp
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%rax
	callq	_eap_gpsk_compute_mic
	addq	$16, %rsp
	testq	%rax, %rax
	jns	LBB0_6
	jmp	LBB0_4
LBB0_10:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_3
LBB0_11:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_3
	.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-2"

	.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_RESPONSE,4,2          ## @EAP_CODE_RESPONSE
	.comm	_EAP_GPSK_OPCODE_GPSK_2,4,2     ## @EAP_GPSK_OPCODE_GPSK_2
L_.str.1:                               ## @.str.1
	.asciz	"EAP-GPSK: ID_Peer"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-GPSK: Failed to get random data for RAND_Peer"

	.comm	_FAILURE,4,2                    ## @FAILURE
L_.str.3:                               ## @.str.3
	.asciz	"EAP-GPSK: RAND_Peer"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-GPSK: Failed to derive keys"

L_.str.5:                               ## @.str.5
	.asciz	"EAP-GPSK: Failed to derive Session-Id"

L_.str.6:                               ## @.str.6
	.asciz	"EAP-GPSK: Derived Session-Id"

	.no_dead_strip	_eap_gpsk_send_gpsk_2
.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_2
_eap_gpsk_send_gpsk_2:                  ; @eap_gpsk_send_gpsk_2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x23, x3
	mov	x24, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x25, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldp	w1, w0, [x19, #12]
	bl	_eap_gpsk_mic_len
	mov	x21, x0
	ldp	w8, w9, [x19]
Lloh4:
	adrp	x27, _EAP_GPSK_RAND_LEN@GOTPAGE
Lloh5:
	ldr	x27, [x27, _EAP_GPSK_RAND_LEN@GOTPAGEOFF]
	ldr	w10, [x27]
	add	w8, w8, w9
	add	w8, w8, w10, lsl #1
	add	w8, w8, #7
	add	x9, x23, x0
	add	x8, x9, w8, sxtw
	add	x2, x8, #10
Lloh6:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x26, _EAP_TYPE_GPSK@GOTPAGE
Lloh10:
	ldr	x26, [x26, _EAP_TYPE_GPSK@GOTPAGEOFF]
	ldr	w1, [x26]
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_5
; %bb.1:
Lloh14:
	adrp	x8, _EAP_GPSK_OPCODE_GPSK_2@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EAP_GPSK_OPCODE_GPSK_2@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wpabuf_put_u8
	mov	x0, x20
	mov	x1, #0
	bl	_wpabuf_put
	mov	x22, x0
	ldr	w0, [x25]
	ldr	x2, [x19, #48]
	ldr	w3, [x19]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_hexdump_ascii
	ldrsw	x1, [x19]
	mov	x0, x20
	bl	_wpabuf_put_be16
	ldr	x1, [x19, #48]
	ldrsw	x2, [x19]
	mov	x0, x20
	bl	_wpabuf_put_data
	ldrsw	x1, [x19, #4]
	mov	x0, x20
	bl	_wpabuf_put_be16
	ldr	x1, [x19, #40]
	ldrsw	x2, [x19, #4]
	mov	x0, x20
	bl	_wpabuf_put_data
	ldr	x0, [x19, #64]
	ldr	w1, [x27]
	bl	_random_get_bytes
	mov	x8, x0
	ldr	w0, [x25]
	cbz	x8, LBB0_6
; %bb.2:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_3:
	bl	_wpa_printf
LBB0_4:
Lloh21:
	adrp	x8, _FAILURE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_gpsk_state
	mov	x0, x20
	bl	_wpabuf_free
	mov	x20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_6:
	ldr	x2, [x19, #64]
	ldr	w3, [x27]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_hexdump
	ldr	x1, [x19, #64]
	ldrsw	x2, [x27]
	mov	x0, x20
	bl	_wpabuf_put_data
	ldr	x1, [x19, #56]
	ldrsw	x2, [x27]
	mov	x0, x20
	bl	_wpabuf_put_data
	mov	x0, x20
	mov	x1, x23
	bl	_wpabuf_put_be16
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	bl	_wpabuf_put_data
	mov	x0, x20
	mov	w1, #8
	bl	_wpabuf_put
	mov	x23, x0
	ldr	w0, [x0, #4]
	ldr	w1, [x19, #16]
	bl	_WPA_PUT_BE32
	ldr	w0, [x23]
	ldr	w1, [x19, #12]
	bl	_WPA_PUT_BE16
	ldp	w1, w0, [x19, #72]
	ldp	w3, w2, [x19, #12]
	ldp	x5, x4, [x19, #56]
	ldp	x8, x6, [x19, #40]
	ldpsw	x7, x9, [x19]
	ldp	w14, w10, [x19, #88]
	ldr	w11, [x19, #24]
	add	x12, x19, #20
	add	x13, x19, #80
	ldr	w15, [x19, #84]
	str	x13, [sp, #48]
	str	w15, [sp, #40]
	str	x12, [sp, #32]
	stp	w14, w11, [sp, #20]
	str	w10, [sp, #16]
	stp	x8, x9, [sp]
	bl	_eap_gpsk_derive_keys
	tbnz	x0, #63, LBB0_9
; %bb.7:
	ldp	w1, w0, [x19, #72]
	ldp	w3, w2, [x19, #12]
	ldp	x5, x4, [x19, #56]
	ldp	x11, x6, [x19, #40]
	ldpsw	x7, x8, [x19]
	ldr	w9, [x26]
	add	x10, x19, #8
	ldr	x12, [x19, #32]
	stp	x12, x10, [sp, #24]
	str	w9, [sp, #16]
	stp	x11, x8, [sp]
	bl	_eap_gpsk_derive_session_id
	mov	x8, x0
	ldr	w0, [x25]
	tbnz	x8, #63, LBB0_10
; %bb.8:
	ldr	x2, [x19, #32]
	ldr	w3, [x19, #8]
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_hexdump
	mov	x0, x20
	mov	x1, #0
	bl	_wpabuf_put_be16
	mov	x0, x20
	mov	x1, x21
	bl	_wpabuf_put
	mov	x6, x0
	ldp	w1, w0, [x19, #20]
	ldp	w3, w2, [x19, #12]
	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_5
	b	LBB0_4
LBB0_9:
	ldr	w0, [x25]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_3
LBB0_10:
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.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-2"

	.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_RESPONSE,4,2          ; @EAP_CODE_RESPONSE
	.comm	_EAP_GPSK_OPCODE_GPSK_2,4,2     ; @EAP_GPSK_OPCODE_GPSK_2
l_.str.1:                               ; @.str.1
	.asciz	"EAP-GPSK: ID_Peer"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-GPSK: Failed to get random data for RAND_Peer"

	.comm	_FAILURE,4,2                    ; @FAILURE
l_.str.3:                               ; @.str.3
	.asciz	"EAP-GPSK: RAND_Peer"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-GPSK: Failed to derive keys"

l_.str.5:                               ; @.str.5
	.asciz	"EAP-GPSK: Failed to derive Session-Id"

l_.str.6:                               ; @.str.6
	.asciz	"EAP-GPSK: Derived Session-Id"

	.no_dead_strip	_eap_gpsk_send_gpsk_2
.subsections_via_symbols
