	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_cache_policy_register       ## -- Begin function dm_cache_policy_register
	.p2align	4, 0x90
_dm_cache_policy_register:              ## @dm_cache_policy_register
	.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
	movslq	(%rdi), %rsi
	testl	$-5, %esi
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	_register_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	8(%rbx), %rdi
	callq	___find_policy
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_DMWARN
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DMWARN
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	addq	$16, %rbx
	movq	_register_list@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add
	xorl	%ebx, %ebx
LBB0_5:
	movq	_register_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hint size must be 0 or 4 but %llu supplied."

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_register_lock,4,2              ## @register_lock
L_.str.1:                               ## @.str.1
	.asciz	"attempt to register policy under duplicate name %s"

	.comm	_register_list,4,2              ## @register_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_cache_policy_register       ; -- Begin function dm_cache_policy_register
	.p2align	2
_dm_cache_policy_register:              ; @dm_cache_policy_register
	.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
	ldrsw	x1, [x0]
	orr	w8, w1, #0x4
	cmp	w8, #4
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x0, _register_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _register_lock@GOTPAGEOFF]
	bl	_spin_lock
	ldr	x0, [x19, #8]
	bl	___find_policy
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x1, [x19, #8]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DMWARN
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_5
LBB0_3:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMWARN
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_6
LBB0_4:
	add	x0, x19, #16
Lloh12:
	adrp	x1, _register_list@GOTPAGE
Lloh13:
	ldr	x1, [x1, _register_list@GOTPAGEOFF]
	bl	_list_add
	mov	w19, #0
LBB0_5:
Lloh14:
	adrp	x0, _register_lock@GOTPAGE
Lloh15:
	ldr	x0, [x0, _register_lock@GOTPAGEOFF]
	bl	_spin_unlock
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hint size must be 0 or 4 but %llu supplied."

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_register_lock,4,2              ; @register_lock
l_.str.1:                               ; @.str.1
	.asciz	"attempt to register policy under duplicate name %s"

	.comm	_register_list,4,2              ; @register_list
.subsections_via_symbols
