	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xml_append_bio
_xml_append_bio:                        ## @xml_append_bio
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	$0, -24(%rbp)
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_BIO_seek
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_BIO_get_mem_data
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	-24(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.2:
	testq	%rax, %rax
	jle	LBB0_21
## %bb.3:
	cmpq	$1, %rax
	jne	LBB0_8
## %bb.4:
	xorl	%ecx, %ecx
LBB0_16:
	testb	$1, %al
	je	LBB0_21
## %bb.17:
	movb	(%rsi,%rcx), %dl
	cmpb	$13, %dl
	je	LBB0_19
## %bb.18:
	cmpb	$10, %dl
	jne	LBB0_20
LBB0_19:
	movb	$32, (%rsi,%rcx)
LBB0_20:
	movq	-24(%rbp), %rsi
LBB0_21:
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_BIO_write
	testq	%rax, %rax
	js	LBB0_5
## %bb.22:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	%rax, %rdx
	andq	$-2, %rdx
	xorl	%ecx, %ecx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movb	$32, 1(%rsi,%rcx)
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$2, %rcx
	movq	-24(%rbp), %rsi
	cmpq	%rcx, %rdx
	je	LBB0_16
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rsi,%rcx), %ebx
	cmpb	$13, %bl
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$10, %bl
	jne	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movb	$32, (%rsi,%rcx)
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-24(%rbp), %rsi
	movzbl	1(%rsi,%rcx), %ebx
	cmpb	$13, %bl
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$10, %bl
	je	LBB0_14
	jmp	LBB0_15
LBB0_5:
	movq	_verb@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	leaq	L_str.1(%rip), %rdi
	callq	_puts
LBB0_7:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_verb,8,3                       ## @verb
	.section	__TEXT,__cstring,cstring_literals
L_str.1:                                ## @str.1
	.asciz	"out of memory in BIO_write"

	.no_dead_strip	_xml_append_bio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xml_append_bio
_xml_append_bio:                        ; @xml_append_bio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	mov	x0, x1
	mov	w1, #0
	bl	_BIO_seek
	add	x1, sp, #8
	mov	x0, x20
	bl	_BIO_get_mem_data
	cbz	x0, LBB0_9
; %bb.1:
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_9
; %bb.2:
	mov	x2, x0
	cmp	x0, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x8, #0
	mov	w9, #32
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #1
	ldr	x1, [sp, #8]
	cmp	x2, x8
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x1, x8]
	cmp	w10, #13
	ccmp	w10, #10, #4, ne
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	w9, [x1, x8]
	b	LBB0_4
LBB0_7:
	mov	x0, x19
	bl	_BIO_write
	tbnz	x0, #63, LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
Lloh0:
	adrp	x8, _verb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verb@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.10:
Lloh3:
	adrp	x0, l_str.1@PAGE
Lloh4:
	add	x0, x0, l_str.1@PAGEOFF
	bl	_puts
LBB0_11:
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_verb,8,3                       ; @verb
	.section	__TEXT,__cstring,cstring_literals
l_str.1:                                ; @str.1
	.asciz	"out of memory in BIO_write"

	.no_dead_strip	_xml_append_bio
.subsections_via_symbols
