	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __smq_create
___smq_create:                          ## @__smq_create
	.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
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %r12d
	movq	_NR_CACHE_LEVELS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$152, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_26
## %bb.1:
	movq	%rax, %r15
	leal	(,%r14,4), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_init_policy_functions
	movl	%r12d, 104(%r15)
	movl	%ebx, 144(%r15)
	movl	%r12d, %edi
	callq	_from_cblock
	leaq	148(%r15), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%eax, %edx
	movq	%r15, %r8
	callq	_calc_hotspot_params
	movl	144(%r15), %esi
	movl	148(%r15), %edi
	callq	_div64_u64
	movl	%eax, 4(%r15)
	movl	$1, 8(%r15)
	leaq	24(%r15), %r13
	movl	(%r15), %ebx
	addl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%r12d, %edi
	callq	_from_cblock
	addl	%eax, %ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_space_init
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_DMERR
	jmp	LBB0_25
LBB0_3:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	addl	%r14d, %r14d
	leaq	140(%r15), %rbx
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	callq	_init_allocator
	testl	%r14d, %r14d
	je	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_get_entry
	movl	$1, (%rax)
	incl	%r12d
	cmpl	%r12d, %r14d
	jne	LBB0_5
## %bb.6:
	leaq	136(%r15), %r12
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_init_allocator
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_get_entry
	movl	$1, (%rax)
	incl	%ebx
	cmpl	%ebx, %r14d
	jne	LBB0_8
	jmp	LBB0_9
LBB0_4:
	leaq	136(%r15), %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_init_allocator
LBB0_9:
	leaq	132(%r15), %rdi
	movl	(%r15), %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	addl	%ebx, %ecx
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_init_allocator
	leaq	128(%r15), %r12
	addl	(%r15), %ebx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_from_cblock
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rbx), %ecx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_init_allocator
	movl	(%r15), %edi
	callq	_alloc_bitset
	movq	%rax, 32(%r15)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_clear_bitset
	movl	%r14d, %edi
	callq	_from_cblock
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	movl	%r14d, %edi
	callq	_from_cblock
	movl	%eax, %edi
	callq	_alloc_bitset
	movq	%rax, 40(%r15)
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %rbx
	movl	104(%r15), %edi
	callq	_from_cblock
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_clear_bitset
	jmp	LBB0_16
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	callq	_DMERR
	jmp	LBB0_24
LBB0_15:
	movq	$0, 40(%r15)
LBB0_16:
	movq	$0, 120(%r15)
	leaq	116(%r15), %rdi
	callq	_spin_lock_init
	leaq	108(%r15), %rdi
	movq	_NR_HOTSPOT_LEVELS@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r13, %rsi
	callq	_q_init
	movl	$8, 108(%r15)
	movl	(%r15), %eax
	movl	104(%r15), %edi
	xorl	%edx, %edx
	divl	(%r12)
	movl	%eax, %ebx
	callq	_from_cblock
	cltd
	idivl	4(%r15)
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_min
	movl	%eax, 112(%r15)
	leaq	96(%r15), %rdi
	movq	_NR_CACHE_LEVELS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r13, %rsi
	callq	_q_init
	leaq	88(%r15), %rdi
	movl	(%rbx), %edx
	movq	%r13, %rsi
	callq	_q_init
	leaq	84(%r15), %rdi
	movl	(%r12), %esi
	callq	_stats_init
	leaq	80(%r15), %rdi
	movl	(%rbx), %esi
	callq	_stats_init
	leaq	48(%r15), %r14
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_from_cblock
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_h_init
	testq	%rax, %rax
	jne	LBB0_22
## %bb.17:
	leaq	52(%r15), %rbx
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_h_init
	testq	%rax, %rax
	je	LBB0_18
LBB0_21:
	movq	%r14, %rdi
	callq	_h_exit
LBB0_22:
	movq	40(%r15), %rdi
	callq	_free_bitset
	jmp	LBB0_23
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
	callq	_DMERR
LBB0_23:
	movq	32(%r15), %rdi
	callq	_free_bitset
LBB0_24:
	movq	%r13, %rdi
	callq	_space_exit
LBB0_25:
	movq	%r15, %rdi
	callq	_kfree
LBB0_26:
	xorl	%r15d, %r15d
LBB0_27:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%r15, %rdi
	callq	_sentinels_init
	movl	(%r12), %eax
	movl	%eax, 16(%r15)
	movl	%eax, 12(%r15)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%r15)
	movq	%rax, 64(%r15)
	movl	$4096, %edi                     ## imm = 0x1000
	callq	_btracker_create
	movl	%eax, 60(%r15)
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 20(%r15)
	addq	$56, %r15
	jmp	LBB0_27
LBB0_20:
	movq	%rbx, %rdi
	callq	_h_exit
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_NR_CACHE_LEVELS,4,2            ## @NR_CACHE_LEVELS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't initialize entry space"

L_.str.1:                               ## @.str.1
	.asciz	"couldn't allocate hotspot hit bitset"

L_.str.2:                               ## @.str.2
	.asciz	"couldn't allocate cache hit bitset"

	.comm	_NR_HOTSPOT_LEVELS,4,2          ## @NR_HOTSPOT_LEVELS
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	___smq_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __smq_create
___smq_create:                          ; @__smq_create
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x25, x3
	mov	x21, x2
	mov	x24, x1
	mov	x22, x0
Lloh0:
	adrp	x27, _NR_CACHE_LEVELS@GOTPAGE
Lloh1:
	ldr	x27, [x27, _NR_CACHE_LEVELS@GOTPAGEOFF]
	ldr	w26, [x27]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #152
	bl	_kzalloc
	cbz	x0, LBB0_24
; %bb.1:
	mov	x19, x0
	lsl	w23, w26, #2
	mov	x1, x25
	bl	_init_policy_functions
	str	w22, [x19, #104]
	str	w21, [x19, #144]
	mov	x0, x22
	bl	_from_cblock
	mov	x2, x0
	add	x3, x19, #148
	mov	x0, x24
	mov	x1, x21
	mov	x4, x19
	bl	_calc_hotspot_params
	ldp	w1, w0, [x19, #144]
	bl	_div64_u64
	mov	w8, #1
	stp	w0, w8, [x19, #4]
	add	x21, x19, #24
	ldr	w8, [x19]
	add	w24, w8, w23
	mov	x0, x22
	bl	_from_cblock
	add	w1, w24, w0
	mov	x0, x21
	bl	_space_init
	cbz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
	b	LBB0_23
LBB0_3:
	lsl	w24, w26, #1
	add	x25, x19, #140
	mov	x0, x25
	mov	x1, x21
	mov	w2, #0
	mov	x3, x24
	bl	_init_allocator
	cbz	w24, LBB0_9
; %bb.4:
	mov	w26, #0
	mov	w28, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x26
	bl	_get_entry
	str	w28, [x0]
	add	w26, w26, #1
	cmp	w24, w26
	b.ne	LBB0_5
; %bb.6:
	add	x25, x19, #136
	mov	x0, x25
	mov	x1, x21
	mov	x2, x24
	mov	x3, x23
	bl	_init_allocator
	cbz	w24, LBB0_10
; %bb.7:
	mov	w26, #0
	mov	w28, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x26
	bl	_get_entry
	str	w28, [x0]
	add	w26, w26, #1
	cmp	w24, w26
	b.ne	LBB0_8
	b	LBB0_10
LBB0_9:
	add	x0, x19, #136
	mov	x1, x21
	mov	x2, x24
	mov	x3, x23
	bl	_init_allocator
LBB0_10:
	add	x0, x19, #132
	ldr	w8, [x19]
	add	w3, w8, w23
	mov	x1, x21
	mov	x2, x23
	bl	_init_allocator
	add	x24, x19, #128
	ldr	w8, [x19]
	add	w23, w8, w23
	mov	x0, x22
	bl	_from_cblock
	add	w3, w23, w0
	mov	x0, x24
	mov	x1, x21
	mov	x2, x23
	bl	_init_allocator
	ldr	w0, [x19]
	bl	_alloc_bitset
	str	x0, [x19, #32]
	cbz	x0, LBB0_14
; %bb.11:
	ldr	w1, [x19]
	bl	_clear_bitset
	mov	x0, x22
	bl	_from_cblock
	cbz	w0, LBB0_15
; %bb.12:
	mov	x0, x22
	bl	_from_cblock
	bl	_alloc_bitset
	str	x0, [x19, #40]
	cbz	x0, LBB0_20
; %bb.13:
	mov	x23, x0
	ldr	w0, [x19, #104]
	bl	_from_cblock
	mov	x1, x0
	mov	x0, x23
	bl	_clear_bitset
	b	LBB0_16
LBB0_14:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DMERR
	b	LBB0_22
LBB0_15:
	str	xzr, [x19, #40]
LBB0_16:
	str	xzr, [x19, #120]
	add	x0, x19, #116
	bl	_spin_lock_init
	add	x0, x19, #108
Lloh9:
	adrp	x24, _NR_HOTSPOT_LEVELS@GOTPAGE
Lloh10:
	ldr	x24, [x24, _NR_HOTSPOT_LEVELS@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x1, x21
	bl	_q_init
	mov	w8, #8
	str	w8, [x19, #108]
	ldr	w8, [x19]
	ldr	w9, [x24]
	ldr	w0, [x19, #104]
	udiv	w23, w8, w9
	bl	_from_cblock
	ldr	w8, [x19, #4]
	sdiv	w1, w0, w8
	mov	x0, x23
	bl	_min
	str	w0, [x19, #112]
	add	x0, x19, #96
	ldr	w2, [x27]
	mov	x1, x21
	bl	_q_init
	add	x0, x19, #88
	ldr	w2, [x27]
	mov	x1, x21
	bl	_q_init
	add	x0, x19, #84
	ldr	w1, [x24]
	bl	_stats_init
	add	x0, x19, #80
	ldr	w1, [x27]
	bl	_stats_init
	add	x23, x19, #48
	mov	x0, x22
	bl	_from_cblock
	mov	x2, x0
	mov	x0, x23
	mov	x1, x21
	bl	_h_init
	cbnz	x0, LBB0_19
; %bb.17:
	mov	x22, x19
	ldr	w2, [x22], #52
	mov	x0, x22
	mov	x1, x21
	bl	_h_init
	cbz	x0, LBB0_25
LBB0_18:
	mov	x0, x23
	bl	_h_exit
LBB0_19:
	ldr	x0, [x19, #40]
	bl	_free_bitset
	b	LBB0_21
LBB0_20:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DMERR
LBB0_21:
	ldr	x0, [x19, #32]
	bl	_free_bitset
LBB0_22:
	mov	x0, x21
	bl	_space_exit
LBB0_23:
	mov	x0, x19
	bl	_kfree
	mov	x0, #0
LBB0_24:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_25:
	mov	x0, x19
	bl	_sentinels_init
	ldr	w8, [x24]
	stp	w8, w8, [x19, #12]
Lloh13:
	adrp	x8, _jiffies@GOTPAGE
Lloh14:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #64]
	mov	w0, #4096
	bl	_btracker_create
	str	w0, [x19, #60]
	cbz	w0, LBB0_27
; %bb.26:
	str	w20, [x19, #20]
	add	x0, x19, #56
	b	LBB0_24
LBB0_27:
	mov	x0, x22
	bl	_h_exit
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_NR_CACHE_LEVELS,4,2            ; @NR_CACHE_LEVELS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't initialize entry space"

l_.str.1:                               ; @.str.1
	.asciz	"couldn't allocate hotspot hit bitset"

l_.str.2:                               ; @.str.2
	.asciz	"couldn't allocate cache hit bitset"

	.comm	_NR_HOTSPOT_LEVELS,4,2          ; @NR_HOTSPOT_LEVELS
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	___smq_create
.subsections_via_symbols
