	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pt_blk_handle_erratum_bdm64
_pt_blk_handle_erratum_bdm64:           ## @pt_blk_handle_erratum_bdm64
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.4:
	xorl	%r13d, %r13d
	cmpl	$0, 4(%r14)
	je	LBB0_10
## %bb.5:
	movq	%rdi, %r15
	movq	%rbx, %rdi
	callq	_pt_blk_block_is_empty
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:
	movl	4(%rbx), %eax
	movl	%eax, -44(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)
	movl	8(%r15), %edx
	leaq	4(%r15), %r12
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	movq	%r12, %rcx
	callq	_pt_insn_decode
	testl	%eax, %eax
	js	LBB0_10
## %bb.7:
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_pt_insn_is_branch
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	(%r14), %esi
	movl	12(%r15), %edx
	movl	(%r15), %edi
	movl	8(%r15), %ecx
	movq	_bdm64_max_steps@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r12, %r8
	callq	_pt_insn_range_is_contiguous
	movl	%eax, %r13d
	testl	%eax, %eax
	jg	LBB0_10
## %bb.9:
	movl	(%r14), %eax
	movl	%eax, (%r15)
	movl	$1, %r13d
	jmp	LBB0_10
LBB0_3:
	movq	_pte_internal@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_internal,4,2               ## @pte_internal
	.comm	_bdm64_max_steps,4,2            ## @bdm64_max_steps
	.no_dead_strip	_pt_blk_handle_erratum_bdm64
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pt_blk_handle_erratum_bdm64
_pt_blk_handle_erratum_bdm64:           ; @pt_blk_handle_erratum_bdm64
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_6
; %bb.2:
	mov	x19, x2
	cbz	x2, LBB0_6
; %bb.3:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_5
; %bb.4:
	mov	x20, x0
	mov	x0, x21
	bl	_pt_blk_block_is_empty
	cbz	x0, LBB0_8
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _pte_internal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	add	sp, sp, #64
	ret
LBB0_8:
	ldr	d0, [x21]
	str	d0, [sp]
	ldr	w2, [x20, #8]
	add	x21, x20, #4
	mov	x0, sp
	add	x1, sp, #8
	mov	x3, x21
	bl	_pt_insn_decode
	tbnz	w0, #31, LBB0_5
; %bb.9:
	mov	x0, sp
	add	x1, sp, #8
	bl	_pt_insn_is_branch
	cbz	w0, LBB0_7
; %bb.10:
	ldr	w0, [x20]
	ldr	w1, [x19]
	ldp	w3, w2, [x20, #8]
Lloh3:
	adrp	x8, _bdm64_max_steps@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bdm64_max_steps@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	mov	x4, x21
	bl	_pt_insn_range_is_contiguous
	cmp	w0, #0
	b.gt	LBB0_7
; %bb.11:
	ldr	w8, [x19]
	str	w8, [x20]
	mov	w0, #1
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_internal,4,2               ; @pte_internal
	.comm	_bdm64_max_steps,4,2            ; @bdm64_max_steps
	.no_dead_strip	_pt_blk_handle_erratum_bdm64
.subsections_via_symbols
