	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_record
_send_record:                           ## @send_record
	.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	%r8, %r12
	movq	%rcx, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movb	%sil, -65(%rbp)
	bswapl	%edx
	movl	%edx, _send_record.seq+2(%rip)
	movq	_SHA_DIGEST_LENGTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%r8, %rax
	movl	%eax, %ecx
	notb	%cl
	andb	$15, %cl
	movzbl	%cl, %r13d
	leaq	(%rax,%r13), %rdi
	incq	%rdi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_memcpy
	xorl	%eax, %eax
	callq	_HMAC_CTX_new
	movq	%rax, %rbx
	movq	_mac_key@GOTPCREL(%rip), %rax
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r13d
	xorl	%eax, %eax
	callq	_EVP_sha1
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	$20, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_HMAC_Init_ex
	leaq	_send_record.epoch(%rip), %rsi
	movl	$2, %edx
	movq	%rbx, %rdi
	callq	_HMAC_Update
	leaq	_send_record.seq(%rip), %rsi
	movl	$6, %edx
	movq	%rbx, %rdi
	callq	_HMAC_Update
	leaq	-65(%rbp), %rsi
	movl	$1, %edx
	movq	%rbx, %rdi
	callq	_HMAC_Update
	leaq	_send_record.ver(%rip), %rsi
	movl	$2, %edx
	movq	%rbx, %rdi
	callq	_HMAC_Update
	movl	%r12d, %eax
	rolw	$8, %ax
	movw	%ax, -67(%rbp)
	leaq	-67(%rbp), %rsi
	movl	$2, %edx
	movq	%rbx, %rdi
	callq	_HMAC_Update
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_HMAC_Update
	leaq	(%r15,%r12), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_HMAC_Final
	movq	%rbx, %rdi
	callq	_HMAC_CTX_free
	movq	_SHA_DIGEST_LENGTH@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	movq	%r15, %rdi
	addq	%r12, %rdi
	movl	%r12d, %ebx
	andl	$15, %ebx
	movl	$16, %edx
	subq	%rbx, %rdx
	xorq	$15, %rbx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_memset
	leaq	(%r12,%rbx), %r13
	addq	%r12, %rbx
	incq	%rbx
	leaq	-64(%rbp), %rdi
	movl	$16, %esi
	callq	_RAND_bytes
	xorl	%eax, %eax
	callq	_EVP_CIPHER_CTX_new
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_EVP_aes_128_cbc
	movq	_enc_key@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$1, -80(%rbp)                   ## 4-byte Folded Spill
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	leaq	-64(%rbp), %r8
	movl	$1, %r9d
	callq	_EVP_CipherInit_ex
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_EVP_Cipher
	movq	%r12, %rdi
	callq	_EVP_CIPHER_CTX_free
	movl	$1, %edx
	movq	%r14, %rdi
	leaq	-65(%rbp), %rsi
	callq	_BIO_write
	movl	$2, %edx
	movq	%r14, %rdi
	leaq	_send_record.ver(%rip), %rsi
	callq	_BIO_write
	movl	$2, %edx
	movq	%r14, %rdi
	leaq	_send_record.epoch(%rip), %rsi
	callq	_BIO_write
	movl	$6, %edx
	movq	%r14, %rdi
	leaq	_send_record.seq(%rip), %rsi
	callq	_BIO_write
	addl	$17, %r13d
	rolw	$8, %r13w
	movw	%r13w, -67(%rbp)
	movl	$2, %edx
	movq	%r14, %rdi
	leaq	-67(%rbp), %rsi
	callq	_BIO_write
	movl	$16, %edx
	movq	%r14, %rdi
	leaq	-64(%rbp), %rsi
	callq	_BIO_write
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_BIO_write
	movq	%r15, %rdi
	callq	_OPENSSL_free
	jmp	LBB0_3
LBB0_1:
	movl	$0, -80(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
_send_record.epoch:                     ## @send_record.epoch
	.ascii	"\000\001"

.zerofill __DATA,__bss,_send_record.seq,6,0 ## @send_record.seq
_send_record.ver:                       ## @send_record.ver
	.asciz	"\001"

	.comm	_SHA_DIGEST_LENGTH,8,3          ## @SHA_DIGEST_LENGTH
	.comm	_mac_key,4,2                    ## @mac_key
	.comm	_enc_key,4,2                    ## @enc_key
	.no_dead_strip	_send_record
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_record
_send_record:                           ; @send_record
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x24, x4
	mov	x21, x3
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	strb	w1, [sp, #7]
Lloh3:
	adrp	x8, _send_record.seq@PAGE+2
Lloh4:
	add	x8, x8, _send_record.seq@PAGEOFF+2
	rev	w9, w2
Lloh5:
	str	w9, [x8]
Lloh6:
	adrp	x28, _SHA_DIGEST_LENGTH@GOTPAGE
Lloh7:
	ldr	x28, [x28, _SHA_DIGEST_LENGTH@GOTPAGEOFF]
	ldr	x8, [x28]
	add	x8, x8, x4
	mvn	w9, w8
	and	w25, w9, #0xf
	add	x8, x8, x25
	add	x0, x8, #1
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	mov	x1, x21
	mov	x2, x24
	bl	_memcpy
	bl	_HMAC_CTX_new
	mov	x27, x0
Lloh8:
	adrp	x8, _mac_key@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mac_key@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	bl	_EVP_sha1
	mov	x3, x0
	mov	x0, x27
	mov	x1, x21
	mov	w2, #20
	mov	x4, #0
	bl	_HMAC_Init_ex
Lloh11:
	adrp	x22, _send_record.epoch@PAGE
Lloh12:
	add	x22, x22, _send_record.epoch@PAGEOFF
	mov	x0, x27
	mov	x1, x22
	mov	w2, #2
	bl	_HMAC_Update
Lloh13:
	adrp	x23, _send_record.seq@PAGE
Lloh14:
	add	x23, x23, _send_record.seq@PAGEOFF
	mov	x0, x27
	mov	x1, x23
	mov	w2, #6
	bl	_HMAC_Update
	mov	w21, #1
	add	x1, sp, #7
	mov	x0, x27
	mov	w2, #1
	bl	_HMAC_Update
Lloh15:
	adrp	x26, _send_record.ver@PAGE
Lloh16:
	add	x26, x26, _send_record.ver@PAGEOFF
	mov	x0, x27
	mov	x1, x26
	mov	w2, #2
	bl	_HMAC_Update
	rev	w8, w24
	lsr	w8, w8, #16
	sturh	w8, [sp, #5]
	add	x1, sp, #5
	mov	x0, x27
	mov	w2, #2
	bl	_HMAC_Update
	mov	x0, x27
	mov	x1, x20
	mov	x2, x24
	bl	_HMAC_Update
	add	x1, x20, x24
	mov	x0, x27
	mov	x2, #0
	bl	_HMAC_Final
	mov	x0, x27
	bl	_HMAC_CTX_free
	ldr	x8, [x28]
	add	x24, x8, x24
	add	x0, x20, x24
	and	x8, x24, #0xf
	eor	x27, x8, #0xf
	mov	w9, #16
	sub	x2, x9, x8
	mov	x1, x25
	bl	_memset
	add	x27, x24, x27
	add	x24, x27, #1
	add	x0, sp, #8
	mov	w1, #16
	bl	_RAND_bytes
	bl	_EVP_CIPHER_CTX_new
	mov	x25, x0
	bl	_EVP_aes_128_cbc
	mov	x1, x0
Lloh17:
	adrp	x8, _enc_key@GOTPAGE
Lloh18:
	ldr	x8, [x8, _enc_key@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x25
	mov	x2, #0
	mov	w5, #1
	bl	_EVP_CipherInit_ex
	mov	x0, x25
	mov	x1, x20
	mov	x2, x20
	mov	x3, x24
	bl	_EVP_Cipher
	mov	x0, x25
	bl	_EVP_CIPHER_CTX_free
	add	x1, sp, #7
	mov	x0, x19
	mov	w2, #1
	bl	_BIO_write
	mov	x0, x19
	mov	x1, x26
	mov	w2, #2
	bl	_BIO_write
	mov	x0, x19
	mov	x1, x22
	mov	w2, #2
	bl	_BIO_write
	mov	x0, x19
	mov	x1, x23
	mov	w2, #6
	bl	_BIO_write
	add	w8, w27, #17
	rev	w8, w8
	lsr	w8, w8, #16
	sturh	w8, [sp, #5]
	add	x1, sp, #5
	mov	x0, x19
	mov	w2, #2
	bl	_BIO_write
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #16
	bl	_BIO_write
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	bl	_BIO_write
	mov	x0, x20
	bl	_OPENSSL_free
	b	LBB0_3
LBB0_2:
	mov	w21, #0
LBB0_3:
	ldr	x8, [sp, #24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAddStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
_send_record.epoch:                     ; @send_record.epoch
	.ascii	"\000\001"

.zerofill __DATA,__bss,_send_record.seq,6,0 ; @send_record.seq
_send_record.ver:                       ; @send_record.ver
	.asciz	"\001"

	.comm	_SHA_DIGEST_LENGTH,8,3          ; @SHA_DIGEST_LENGTH
	.comm	_mac_key,4,2                    ; @mac_key
	.comm	_enc_key,4,2                    ; @enc_key
	.no_dead_strip	_send_record
.subsections_via_symbols
