	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_free_sste
_find_free_sste:                        ## @find_free_sste
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	sarl	$7, %eax
	decl	%eax
	movq	_SLB_VSID_B_1T@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	4(%rsi), %edx
	andl	(%rsi), %ecx
	jne	LBB0_2
## %bb.1:
	movq	%rsi, %r15
	movq	_SID_SHIFT@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	%rsi, %r15
	movq	_SID_SHIFT_1T@GOTPCREL(%rip), %rcx
LBB0_3:
	movb	(%rcx), %cl
	shrl	%cl, %edx
	andl	%eax, %edx
	movq	8(%rdi), %r14
	shll	$3, %edx
	leaq	(%r14,%rdx,4), %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14,%rdx,4), %edi
	callq	_be64_to_cpu
	movl	%eax, %r13d
	movq	_SLB_ESID_V@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_sste_matches
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	leaq	4(%r12), %rdx
	testl	%r13d, %ebx
	jne	LBB0_7
## %bb.6:
	movq	%r12, %r13
	testq	%r14, %r14
	jne	LBB0_8
LBB0_7:
	movq	%rdx, %rbx
	movl	(%rdx), %edi
	callq	_be64_to_cpu
	movq	%rbx, %rdx
	xorl	%r13d, %r13d
	movq	_SLB_ESID_V@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	cmoveq	%rbx, %r13
LBB0_8:
	movq	%rdx, %rbx
	movq	%rdx, %rdi
	movq	%r15, %rsi
	callq	_sste_matches
	testq	%rax, %rax
	jne	LBB0_4
## %bb.10:
	addq	$4, %rbx
	testq	%r13, %r13
	movq	_SLB_ESID_V@GOTPCREL(%rip), %r14
	jne	LBB0_12
## %bb.11:
	movl	(%rbx), %edi
	callq	_be64_to_cpu
	xorl	%r13d, %r13d
	testl	%eax, (%r14)
	cmoveq	%rbx, %r13
LBB0_12:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_sste_matches
	testq	%rax, %rax
	jne	LBB0_4
## %bb.14:
	addq	$4, %rbx
	testq	%r13, %r13
	jne	LBB0_16
## %bb.15:
	movl	(%rbx), %edi
	callq	_be64_to_cpu
	xorl	%r13d, %r13d
	testl	%eax, (%r14)
	cmoveq	%rbx, %r13
LBB0_16:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_sste_matches
	testq	%rax, %rax
	jne	LBB0_4
## %bb.18:
	addq	$4, %rbx
	testq	%r13, %r13
	jne	LBB0_20
## %bb.19:
	movl	(%rbx), %edi
	callq	_be64_to_cpu
	xorl	%r13d, %r13d
	testl	%eax, (%r14)
	cmoveq	%rbx, %r13
LBB0_20:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_sste_matches
	testq	%rax, %rax
	jne	LBB0_4
## %bb.22:
	addq	$4, %rbx
	testq	%r13, %r13
	jne	LBB0_24
## %bb.23:
	movl	(%rbx), %edi
	callq	_be64_to_cpu
	xorl	%r13d, %r13d
	testl	%eax, (%r14)
	cmoveq	%rbx, %r13
LBB0_24:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_sste_matches
	testq	%rax, %rax
	jne	LBB0_4
## %bb.26:
	addq	$4, %rbx
	testq	%r13, %r13
	jne	LBB0_28
## %bb.27:
	movl	(%rbx), %edi
	callq	_be64_to_cpu
	xorl	%r13d, %r13d
	testl	%eax, (%r14)
	cmoveq	%rbx, %r13
LBB0_28:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_sste_matches
	testq	%rax, %rax
	jne	LBB0_4
## %bb.30:
	addq	$4, %rbx
	testq	%r13, %r13
	jne	LBB0_32
## %bb.31:
	movl	(%rbx), %edi
	callq	_be64_to_cpu
	xorl	%r13d, %r13d
	testl	%eax, (%r14)
	cmoveq	%rbx, %r13
LBB0_32:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_sste_matches
	testq	%rax, %rax
	je	LBB0_34
LBB0_4:
	xorl	%r13d, %r13d
LBB0_36:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	testq	%r13, %r13
	jne	LBB0_36
## %bb.35:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movslq	4(%rcx), %rax
	leaq	(%r12,%rax,4), %r13
	incl	%eax
	andl	$7, %eax
	movl	%eax, 4(%rcx)
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.comm	_SLB_VSID_B_1T,4,2              ## @SLB_VSID_B_1T
	.comm	_SID_SHIFT_1T,4,2               ## @SID_SHIFT_1T
	.comm	_SID_SHIFT,4,2                  ## @SID_SHIFT
	.comm	_SLB_ESID_V,4,2                 ## @SLB_ESID_V
	.no_dead_strip	_find_free_sste
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_free_sste
_find_free_sste:                        ; @find_free_sste
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	asr	w8, w8, #7
	sub	w8, w8, #1
Lloh0:
	adrp	x9, _SLB_VSID_B_1T@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SLB_VSID_B_1T@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _SID_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SID_SHIFT@GOTPAGEOFF]
	ldp	w11, w12, [x1]
Lloh5:
	adrp	x13, _SID_SHIFT_1T@GOTPAGE
Lloh6:
	ldr	x13, [x13, _SID_SHIFT_1T@GOTPAGEOFF]
	tst	w9, w11
	csel	x9, x10, x13, eq
	ldr	w9, [x9]
	lsr	w9, w12, w9
	and	w8, w9, w8
	ldr	x25, [x0, #8]
	lsl	w8, w8, #3
	add	x21, x25, w8, uxtw #2
	ldr	w0, [x21]
	bl	_be64_to_cpu
	mov	x22, x0
Lloh7:
	adrp	x24, _SLB_ESID_V@GOTPAGE
Lloh8:
	ldr	x24, [x24, _SLB_ESID_V@GOTPAGEOFF]
	ldr	w23, [x24]
	mov	x0, x21
	mov	x1, x20
	bl	_sste_matches
	cbnz	x0, LBB0_22
; %bb.1:
	and	w8, w23, w22
	add	x23, x21, #4
	cmp	w8, #0
	ccmp	x25, #0, #4, eq
	mov	x22, x21
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x23]
	bl	_be64_to_cpu
	ldr	w8, [x24]
	tst	w8, w0
	csel	x22, x23, xzr, eq
LBB0_3:
	mov	x0, x23
	mov	x1, x20
	bl	_sste_matches
	cbnz	x0, LBB0_22
; %bb.4:
	add	x23, x23, #4
	cbnz	x22, LBB0_6
; %bb.5:
	ldr	w0, [x23]
	bl	_be64_to_cpu
	ldr	w8, [x24]
	tst	w8, w0
	csel	x22, x23, xzr, eq
LBB0_6:
	mov	x0, x23
	mov	x1, x20
	bl	_sste_matches
	cbnz	x0, LBB0_22
; %bb.7:
	add	x23, x23, #4
	cbnz	x22, LBB0_9
; %bb.8:
	ldr	w0, [x23]
	bl	_be64_to_cpu
	ldr	w8, [x24]
	tst	w8, w0
	csel	x22, x23, xzr, eq
LBB0_9:
	mov	x0, x23
	mov	x1, x20
	bl	_sste_matches
	cbnz	x0, LBB0_22
; %bb.10:
	add	x23, x23, #4
	cbnz	x22, LBB0_12
; %bb.11:
	ldr	w0, [x23]
	bl	_be64_to_cpu
	ldr	w8, [x24]
	tst	w8, w0
	csel	x22, x23, xzr, eq
LBB0_12:
	mov	x0, x23
	mov	x1, x20
	bl	_sste_matches
	cbnz	x0, LBB0_22
; %bb.13:
	add	x23, x23, #4
	cbnz	x22, LBB0_15
; %bb.14:
	ldr	w0, [x23]
	bl	_be64_to_cpu
	ldr	w8, [x24]
	tst	w8, w0
	csel	x22, x23, xzr, eq
LBB0_15:
	mov	x0, x23
	mov	x1, x20
	bl	_sste_matches
	cbnz	x0, LBB0_22
; %bb.16:
	add	x23, x23, #4
	cbnz	x22, LBB0_18
; %bb.17:
	ldr	w0, [x23]
	bl	_be64_to_cpu
	ldr	w8, [x24]
	tst	w8, w0
	csel	x22, x23, xzr, eq
LBB0_18:
	mov	x0, x23
	mov	x1, x20
	bl	_sste_matches
	cbnz	x0, LBB0_22
; %bb.19:
	add	x23, x23, #4
	cbnz	x22, LBB0_21
; %bb.20:
	ldr	w0, [x23]
	bl	_be64_to_cpu
	ldr	w8, [x24]
	tst	w8, w0
	csel	x22, x23, xzr, eq
LBB0_21:
	mov	x0, x23
	mov	x1, x20
	bl	_sste_matches
	cbz	x0, LBB0_24
LBB0_22:
	mov	x22, #0
LBB0_23:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_24:
	cbnz	x22, LBB0_23
; %bb.25:
	ldrsw	x8, [x19, #4]
	add	x22, x21, x8, lsl #2
	add	w8, w8, #1
	and	w8, w8, #0x7
	str	w8, [x19, #4]
	b	LBB0_23
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SLB_VSID_B_1T,4,2              ; @SLB_VSID_B_1T
	.comm	_SID_SHIFT_1T,4,2               ; @SID_SHIFT_1T
	.comm	_SID_SHIFT,4,2                  ; @SID_SHIFT
	.comm	_SLB_ESID_V,4,2                 ; @SLB_ESID_V
	.no_dead_strip	_find_free_sste
.subsections_via_symbols
