	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bte_reset_all
_bte_reset_all:                         ## @bte_reset_all
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_bte_pcbs@GOTPCREL(%rip), %rdi
	callq	_btmemb_init
	movq	_bte_ctrl_reqs@GOTPCREL(%rip), %rdi
	callq	_btmemb_init
	movq	_btstate@GOTPCREL(%rip), %rbx
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_free
LBB0_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movups	%xmm0, 8(%rbx)
	movq	_ERR_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bte_pcbs,4,2                   ## @bte_pcbs
	.comm	_bte_ctrl_reqs,4,2              ## @bte_ctrl_reqs
	.comm	_btstate,40,3                   ## @btstate
	.comm	_ERR_OK,4,2                     ## @ERR_OK
	.no_dead_strip	_bte_reset_all
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bte_reset_all
_bte_reset_all:                         ; @bte_reset_all
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, _bte_pcbs@GOTPAGE
Lloh1:
	ldr	x0, [x0, _bte_pcbs@GOTPAGEOFF]
	bl	_btmemb_init
Lloh2:
	adrp	x0, _bte_ctrl_reqs@GOTPAGE
Lloh3:
	ldr	x0, [x0, _bte_ctrl_reqs@GOTPAGEOFF]
	bl	_btmemb_init
Lloh4:
	adrp	x19, _btstate@GOTPAGE
Lloh5:
	ldr	x19, [x19, _btstate@GOTPAGEOFF]
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_free
LBB0_2:
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #24]
	stur	q0, [x19, #8]
Lloh6:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_bte_pcbs,4,2                   ; @bte_pcbs
	.comm	_bte_ctrl_reqs,4,2              ; @bte_ctrl_reqs
	.comm	_btstate,40,3                   ; @btstate
	.comm	_ERR_OK,4,2                     ; @ERR_OK
	.no_dead_strip	_bte_reset_all
.subsections_via_symbols
