	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_write_split
_ssl_write_split:                       ## @ssl_write_split
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	cmpq	$2, %rdx
	jb	LBB0_10
## %bb.1:
	movq	24(%rbx), %rax
	movq	_MBEDTLS_SSL_CBC_RECORD_SPLITTING_DISABLED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, (%rax)
	je	LBB0_10
## %bb.2:
	movq	(%rbx), %rax
	movq	_MBEDTLS_SSL_MINOR_VERSION_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_10
## %bb.3:
	movq	16(%rbx), %rdi
	callq	_mbedtls_cipher_get_cipher_mode
	movq	_MBEDTLS_MODE_CBC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.4:
	cmpl	$0, 8(%rbx)
	jne	LBB0_7
## %bb.5:
	movl	$1, %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ssl_write_real
	testl	%eax, %eax
	jle	LBB0_9
## %bb.6:
	movl	$1, 8(%rbx)
LBB0_7:
	incq	%r15
	decq	%r14
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_ssl_write_real
	testl	%eax, %eax
	jle	LBB0_9
## %bb.8:
	movl	$0, 8(%rbx)
	incl	%eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ssl_write_real                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_SSL_CBC_RECORD_SPLITTING_DISABLED,8,3 ## @MBEDTLS_SSL_CBC_RECORD_SPLITTING_DISABLED
	.comm	_MBEDTLS_SSL_MINOR_VERSION_1,8,3 ## @MBEDTLS_SSL_MINOR_VERSION_1
	.comm	_MBEDTLS_MODE_CBC,8,3           ## @MBEDTLS_MODE_CBC
	.no_dead_strip	_ssl_write_split
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_write_split
_ssl_write_split:                       ; @ssl_write_split
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	cmp	x2, #2
	b.lo	LBB0_10
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _MBEDTLS_SSL_CBC_RECORD_SPLITTING_DISABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MBEDTLS_SSL_CBC_RECORD_SPLITTING_DISABLED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.2:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _MBEDTLS_SSL_MINOR_VERSION_1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MBEDTLS_SSL_MINOR_VERSION_1@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_10
; %bb.3:
	ldr	x0, [x19, #16]
	bl	_mbedtls_cipher_get_cipher_mode
Lloh6:
	adrp	x8, _MBEDTLS_MODE_CBC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_MODE_CBC@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.4:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_7
; %bb.5:
	mov	w22, #1
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_ssl_write_real
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.6:
	str	w22, [x19, #8]
LBB0_7:
	add	x1, x21, #1
	sub	x2, x20, #1
	mov	x0, x19
	bl	_ssl_write_real
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.8:
	str	wzr, [x19, #8]
	add	w0, w0, #1
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:
	mov	x0, x19
	mov	x1, x21
	mov	x2, 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	_ssl_write_real
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_SSL_CBC_RECORD_SPLITTING_DISABLED,8,3 ; @MBEDTLS_SSL_CBC_RECORD_SPLITTING_DISABLED
	.comm	_MBEDTLS_SSL_MINOR_VERSION_1,8,3 ; @MBEDTLS_SSL_MINOR_VERSION_1
	.comm	_MBEDTLS_MODE_CBC,8,3           ; @MBEDTLS_MODE_CBC
	.no_dead_strip	_ssl_write_split
.subsections_via_symbols
