	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_or_alloc_smte
_find_or_alloc_smte:                    ## @find_or_alloc_smte
	.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
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rsi, %r14
	movq	8(%rdi), %rbx
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %r12
	xorl	%r15d, %r15d
	movq	_SMT_STATE_SWITCHING@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	testq	%r15, %r15
	cmoveq	%rbx, %r15
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$24, %rbx
	addq	$-24, %r12
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	16(%rbx), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_3
## %bb.7:
	movq	%rbx, %r15
	jmp	LBB0_12
LBB0_8:
	testq	%r15, %r15
	je	LBB0_11
## %bb.9:
	movq	_SMT_STATE_UNUSED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	jmp	LBB0_12
LBB0_11:
	xorl	%r15d, %r15d
LBB0_12:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMT_STATE_SWITCHING,8,3        ## @SMT_STATE_SWITCHING
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_SMT_STATE_UNUSED,8,3           ## @SMT_STATE_UNUSED
	.no_dead_strip	_find_or_alloc_smte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_or_alloc_smte
_find_or_alloc_smte:                    ; @find_or_alloc_smte
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x20, x1
	mov	x19, #0
	ldr	x21, [x0, #8]
	add	x8, x8, x8, lsl #1
	lsl	x22, x8, #3
Lloh0:
	adrp	x23, _SMT_STATE_SWITCHING@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SMT_STATE_SWITCHING@GOTPAGEOFF]
Lloh2:
	adrp	x24, _ETH_ALEN@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ETH_ALEN@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x19, #0
	csel	x19, x21, x19, eq
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #24
	subs	x22, x22, #24
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x21, #16]
	ldr	w2, [x24]
	mov	x1, x20
	bl	_memcmp
	cbnz	x0, LBB0_3
; %bb.7:
	mov	x19, x21
	b	LBB0_11
LBB0_8:
	cbz	x19, LBB0_11
; %bb.9:
Lloh4:
	adrp	x8, _SMT_STATE_UNUSED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SMT_STATE_UNUSED@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_11
LBB0_10:
	mov	x19, #0
LBB0_11:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SMT_STATE_SWITCHING,8,3        ; @SMT_STATE_SWITCHING
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_SMT_STATE_UNUSED,8,3           ; @SMT_STATE_UNUSED
	.no_dead_strip	_find_or_alloc_smte
.subsections_via_symbols
