	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_sslio_write                 ## -- Begin function br_sslio_write
	.p2align	4, 0x90
_br_sslio_write:                        ## @br_sslio_write
	.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
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_BR_SSL_SENDAPP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_run_until
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movl	(%r15), %edi
	leaq	-32(%rbp), %rsi
	callq	_br_ssl_engine_sendapp_buf
	movq	-32(%rbp), %rdx
	cmpq	%rbx, %rdx
	jbe	LBB0_6
## %bb.5:
	movq	%rbx, -32(%rbp)
	movq	%rbx, %rdx
LBB0_6:
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_memcpy
	movl	(%r15), %edi
	movq	-32(%rbp), %rsi
	callq	_br_ssl_engine_sendapp_ack
	movl	-32(%rbp), %eax
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_3:
	movl	$-1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BR_SSL_SENDAPP,4,2             ## @BR_SSL_SENDAPP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_sslio_write                 ; -- Begin function br_sslio_write
	.p2align	2
_br_sslio_write:                        ; @br_sslio_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x2, LBB0_5
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _BR_SSL_SENDAPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BR_SSL_SENDAPP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_run_until
	tbnz	x0, #63, LBB0_6
; %bb.2:
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_br_ssl_engine_sendapp_buf
	ldr	x2, [sp, #8]
	cmp	x2, x21
	b.ls	LBB0_4
; %bb.3:
	str	x21, [sp, #8]
	mov	x2, x21
LBB0_4:
	mov	x1, x20
	bl	_memcpy
	ldr	w0, [x19]
	ldr	x1, [sp, #8]
	bl	_br_ssl_engine_sendapp_ack
	ldr	w0, [sp, #8]
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BR_SSL_SENDAPP,4,2             ; @BR_SSL_SENDAPP
.subsections_via_symbols
