	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bio_write
_bio_write:                             ## @bio_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_BIO_clear_retry_flags
	xorl	%eax, %eax
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.1:
	testq	%r13, %r13
	je	LBB0_10
## %bb.2:
	cmpl	$0, 8(%r12)
	je	LBB0_10
## %bb.3:
	movq	(%r12), %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	$0, 48(%r15)
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	$0, 24(%r15)
	setne	%dil
	callq	_assert
	movq	$0, 40(%r15)
	cmpq	$0, 32(%r15)
	je	LBB0_5
## %bb.4:
	movq	_BIO_F_BIO_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BIO_R_BROKEN_PIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BIOerr
	movl	$-1, %eax
	jmp	LBB0_10
LBB0_5:
	movq	(%r15), %rax
	xorl	%edi, %edi
	cmpq	8(%r15), %rax
	setle	%dil
	callq	_assert
	movq	8(%r15), %rax
	subq	(%r15), %rax
	jne	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_BIO_set_retry_write
	movl	$-1, %eax
	jmp	LBB0_10
LBB0_7:
	movslq	%ebx, %r14
	cmpq	%r14, %rax
	cmovbq	%rax, %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_assert
	xorl	%r12d, %r12d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	addq	%r14, %rax
	xorl	%edi, %edi
	cmpq	8(%r15), %rax
	setbe	%dil
	callq	_assert
	movq	(%r15), %rdi
	addq	16(%r15), %rdi
	movq	8(%r15), %rax
	cmpq	%rax, %rdi
	movq	%rax, %rcx
	cmovbq	%r12, %rcx
	subq	%rcx, %rdi
	leaq	(%rdi,%r14), %rcx
	movq	%rax, %rbx
	subq	%rdi, %rbx
	cmpq	%rax, %rcx
	cmovbeq	%r14, %rbx
	shlq	$2, %rdi
	addq	24(%r15), %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	(%r15), %rax
	addq	%rbx, %rax
	movq	%rax, (%r15)
	xorl	%edi, %edi
	cmpq	8(%r15), %rax
	setle	%dil
	callq	_assert
	addq	%rbx, %r13
	subq	%rbx, %r14
	jne	LBB0_8
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIO_F_BIO_WRITE,4,2            ## @BIO_F_BIO_WRITE
	.comm	_BIO_R_BROKEN_PIPE,4,2          ## @BIO_R_BROKEN_PIPE
	.no_dead_strip	_bio_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bio_write
_bio_write:                             ; @bio_write
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	bl	_BIO_clear_retry_flags
	mov	w20, #0
	cbz	w21, LBB0_9
; %bb.1:
	cbz	x19, LBB0_9
; %bb.2:
	ldr	w8, [x22, #8]
	cbz	w8, LBB0_9
; %bb.3:
	ldr	x23, [x22]
	cmp	x23, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x23, #48]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x23, #24]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	str	xzr, [x23, #40]
	ldr	x8, [x23, #32]
	cbz	x8, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _BIO_F_BIO_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIO_F_BIO_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _BIO_R_BROKEN_PIPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BIO_R_BROKEN_PIPE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_BIOerr
	mov	w20, #-1
	b	LBB0_9
LBB0_5:
	ldp	x8, x9, [x23]
	cmp	x8, x9
	cset	w0, le
	bl	_assert
	ldp	x8, x9, [x23]
	subs	x8, x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x22
	bl	_BIO_set_retry_write
	mov	w20, #-1
	b	LBB0_9
LBB0_7:
	sxtw	x9, w21
	cmp	x8, x9
	csel	x20, x8, x9, lo
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
	mov	x22, x20
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x23]
	add	x8, x8, x22
	cmp	x8, x9
	cset	w0, ls
	bl	_assert
	ldp	x8, x9, [x23]
	ldp	x10, x11, [x23, #16]
	add	x8, x8, x10
	cmp	x8, x9
	csel	x10, xzr, x9, lo
	sub	x8, x8, x10
	add	x10, x8, x22
	sub	x12, x9, x8
	cmp	x10, x9
	csel	x21, x12, x22, hi
	add	x0, x11, x8, lsl #2
	mov	x1, x19
	mov	x2, x21
	bl	_memcpy
	ldp	x8, x9, [x23]
	add	x8, x21, x8
	cmp	x8, x9
	str	x8, [x23]
	cset	w0, le
	bl	_assert
	add	x19, x19, x21
	subs	x22, x22, x21
	b.ne	LBB0_8
LBB0_9:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_F_BIO_WRITE,4,2            ; @BIO_F_BIO_WRITE
	.comm	_BIO_R_BROKEN_PIPE,4,2          ; @BIO_R_BROKEN_PIPE
	.no_dead_strip	_bio_write
.subsections_via_symbols
