	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_tls_process_msg
_eap_tls_process_msg:                   ## @eap_tls_process_msg
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rsi), %rax
	movq	_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	24(%rbx), %rdi
	callq	_wpabuf_len
	testq	%rax, %rax
	je	LBB0_12
LBB0_2:
	leaq	8(%rbx), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_eap_server_tls_phase1
	testq	%rax, %rax
	js	LBB0_13
## %bb.3:
	cmpq	$0, 16(%rbx)
	je	LBB0_11
## %bb.4:
	movl	(%r15), %edi
	movl	12(%rbx), %esi
	callq	_tls_connection_established
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movl	$1, %edi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put_u8
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_eap_server_tls_encrypt
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_wpabuf_free
	testq	%r15, %r15
	je	LBB0_11
## %bb.7:
	movq	%r15, %rdi
	callq	_wpabuf_len
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_wpabuf_resize
	testq	%rax, %rax
	js	LBB0_8
## %bb.10:
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_wpabuf_put_buf
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdx
	callq	_wpa_hexdump_buf
	jmp	LBB0_9
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_tls_state                  ## TAILCALL
LBB0_12:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
LBB0_8:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
LBB0_9:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpabuf_free                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SUCCESS,8,3                    ## @SUCCESS
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TLS: Client acknowledged final TLS handshake message"

	.comm	_FAILURE,4,2                    ## @FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TLS: Send empty application data to indicate end of exchange"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.2:                               ## @.str.2
	.asciz	"EAP-TLS: Failed to resize output buffer"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-TLS: Data appended to the message"

	.no_dead_strip	_eap_tls_process_msg
.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_msg
_eap_tls_process_msg:                   ; @eap_tls_process_msg
	.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	x21, x1
	mov	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _SUCCESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x21, #24]
	bl	_wpabuf_len
	cbz	x0, LBB0_11
LBB0_2:
	add	x19, x21, #8
	mov	x0, x20
	mov	x1, x19
	bl	_eap_server_tls_phase1
	tbnz	x0, #63, LBB0_10
; %bb.3:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_9
; %bb.4:
	ldr	w0, [x20]
	ldr	w1, [x21, #12]
	bl	_tls_connection_established
	cbz	x0, LBB0_9
; %bb.5:
Lloh3:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	w0, #1
	bl	_wpabuf_alloc
	cbz	x0, LBB0_9
; %bb.6:
	mov	x21, x0
	mov	w1, #0
	bl	_wpabuf_put_u8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_eap_server_tls_encrypt
	mov	x20, x0
	mov	x0, x21
	bl	_wpabuf_free
	cbz	x20, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_wpabuf_len
	mov	x1, x0
	mov	x0, x19
	bl	_wpabuf_resize
	tbnz	x0, #63, LBB0_12
; %bb.8:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_wpabuf_put_buf
	ldr	w0, [x22]
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	bl	_wpa_hexdump_buf
	b	LBB0_13
LBB0_9:
	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
LBB0_10:
Lloh9:
	adrp	x8, _FAILURE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	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
	b	_eap_tls_state
LBB0_11:
Lloh12:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_wpa_printf
LBB0_12:
Lloh17:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
LBB0_13:
	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
	b	_wpabuf_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SUCCESS,8,3                    ; @SUCCESS
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TLS: Client acknowledged final TLS handshake message"

	.comm	_FAILURE,4,2                    ; @FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TLS: Send empty application data to indicate end of exchange"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.2:                               ; @.str.2
	.asciz	"EAP-TLS: Failed to resize output buffer"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-TLS: Data appended to the message"

	.no_dead_strip	_eap_tls_process_msg
.subsections_via_symbols
