	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_root_anchor
_write_root_anchor:                     ## @write_root_anchor
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	$0, -32(%rbp)
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_BIO_seek
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_BIO_get_mem_data
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	cmpq	$0, -32(%rbp)
	je	LBB0_2
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %r15
	movq	-32(%rbp), %rdi
	movslq	%ebx, %rsi
	movl	$1, %edx
	movq	%rax, %rcx
	callq	_fwrite
	cmpl	$1, %eax
	je	LBB0_12
## %bb.8:
	movq	_verb@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_12
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_printf
	cmpq	$0, (%rbx)
	je	LBB0_12
## %bb.10:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_strerror
	movq	%rax, %rdi
	callq	_puts
LBB0_12:
	movq	%r15, %rdi
	callq	_fflush
	movq	%r15, %rdi
	callq	__fileno
	movl	%eax, %edi
	callq	__get_osfhandle
	movl	%eax, %edi
	callq	_FlushFileBuffers
	movq	%r15, %rdi
	callq	_fclose
	jmp	LBB0_13
LBB0_2:
	movq	_verb@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.3:
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_13
LBB0_5:
	movq	_verb@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.6:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_printf
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verb,8,3                       ## @verb
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"w"

L_.str.2:                               ## @.str.2
	.asciz	"%s: %s\n"

	.comm	_errno,8,3                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"failed to write all data to %s\n"

L_str:                                  ## @str
	.asciz	"out of memory"

	.no_dead_strip	_write_root_anchor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_root_anchor
_write_root_anchor:                     ; @write_root_anchor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #24]
	mov	x0, x1
	mov	w1, #0
	bl	_BIO_seek
	add	x1, sp, #24
	mov	x0, x20
	bl	_BIO_get_mem_data
	cbz	w0, LBB0_9
; %bb.1:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_9
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fopen
	cbz	x0, LBB0_11
; %bb.3:
	mov	x20, x0
	ldr	x0, [sp, #24]
	sxtw	x1, w21
	mov	w2, #1
	mov	x3, x20
	bl	_fwrite
	cmp	w0, #1
	b.eq	LBB0_8
; %bb.4:
Lloh2:
	adrp	x21, _verb@GOTPAGE
Lloh3:
	ldr	x21, [x21, _verb@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.5:
	str	x19, [sp]
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.6:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_strerror
	bl	_puts
LBB0_8:
	mov	x0, x20
	bl	_fflush
	mov	x0, x20
	bl	__fileno
	bl	__get_osfhandle
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_FlushFileBuffers
	mov	x0, x20
	bl	_fclose
	b	LBB0_13
LBB0_9:
Lloh9:
	adrp	x8, _verb@GOTPAGE
Lloh10:
	ldr	x8, [x8, _verb@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.10:
Lloh12:
	adrp	x0, l_str@PAGE
Lloh13:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_13
LBB0_11:
Lloh14:
	adrp	x8, _verb@GOTPAGE
Lloh15:
	ldr	x8, [x8, _verb@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.12:
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
	bl	_strerror
	stp	x19, x0, [sp]
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
LBB0_13:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_verb,8,3                       ; @verb
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"w"

l_.str.2:                               ; @.str.2
	.asciz	"%s: %s\n"

	.comm	_errno,8,3                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"failed to write all data to %s\n"

l_str:                                  ; @str
	.asciz	"out of memory"

	.no_dead_strip	_write_root_anchor
.subsections_via_symbols
