	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_tls_process_output
_eap_tls_process_output:                ## @eap_tls_process_output
	.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
	movl	%edx, %r13d
	movq	%rdi, %r12
	movq	16(%rdi), %rdi
	movl	$-1, %edx
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.1:
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	callq	_wpabuf_len
	movq	%rax, %r15
	subq	(%r12), %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	16(%r12), %rdi
	callq	_wpabuf_len
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%r15, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	8(%r12), %rax
	movq	%r15, %rbx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %r15
	jbe	LBB0_3
## %bb.2:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_3:
	cmpq	$0, (%r12)
	je	LBB0_8
LBB0_4:
	movl	$1, %r14d
	testl	%r13d, %r13d
	jne	LBB0_12
## %bb.5:
	movq	_EAP_TYPE_PEAP@GOTPCREL(%rip), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax)
	jne	LBB0_12
## %bb.6:
	movq	32(%r12), %rax
	movl	(%rax), %edi
	movl	24(%r12), %esi
	callq	_tls_connection_established
	testl	%eax, %eax
	je	LBB0_10
LBB0_12:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_13
LBB0_8:
	movq	16(%r12), %rdi
	callq	_wpabuf_len
	cmpq	8(%r12), %rax
	ja	LBB0_10
## %bb.9:
	cmpq	$0, 40(%r12)
	je	LBB0_4
LBB0_10:
	movl	$5, %r14d
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_13:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	addl	%ebx, %r14d
	movq	_EAP_CODE_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	callq	_eap_tls_msg_alloc
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, (%rbx)
	testq	%rax, %rax
	movl	$-1, %edx
	je	LBB0_21
## %bb.14:
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_wpabuf_put
	movl	%r13d, (%rax)
	cmpq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	jbe	LBB0_16
## %bb.15:
	movq	_EAP_TLS_FLAGS_MORE_FRAGMENTS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r13d
	movl	%r13d, (%rax)
LBB0_16:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testb	%cl, %cl
	je	LBB0_18
## %bb.17:
	movq	_EAP_TLS_FLAGS_LENGTH_INCLUDED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r13d
	movl	%r13d, (%rax)
	movq	(%rbx), %r14
	movq	16(%r12), %rdi
	callq	_wpabuf_len
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_wpabuf_put_be32
LBB0_18:
	movq	(%rbx), %rbx
	movq	16(%r12), %rdi
	callq	_wpabuf_head_u8
	addq	(%r12), %rax
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_wpabuf_put_data
	addq	%rbx, (%r12)
	cmpq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	ja	LBB0_20
## %bb.19:
	movq	%r12, %rdi
	callq	_eap_peer_tls_reset_output
LBB0_20:
	movl	-48(%rbp), %edx                 ## 4-byte Reload
LBB0_21:
	movl	%edx, %eax
	addq	$56, %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	"SSL: %lu bytes left to be sent out (of total %lu bytes)"

L_.str.1:                               ## @.str.1
	.asciz	"SSL: sending %lu bytes, more fragments will follow"

	.comm	_EAP_TYPE_PEAP,8,3              ## @EAP_TYPE_PEAP
	.comm	_EAP_CODE_RESPONSE,4,2          ## @EAP_CODE_RESPONSE
	.comm	_EAP_TLS_FLAGS_MORE_FRAGMENTS,4,2 ## @EAP_TLS_FLAGS_MORE_FRAGMENTS
	.comm	_EAP_TLS_FLAGS_LENGTH_INCLUDED,4,2 ## @EAP_TLS_FLAGS_LENGTH_INCLUDED
	.no_dead_strip	_eap_tls_process_output
.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_output
_eap_tls_process_output:                ; @eap_tls_process_output
	.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	x20, x0
	ldr	x0, [x0, #16]
	cbz	x0, LBB0_18
; %bb.1:
	mov	x22, x5
	mov	x19, x4
	mov	x26, x3
	mov	x24, x2
	mov	x27, x1
	bl	_wpabuf_len
	ldr	x8, [x20]
	sub	x21, x0, x8
Lloh0:
	adrp	x28, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x28, [x28, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w23, [x28]
	ldr	x0, [x20, #16]
	bl	_wpabuf_len
	str	x0, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x21
	bl	_wpa_printf
	ldr	x23, [x20, #8]
	mov	x25, x21
	cmp	x21, x23
	b.ls	LBB0_3
; %bb.2:
	ldr	w0, [x28]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_wpa_printf
	mov	x25, x23
LBB0_3:
	ldr	x8, [x20]
	cbz	x8, LBB0_8
LBB0_4:
	mov	w28, #0
	mov	w8, #1
	cbnz	w24, LBB0_11
; %bb.5:
Lloh6:
	adrp	x9, _EAP_TYPE_PEAP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EAP_TYPE_PEAP@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x27
	b.ne	LBB0_11
; %bb.6:
	ldr	x8, [x20, #32]
	ldr	w0, [x8]
	ldr	w1, [x20, #24]
	bl	_tls_connection_established
	cbz	w0, LBB0_10
; %bb.7:
	mov	w28, #0
	mov	w8, #1
	b	LBB0_11
LBB0_8:
	ldr	x0, [x20, #16]
	bl	_wpabuf_len
	ldr	x8, [x20, #8]
	cmp	x0, x8
	b.hi	LBB0_10
; %bb.9:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_4
LBB0_10:
	mov	w28, #1
	mov	w8, #5
LBB0_11:
	add	w1, w8, w25
Lloh9:
	adrp	x8, _EAP_CODE_RESPONSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EAP_CODE_RESPONSE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x27
	mov	x3, x26
	bl	_eap_tls_msg_alloc
	str	x0, [x22]
	cbz	x0, LBB0_18
; %bb.12:
	mov	w1, #1
	bl	_wpabuf_put
	str	w24, [x0]
	cmp	x21, x23
	b.ls	LBB0_14
; %bb.13:
Lloh12:
	adrp	x8, _EAP_TLS_FLAGS_MORE_FRAGMENTS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EAP_TLS_FLAGS_MORE_FRAGMENTS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w24, w8, w24
	str	w24, [x0]
LBB0_14:
	cbz	w28, LBB0_16
; %bb.15:
Lloh15:
	adrp	x8, _EAP_TLS_FLAGS_LENGTH_INCLUDED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EAP_TLS_FLAGS_LENGTH_INCLUDED@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w8, w24, w8
	str	w8, [x0]
	ldr	x24, [x22]
	ldr	x0, [x20, #16]
	bl	_wpabuf_len
	mov	x1, x0
	mov	x0, x24
	bl	_wpabuf_put_be32
LBB0_16:
	ldr	x22, [x22]
	ldr	x0, [x20, #16]
	bl	_wpabuf_head_u8
	ldr	x8, [x20]
	add	x1, x8, x0
	mov	x0, x22
	mov	x2, x25
	bl	_wpabuf_put_data
	ldr	x8, [x20]
	add	x8, x8, x25
	str	x8, [x20]
	cmp	x21, x23
	b.hi	LBB0_19
; %bb.17:
	mov	x0, x20
	bl	_eap_peer_tls_reset_output
	b	LBB0_19
LBB0_18:
	mov	w19, #-1
LBB0_19:
	mov	x0, x19
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSL: %lu bytes left to be sent out (of total %lu bytes)"

l_.str.1:                               ; @.str.1
	.asciz	"SSL: sending %lu bytes, more fragments will follow"

	.comm	_EAP_TYPE_PEAP,8,3              ; @EAP_TYPE_PEAP
	.comm	_EAP_CODE_RESPONSE,4,2          ; @EAP_CODE_RESPONSE
	.comm	_EAP_TLS_FLAGS_MORE_FRAGMENTS,4,2 ; @EAP_TLS_FLAGS_MORE_FRAGMENTS
	.comm	_EAP_TLS_FLAGS_LENGTH_INCLUDED,4,2 ; @EAP_TLS_FLAGS_LENGTH_INCLUDED
	.no_dead_strip	_eap_tls_process_output
.subsections_via_symbols
