	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_tls_process
_eap_tls_process:                       ## @eap_tls_process
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	cmpq	$0, (%rdi)
	je	LBB0_7
## %bb.1:
	cmpq	$0, 32(%r15)
	je	LBB0_7
## %bb.2:
	movq	%r14, %rdi
	callq	_eap_get_config
	movq	(%rax), %rax
	movq	_EXT_CERT_CHECK_GOOD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	32(%r15), %rax
	movq	$0, 32(%r15)
	movq	$0, (%r14)
	jmp	LBB0_22
LBB0_7:
	leaq	8(%r15), %r13
	movl	(%r15), %edx
	leaq	-56(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-72(%rbp), %r9
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rcx
	movq	%rbx, %r8
	callq	_eap_peer_tls_process_init
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_eap_get_id
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_EAP_TLS_FLAGS_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -56(%rbp)
	je	LBB0_10
## %bb.11:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
	movq	$0, -72(%rbp)
	xorl	%edx, %edx
	jmp	LBB0_12
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_4:
	movq	_EXT_CERT_CHECK_BAD@GOTPCREL(%rip), %rcx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	_METHOD_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_DECISION_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	$0, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_10:
	movq	-72(%rbp), %rdx
LBB0_12:
	movq	$0, -48(%rbp)
	leaq	-88(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_wpabuf_set
	movl	(%r15), %edx
	leaq	-48(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r14, %rdi
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %r8d
	movq	%rbx, %r9
	callq	_eap_peer_tls_process_helper
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	cmpq	$0, (%r14)
	je	LBB0_16
## %bb.15:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_wpa_printf
	movq	32(%r15), %rdi
	callq	_wpabuf_free
	movq	-48(%rbp), %rax
	movq	%rax, 32(%r15)
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_13:
	movq	-48(%rbp), %r8
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %ecx
	movl	%r13d, %r9d
	callq	_eap_tls_failure
	jmp	LBB0_22
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_16:
	cmpl	$2, %r12d
	jne	LBB0_18
## %bb.17:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	-48(%rbp), %rdx
	leaq	L_.str.5(%rip), %rsi
	callq	_wpa_hexdump_buf
	movl	(%rbx), %edi
	movq	16(%r15), %rdx
	leaq	L_.str.6(%rip), %rsi
	callq	_wpa_hexdump_buf
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_eap_peer_tls_reset_output
	movl	$1, %r12d
LBB0_18:
	movl	8(%r15), %esi
	movl	24(%r15), %edi
	callq	_tls_connection_established
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_eap_tls_success
LBB0_20:
	movq	-48(%rbp), %rax
	cmpl	$1, %r12d
	jne	LBB0_22
## %bb.21:
	movq	%rax, %rdi
	callq	_wpabuf_free
	movl	(%r15), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_eap_peer_tls_build_ack
LBB0_22:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXT_CERT_CHECK_GOOD,8,3        ## @EXT_CERT_CHECK_GOOD
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TLS: External certificate check succeeded - continue handshake"

	.comm	_EXT_CERT_CHECK_BAD,8,3         ## @EXT_CERT_CHECK_BAD
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TLS: External certificate check failed - force authentication failure"

	.comm	_METHOD_DONE,4,2                ## @METHOD_DONE
	.comm	_DECISION_FAIL,4,2              ## @DECISION_FAIL
L_.str.2:                               ## @.str.2
	.asciz	"EAP-TLS: Continuing to wait external server certificate validation"

	.comm	_EAP_TLS_FLAGS_START,4,2        ## @EAP_TLS_FLAGS_START
L_.str.3:                               ## @.str.3
	.asciz	"EAP-TLS: Start"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-TLS: Waiting external server certificate validation"

L_.str.5:                               ## @.str.5
	.asciz	"EAP-TLS: Received Application Data"

L_.str.6:                               ## @.str.6
	.asciz	"EAP-TLS: Remaining tls_out data"

	.no_dead_strip	_eap_tls_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_tls_process
_eap_tls_process:                       ; @eap_tls_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_eap_get_config
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _EXT_CERT_CHECK_GOOD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EXT_CERT_CHECK_GOOD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x19, #32]
	str	xzr, [x19, #32]
	str	xzr, [x20]
	b	LBB0_21
LBB0_4:
	mov	x23, x19
	ldr	w2, [x23], #8
	add	x5, sp, #24
	add	x6, sp, #12
	mov	x0, x20
	mov	x1, x23
	mov	x3, x21
	mov	x4, x22
	bl	_eap_peer_tls_process_init
	cbz	x0, LBB0_21
; %bb.5:
	mov	x24, x0
	mov	x0, x22
	bl	_eap_get_id
	mov	x22, x0
	ldr	w8, [sp, #12]
Lloh8:
	adrp	x9, _EAP_TLS_FLAGS_START@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EAP_TLS_FLAGS_START@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.6:
Lloh11:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	mov	x2, #0
	str	xzr, [sp, #24]
	b	LBB0_10
LBB0_7:
Lloh16:
	adrp	x9, _EXT_CERT_CHECK_BAD@GOTPAGE
Lloh17:
	ldr	x9, [x9, _EXT_CERT_CHECK_BAD@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
Lloh19:
	adrp	x10, _MSG_DEBUG@GOTPAGE
Lloh20:
	ldr	x10, [x10, _MSG_DEBUG@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x10]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.8:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	x0, #0
Lloh24:
	adrp	x8, _METHOD_DONE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _METHOD_DONE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _DECISION_FAIL@GOTPAGE
Lloh28:
	ldr	x9, [x9, _DECISION_FAIL@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x21]
	str	xzr, [x20]
	b	LBB0_21
LBB0_9:
	ldr	x2, [sp, #24]
LBB0_10:
	str	xzr, [sp, #16]
	add	x0, sp, #8
	mov	x1, x24
	bl	_wpabuf_set
	ldr	w2, [x19]
	add	x5, sp, #8
	add	x6, sp, #16
	mov	x0, x20
	mov	x1, x23
	mov	w3, #0
	mov	x4, x22
	bl	_eap_peer_tls_process_helper
	mov	x24, x0
	tbnz	w0, #31, LBB0_13
; %bb.11:
	ldr	x8, [x20]
	cbz	x8, LBB0_15
; %bb.12:
Lloh30:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x19, #32]
	bl	_wpabuf_free
	mov	x0, #0
	ldr	x8, [sp, #16]
	str	x8, [x19, #32]
	b	LBB0_21
LBB0_13:
	ldr	x4, [sp, #16]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x24
	mov	x5, x22
	bl	_eap_tls_failure
	b	LBB0_21
LBB0_14:
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	x0, #0
	b	LBB0_21
LBB0_15:
	cmp	w24, #2
	b.ne	LBB0_17
; %bb.16:
Lloh37:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh38:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	x2, [sp, #16]
Lloh39:
	adrp	x1, l_.str.5@PAGE
Lloh40:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_hexdump_buf
	ldr	w0, [x24]
	ldr	x2, [x19, #16]
Lloh41:
	adrp	x1, l_.str.6@PAGE
Lloh42:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_hexdump_buf
	mov	x0, x23
	bl	_eap_peer_tls_reset_output
	mov	w24, #1
LBB0_17:
	ldr	w0, [x19, #24]
	ldr	w1, [x19, #8]
	bl	_tls_connection_established
	cbz	x0, LBB0_19
; %bb.18:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_eap_tls_success
LBB0_19:
	ldr	x0, [sp, #16]
	cmp	w24, #1
	b.ne	LBB0_21
; %bb.20:
	bl	_wpabuf_free
	ldr	w1, [x19]
	mov	x0, x22
	mov	w2, #0
	bl	_eap_peer_tls_build_ack
LBB0_21:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_EXT_CERT_CHECK_GOOD,8,3        ; @EXT_CERT_CHECK_GOOD
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TLS: External certificate check succeeded - continue handshake"

	.comm	_EXT_CERT_CHECK_BAD,8,3         ; @EXT_CERT_CHECK_BAD
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TLS: External certificate check failed - force authentication failure"

	.comm	_METHOD_DONE,4,2                ; @METHOD_DONE
	.comm	_DECISION_FAIL,4,2              ; @DECISION_FAIL
l_.str.2:                               ; @.str.2
	.asciz	"EAP-TLS: Continuing to wait external server certificate validation"

	.comm	_EAP_TLS_FLAGS_START,4,2        ; @EAP_TLS_FLAGS_START
l_.str.3:                               ; @.str.3
	.asciz	"EAP-TLS: Start"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-TLS: Waiting external server certificate validation"

l_.str.5:                               ; @.str.5
	.asciz	"EAP-TLS: Received Application Data"

l_.str.6:                               ; @.str.6
	.asciz	"EAP-TLS: Remaining tls_out data"

	.no_dead_strip	_eap_tls_process
.subsections_via_symbols
