	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_record
_write_record:                          ## @write_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	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SSL3_RT_HEADER_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leaq	-304(%rbp), %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movb	%r15b, (%rbx)
	movq	_SSL3_RT_HEADER_LENGTH@GOTPCREL(%rip), %r15
	movl	%r12d, %eax
	movb	%ah, 1(%rbx)
	movb	%al, 2(%rbx)
	movq	%r14, %rax
	movb	%ah, 3(%rbx)
	movb	%al, 4(%rbx)
	movslq	(%r15), %rdx
	leaq	-312(%rbp), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_BIO_write_ex
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movslq	(%r15), %rax
	cmpq	%rax, -312(%rbp)
	jne	LBB0_7
## %bb.2:
	leaq	-304(%rbp), %r15
	leaq	-312(%rbp), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$256, %r14                      ## imm = 0x100
	movl	$256, %ebx                      ## imm = 0x100
	cmovbq	%r14, %rbx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	callq	_BIO_write_ex
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	subq	%rbx, %r14
	cmpq	%rbx, -312(%rbp)
	je	LBB0_3
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$1, %eax
	jmp	LBB0_8
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL3_RT_HEADER_LENGTH,4,2      ## @SSL3_RT_HEADER_LENGTH
	.no_dead_strip	_write_record
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_record
_write_record:                          ; @write_record
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #272
	mov	x19, sp
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x25, _SSL3_RT_HEADER_LENGTH@GOTPAGE
Lloh4:
	ldr	x25, [x25, _SSL3_RT_HEADER_LENGTH@GOTPAGEOFF]
	ldr	w8, [x25]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	add	x0, x19, #8
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	strb	w23, [x24]
	lsr	w8, w22, #8
	strb	w8, [x24, #1]
	strb	w22, [x24, #2]
	lsr	x8, x20, #8
	strb	w8, [x24, #3]
	strb	w20, [x24, #4]
	ldrsw	x2, [x25]
	add	x3, x19, #0
	mov	x0, x21
	mov	x1, x24
	bl	_BIO_write_ex
	cbz	w0, LBB0_8
; %bb.1:
	ldr	x8, [x19]
	ldrsw	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	mov	w23, #256
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x20, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x20, #256
	csel	x22, x20, x23, lo
	add	x1, x19, #8
	add	x3, x19, #0
	mov	x0, x21
	mov	x2, x22
	bl	_BIO_write_ex
	mov	x8, x0
	mov	w0, #0
	cbz	w8, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	sub	x20, x20, x22
	cmp	x8, x22
	b.eq	LBB0_3
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	w0, #1
LBB0_8:
	ldur	x8, [x29, #-72]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL3_RT_HEADER_LENGTH,4,2      ; @SSL3_RT_HEADER_LENGTH
	.no_dead_strip	_write_record
.subsections_via_symbols
