	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_leap_process_success
_eap_leap_process_success:              ## @eap_leap_process_success
	.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, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_eap_get_config_identity
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	movq	(%r12), %rdx
	movq	_LEAP_WAIT_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_2
## %bb.3:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_EAP_TYPE_LEAP@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_LEAP_CHALLENGE_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx
	leaq	3(%rax,%rcx), %r15
	movq	_EAP_CODE_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r13, %rdi
	callq	_eap_get_id
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_eap_msg_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	_LEAP_VERSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_wpabuf_put_u8
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put_u8
	movq	_LEAP_CHALLENGE_LEN@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	%r14, %rdi
	callq	_wpabuf_put_u8
	movq	(%r12), %rsi
	movq	%r14, %rdi
	callq	_wpabuf_put
	movq	%rax, %r13
	movq	(%r12), %rsi
	movq	%rax, %rdi
	callq	_random_get_bytes
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r14, %rdi
	callq	_wpabuf_free
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_2:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_7:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	8(%r15), %edi
	movq	(%r12), %rdx
	movq	%r13, %rsi
	callq	_os_memcpy
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rcx
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdx
	callq	_wpa_hexdump
	movq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wpabuf_put_data
	movq	_LEAP_WAIT_RESPONSE@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_9:
	movq	%r14, %rax
	addq	$40, %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-LEAP: Processing EAP-Success"

	.comm	_LEAP_WAIT_SUCCESS,8,3          ## @LEAP_WAIT_SUCCESS
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"EAP-LEAP: EAP-Success received in unexpected state (%d) - ignored"

	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_LEAP,4,2              ## @EAP_TYPE_LEAP
	.comm	_LEAP_CHALLENGE_LEN,8,3         ## @LEAP_CHALLENGE_LEN
	.comm	_EAP_CODE_REQUEST,4,2           ## @EAP_CODE_REQUEST
	.comm	_LEAP_VERSION,8,3               ## @LEAP_VERSION
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"EAP-LEAP: Failed to read random data for challenge"

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.3:                               ## @.str.3
	.asciz	"EAP-LEAP: Challenge to AP/AS"

	.comm	_LEAP_WAIT_RESPONSE,8,3         ## @LEAP_WAIT_RESPONSE
	.no_dead_strip	_eap_leap_process_success
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_leap_process_success
_eap_leap_process_success:              ; @eap_leap_process_success
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x3
	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
	add	x1, sp, #8
	mov	x0, x22
	bl	_eap_get_config_identity
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _LEAP_WAIT_SUCCESS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LEAP_WAIT_SUCCESS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	mov	x22, x0
Lloh8:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
Lloh11:
	adrp	x8, _EAP_TYPE_LEAP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAP_TYPE_LEAP@GOTPAGEOFF]
Lloh13:
	ldr	w24, [x8]
Lloh14:
	adrp	x27, _LEAP_CHALLENGE_LEN@GOTPAGE
Lloh15:
	ldr	x27, [x27, _LEAP_CHALLENGE_LEN@GOTPAGEOFF]
	ldr	x8, [x27]
	ldr	x9, [sp, #8]
	add	x8, x8, x9
	add	x25, x8, #3
Lloh16:
	adrp	x8, _EAP_CODE_REQUEST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EAP_CODE_REQUEST@GOTPAGEOFF]
Lloh18:
	ldr	w26, [x8]
	mov	x0, x21
	bl	_eap_get_id
	mov	x4, x0
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	mov	x3, x26
	bl	_eap_msg_alloc
	mov	x21, x0
	cbz	x0, LBB0_8
; %bb.3:
Lloh19:
	adrp	x8, _LEAP_VERSION@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LEAP_VERSION@GOTPAGEOFF]
Lloh21:
	ldr	x1, [x8]
	mov	x0, x21
	bl	_wpabuf_put_u8
	mov	x0, x21
	mov	x1, #0
	bl	_wpabuf_put_u8
	ldr	x1, [x27]
	mov	x0, x21
	bl	_wpabuf_put_u8
	ldr	x1, [x27]
	mov	x0, x21
	bl	_wpabuf_put
	mov	x23, x0
	ldr	x1, [x27]
	bl	_random_get_bytes
	cbz	x0, LBB0_9
; %bb.4:
Lloh22:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	x0, x21
	bl	_wpabuf_free
	b	LBB0_7
LBB0_5:
	mov	x21, #0
	b	LBB0_8
LBB0_6:
Lloh27:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_7:
	mov	x21, #0
Lloh32:
	adrp	x8, _TRUE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	ldr	w0, [x19, #8]
	ldr	x2, [x27]
	mov	x1, x23
	bl	_os_memcpy
Lloh35:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	ldr	x3, [x27]
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x23
	bl	_wpa_hexdump
	ldr	x2, [sp, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_wpabuf_put_data
Lloh40:
	adrp	x8, _LEAP_WAIT_RESPONSE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _LEAP_WAIT_RESPONSE@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_8
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-LEAP: Processing EAP-Success"

	.comm	_LEAP_WAIT_SUCCESS,8,3          ; @LEAP_WAIT_SUCCESS
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"EAP-LEAP: EAP-Success received in unexpected state (%d) - ignored"

	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_LEAP,4,2              ; @EAP_TYPE_LEAP
	.comm	_LEAP_CHALLENGE_LEN,8,3         ; @LEAP_CHALLENGE_LEN
	.comm	_EAP_CODE_REQUEST,4,2           ; @EAP_CODE_REQUEST
	.comm	_LEAP_VERSION,8,3               ; @LEAP_VERSION
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"EAP-LEAP: Failed to read random data for challenge"

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.3:                               ; @.str.3
	.asciz	"EAP-LEAP: Challenge to AP/AS"

	.comm	_LEAP_WAIT_RESPONSE,8,3         ; @LEAP_WAIT_RESPONSE
	.no_dead_strip	_eap_leap_process_success
.subsections_via_symbols
