	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_once_cb
_read_once_cb:                          ## @read_once_cb
	.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
	subq	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	-288(%rbp), %rsi
	movl	$256, %edx                      ## imm = 0x100
	callq	_read
	movq	_called@GOTPCREL(%rip), %r15
	xorl	%ecx, %ecx
	cmpq	$0, (%r15)
	je	LBB0_1
LBB0_4:
	movq	_test_ok@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
LBB0_5:
	incq	(%r15)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	_pair@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %r14d
	movq	_TEST1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_strlen
	leaq	1(%rax), %rdx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_write
	movl	$1, %ecx
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_tt_fail_perror
	xorl	%ecx, %ecx
	jmp	LBB0_4
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_called,8,3                     ## @called
	.comm	_test_ok,4,2                    ## @test_ok
	.comm	_pair,8,3                       ## @pair
	.comm	_TEST1,4,2                      ## @TEST1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write"

	.no_dead_strip	_read_once_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_once_cb
_read_once_cb:                          ; @read_once_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	add	x1, sp, #8
	mov	w2, #256
	bl	_read
Lloh3:
	adrp	x21, _called@GOTPAGE
Lloh4:
	ldr	x21, [x21, _called@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_5
LBB0_1:
	mov	w8, #0
LBB0_2:
Lloh5:
	adrp	x9, _test_ok@GOTPAGE
Lloh6:
	ldr	x9, [x9, _test_ok@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
LBB0_3:
	ldr	x8, [x21]
	add	x8, x8, #1
	str	x8, [x21]
	ldur	x8, [x29, #-40]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.4:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_5:
	cbz	w0, LBB0_3
; %bb.6:
Lloh11:
	adrp	x8, _pair@GOTPAGE
Lloh12:
	ldr	x8, [x8, _pair@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w19, [x8]
Lloh14:
	adrp	x8, _TEST1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TEST1@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_strlen
	add	x2, x0, #1
	mov	x0, x19
	mov	x1, x20
	bl	_write
	tbnz	x0, #63, LBB0_8
; %bb.7:
	mov	w8, #1
	b	LBB0_2
LBB0_8:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_tt_fail_perror
	b	LBB0_1
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_called,8,3                     ; @called
	.comm	_test_ok,4,2                    ; @test_ok
	.comm	_pair,8,3                       ; @pair
	.comm	_TEST1,4,2                      ; @TEST1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write"

	.no_dead_strip	_read_once_cb
.subsections_via_symbols
