	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tlsv1_client_decrypt           ## -- Begin function tlsv1_client_decrypt
	.p2align	4, 0x90
_tlsv1_client_decrypt:                  ## @tlsv1_client_decrypt
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	$0, -48(%rbp)
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movl	$0, (%r12)
LBB0_2:
	cmpq	$0, (%rdi)
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.3:
	movq	%rdi, %r15
	movl	%r14d, %esi
	callq	_wpabuf_resize
	testq	%rax, %rax
	js	LBB0_18
## %bb.4:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_wpabuf_put_data
	movq	(%r15), %rdi
	callq	_wpabuf_head
	movq	%rax, %rbx
	movq	(%r15), %rdi
	callq	_wpabuf_len
	movq	%rax, %r14
	testq	%r14, %r14
	jg	LBB0_6
	jmp	LBB0_17
LBB0_5:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	jle	LBB0_17
LBB0_6:
	leaq	(%rbx,%r14,8), %r14
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	_TLS_CONTENT_TYPE_APPLICATION_DATA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_30
## %bb.8:                               ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rdi
	movq	-80(%rbp), %rsi
	callq	_wpabuf_put
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	movl	%r15d, %eax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rax,8), %rbx
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	cmpq	%r14, %rbx
	jae	LBB0_17
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r12
	movq	%r14, %r13
	subq	%rbx, %r13
	shrq	$3, %r13
	leaq	-48(%rbp), %rdi
	movl	%r13d, %esi
	callq	_wpabuf_resize
	testq	%rax, %rax
	js	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	movq	%rax, %r14
	movq	-48(%rbp), %rdi
	callq	_wpabuf_tailroom
	movq	%rax, -80(%rbp)
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movq	%r14, %rcx
	leaq	-80(%rbp), %r8
	leaq	-56(%rbp), %r9
	callq	_tlsv1_record_receive
	testl	%eax, %eax
	js	LBB0_25
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	je	LBB0_26
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, %r15d
	movq	_TLS_CONTENT_TYPE_ALERT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_7
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$1, -80(%rbp)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jbe	LBB0_31
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r14), %rdx
	movq	8(%r14), %rcx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%r14), %rax
	movq	_TLS_ALERT_LEVEL_WARNING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.16:
	movq	8(%r14), %rax
	jmp	LBB0_22
LBB0_17:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	callq	_wpabuf_free
	movq	$0, (%rbx)
	movq	-48(%rbp), %rax
	jmp	LBB0_24
LBB0_18:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_19:
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_20:
	movq	_TLS_ALERT_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_21:
	movq	(%rax), %rax
LBB0_22:
	movq	%rax, -56(%rbp)
LBB0_23:
	movq	-48(%rbp), %rdi
	callq	_wpabuf_free
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	callq	_wpabuf_free
	movq	$0, (%rbx)
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_tls_alert
	xorl	%eax, %eax
LBB0_24:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_23
LBB0_26:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_wpabuf_alloc_copy
	movq	%rax, %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	callq	_wpabuf_free
	movq	%rbx, %rax
	movq	%r14, (%rbx)
	testq	%r14, %r14
	je	LBB0_32
## %bb.27:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	movl	$1, (%rax)
LBB0_29:
	movq	-48(%rbp), %rax
	jmp	LBB0_24
LBB0_30:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_TLS_ALERT_UNEXPECTED_MESSAGE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_31:
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_TLS_ALERT_DECODE_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_32:
	movl	(%r15), %edi
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLSv1: Failed to allocate memory for pending record"

	.comm	_TLS_ALERT_INTERNAL_ERROR,8,3   ## @TLS_ALERT_INTERNAL_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"TLSv1: Record layer processing failed"

L_.str.2:                               ## @.str.2
	.asciz	"TLSv1: Need more data"

	.comm	_TLS_CONTENT_TYPE_ALERT,8,3     ## @TLS_CONTENT_TYPE_ALERT
L_.str.3:                               ## @.str.3
	.asciz	"TLSv1: Alert underflow"

	.comm	_TLS_ALERT_DECODE_ERROR,8,3     ## @TLS_ALERT_DECODE_ERROR
L_.str.4:                               ## @.str.4
	.asciz	"TLSv1: Received alert %d:%d"

	.comm	_TLS_ALERT_LEVEL_WARNING,8,3    ## @TLS_ALERT_LEVEL_WARNING
	.comm	_TLS_CONTENT_TYPE_APPLICATION_DATA,8,3 ## @TLS_CONTENT_TYPE_APPLICATION_DATA
L_.str.5:                               ## @.str.5
	.asciz	"TLSv1: Unexpected content type 0x%x when decrypting application data"

	.comm	_TLS_ALERT_UNEXPECTED_MESSAGE,8,3 ## @TLS_ALERT_UNEXPECTED_MESSAGE
	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ## @TLS_ALERT_LEVEL_FATAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tlsv1_client_decrypt           ; -- Begin function tlsv1_client_decrypt
	.p2align	2
_tlsv1_client_decrypt:                  ; @tlsv1_client_decrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	str	xzr, [sp, #24]
	cbz	x3, LBB0_2
; %bb.1:
	str	wzr, [x20]
LBB0_2:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x22
	bl	_wpabuf_resize
	tbnz	x0, #63, LBB0_18
; %bb.4:
	ldr	x0, [x19]
	mov	x1, x21
	mov	x2, x22
	bl	_wpabuf_put_data
	ldr	x0, [x19]
	bl	_wpabuf_head
	mov	x21, x0
	ldr	x0, [x19]
	bl	_wpabuf_len
	mov	x22, x0
LBB0_5:
	cmp	x22, #1
	b.lt	LBB0_17
; %bb.6:
	add	x28, x21, x22, lsl #3
	add	x22, x19, #8
Lloh0:
	adrp	x27, _TLS_CONTENT_TYPE_ALERT@GOTPAGE
Lloh1:
	ldr	x27, [x27, _TLS_CONTENT_TYPE_ALERT@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=1
Lloh2:
	adrp	x8, _TLS_CONTENT_TYPE_APPLICATION_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TLS_CONTENT_TYPE_APPLICATION_DATA@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x23, x8
	b.ne	LBB0_30
; %bb.8:                                ;   in Loop: Header=BB0_10 Depth=1
	ldp	x0, x1, [sp, #24]
	bl	_wpabuf_put
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, w26, uxtw #3
	cmp	x21, x28
	b.hs	LBB0_17
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x21]
	sub	x8, x28, x21
	lsr	x25, x8, #3
	add	x0, sp, #24
	mov	x1, x25
	bl	_wpabuf_resize
	tbnz	x0, #63, LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [sp, #24]
	mov	x1, #0
	bl	_wpabuf_put
	mov	x24, x0
	ldr	x0, [sp, #24]
	bl	_wpabuf_tailroom
	str	x0, [sp, #32]
	add	x4, sp, #32
	add	x5, sp, #40
	mov	x0, x22
	mov	x1, x21
	mov	x2, x25
	mov	x3, x24
	bl	_tlsv1_record_receive
	tbnz	w0, #31, LBB0_25
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x26, x0
	cbz	w0, LBB0_26
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x27]
	cmp	x23, x8
	b.ne	LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #32]
Lloh5:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	cmp	x8, #1
	b.ls	LBB0_31
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	ldp	x8, x9, [x24]
	stp	x8, x9, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x24]
Lloh10:
	adrp	x9, _TLS_ALERT_LEVEL_WARNING@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TLS_ALERT_LEVEL_WARNING@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.16:
	ldr	x8, [x24, #8]
	b	LBB0_22
LBB0_17:
	ldr	x0, [x19]
	bl	_wpabuf_free
	str	xzr, [x19]
	ldr	x0, [sp, #24]
	b	LBB0_24
LBB0_18:
Lloh13:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_19:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_20:
Lloh18:
	adrp	x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_21:
	ldr	x8, [x8]
LBB0_22:
	str	x8, [sp, #40]
LBB0_23:
	ldr	x0, [sp, #24]
	bl	_wpabuf_free
	ldr	x0, [x19]
	bl	_wpabuf_free
	str	xzr, [x19]
Lloh20:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	x2, [sp, #40]
	mov	x0, x19
	bl	_tls_alert
	mov	x0, #0
LBB0_24:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_25:
Lloh23:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	b	LBB0_23
LBB0_26:
Lloh28:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh29:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	x0, x21
	mov	x1, x25
	bl	_wpabuf_alloc_copy
	mov	x21, x0
	ldr	x0, [x19]
	bl	_wpabuf_free
	str	x21, [x19]
	cbz	x21, LBB0_32
; %bb.27:
	cbz	x20, LBB0_29
; %bb.28:
	mov	w8, #1
	str	w8, [x20]
LBB0_29:
	ldr	x0, [sp, #24]
	b	LBB0_24
LBB0_30:
Lloh32:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	ldr	x8, [x21]
	str	x8, [sp]
Lloh35:
	adrp	x1, l_.str.5@PAGE
Lloh36:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
Lloh37:
	adrp	x8, _TLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGEOFF]
	b	LBB0_21
LBB0_31:
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
Lloh41:
	adrp	x8, _TLS_ALERT_DECODE_ERROR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _TLS_ALERT_DECODE_ERROR@GOTPAGEOFF]
	b	LBB0_21
LBB0_32:
	ldr	w0, [x22]
	b	LBB0_19
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLSv1: Failed to allocate memory for pending record"

	.comm	_TLS_ALERT_INTERNAL_ERROR,8,3   ; @TLS_ALERT_INTERNAL_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"TLSv1: Record layer processing failed"

l_.str.2:                               ; @.str.2
	.asciz	"TLSv1: Need more data"

	.comm	_TLS_CONTENT_TYPE_ALERT,8,3     ; @TLS_CONTENT_TYPE_ALERT
l_.str.3:                               ; @.str.3
	.asciz	"TLSv1: Alert underflow"

	.comm	_TLS_ALERT_DECODE_ERROR,8,3     ; @TLS_ALERT_DECODE_ERROR
l_.str.4:                               ; @.str.4
	.asciz	"TLSv1: Received alert %d:%d"

	.comm	_TLS_ALERT_LEVEL_WARNING,8,3    ; @TLS_ALERT_LEVEL_WARNING
	.comm	_TLS_CONTENT_TYPE_APPLICATION_DATA,8,3 ; @TLS_CONTENT_TYPE_APPLICATION_DATA
l_.str.5:                               ; @.str.5
	.asciz	"TLSv1: Unexpected content type 0x%x when decrypting application data"

	.comm	_TLS_ALERT_UNEXPECTED_MESSAGE,8,3 ; @TLS_ALERT_UNEXPECTED_MESSAGE
	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ; @TLS_ALERT_LEVEL_FATAL
.subsections_via_symbols
