	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_table_set_restrictions      ## -- Begin function dm_table_set_restrictions
	.p2align	4, 0x90
_dm_table_set_restrictions:             ## @dm_table_set_restrictions
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movups	(%rdx), %xmm0
	movups	%xmm0, (%rsi)
	cmpq	$0, 8(%rdx)
	movq	_QUEUE_FLAG_CLUSTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	je	LBB0_2
## %bb.1:
	callq	_queue_flag_clear_unlocked
	jmp	LBB0_3
LBB0_2:
	callq	_queue_flag_set_unlocked
LBB0_3:
	movq	%r15, %rdi
	callq	_dm_table_supports_discards
	movq	_QUEUE_FLAG_DISCARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%r14, %rsi
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	callq	_queue_flag_set_unlocked
	jmp	LBB0_6
LBB0_4:
	callq	_queue_flag_clear_unlocked
LBB0_6:
	movq	_REQ_FLUSH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_dm_table_supports_flush
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	(%rbx), %ebx
	movq	_REQ_FUA@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_dm_table_supports_flush
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	orl	(%r12), %ebx
	jmp	LBB0_10
LBB0_7:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_blk_queue_flush
	movq	%r15, %rdi
	callq	_dm_table_discard_zeroes_data
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	$0, (%r14)
LBB0_12:
	movq	_device_is_nonrot@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_dm_table_all_devices_attribute
	movq	_QUEUE_FLAG_NONROT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%r14, %rsi
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	callq	_queue_flag_set_unlocked
	jmp	LBB0_15
LBB0_14:
	callq	_queue_flag_clear_unlocked
LBB0_15:
	movq	%r15, %rdi
	callq	_dm_table_set_integrity
	movq	%r14, %rdi
	callq	_blk_queue_add_random
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	_device_is_not_random@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_dm_table_all_devices_attribute
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	_QUEUE_FLAG_ADD_RANDOM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_queue_flag_clear_unlocked
LBB0_18:
	xorl	%eax, %eax
	callq	_smp_mb
	movq	%r15, %rdi
	callq	_dm_table_request_based
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movq	_QUEUE_FLAG_STACKABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_flag_set_unlocked        ## TAILCALL
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUEUE_FLAG_CLUSTER,4,2         ## @QUEUE_FLAG_CLUSTER
	.comm	_QUEUE_FLAG_DISCARD,4,2         ## @QUEUE_FLAG_DISCARD
	.comm	_REQ_FLUSH,4,2                  ## @REQ_FLUSH
	.comm	_REQ_FUA,4,2                    ## @REQ_FUA
	.comm	_device_is_nonrot,4,2           ## @device_is_nonrot
	.comm	_QUEUE_FLAG_NONROT,4,2          ## @QUEUE_FLAG_NONROT
	.comm	_device_is_not_random,4,2       ## @device_is_not_random
	.comm	_QUEUE_FLAG_ADD_RANDOM,4,2      ## @QUEUE_FLAG_ADD_RANDOM
	.comm	_QUEUE_FLAG_STACKABLE,4,2       ## @QUEUE_FLAG_STACKABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_table_set_restrictions      ; -- Begin function dm_table_set_restrictions
	.p2align	2
_dm_table_set_restrictions:             ; @dm_table_set_restrictions
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	q0, [x2]
	str	q0, [x1]
	ldr	x8, [x2, #8]
Lloh0:
	adrp	x9, _QUEUE_FLAG_CLUSTER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QUEUE_FLAG_CLUSTER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_queue_flag_clear_unlocked
	b	LBB0_3
LBB0_2:
	bl	_queue_flag_set_unlocked
LBB0_3:
	mov	x0, x20
	bl	_dm_table_supports_discards
	mov	x8, x0
Lloh3:
	adrp	x9, _QUEUE_FLAG_DISCARD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QUEUE_FLAG_DISCARD@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	mov	x1, x19
	cbz	w8, LBB0_5
; %bb.4:
	bl	_queue_flag_set_unlocked
	b	LBB0_6
LBB0_5:
	bl	_queue_flag_clear_unlocked
LBB0_6:
Lloh6:
	adrp	x21, _REQ_FLUSH@GOTPAGE
Lloh7:
	ldr	x21, [x21, _REQ_FLUSH@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_dm_table_supports_flush
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w21, [x21]
Lloh8:
	adrp	x22, _REQ_FUA@GOTPAGE
Lloh9:
	ldr	x22, [x22, _REQ_FUA@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_dm_table_supports_flush
	cbz	x0, LBB0_10
; %bb.8:
	ldr	w8, [x22]
	orr	w21, w8, w21
	b	LBB0_10
LBB0_9:
	mov	w21, #0
LBB0_10:
	mov	x0, x19
	mov	x1, x21
	bl	_blk_queue_flush
	mov	x0, x20
	bl	_dm_table_discard_zeroes_data
	cbnz	w0, LBB0_12
; %bb.11:
	str	xzr, [x19]
LBB0_12:
Lloh10:
	adrp	x8, _device_is_nonrot@GOTPAGE
Lloh11:
	ldr	x8, [x8, _device_is_nonrot@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_dm_table_all_devices_attribute
	mov	x8, x0
Lloh13:
	adrp	x9, _QUEUE_FLAG_NONROT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _QUEUE_FLAG_NONROT@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x9]
	mov	x1, x19
	cbz	x8, LBB0_14
; %bb.13:
	bl	_queue_flag_set_unlocked
	b	LBB0_15
LBB0_14:
	bl	_queue_flag_clear_unlocked
LBB0_15:
	mov	x0, x20
	bl	_dm_table_set_integrity
	mov	x0, x19
	bl	_blk_queue_add_random
	cbz	x0, LBB0_18
; %bb.16:
Lloh16:
	adrp	x8, _device_is_not_random@GOTPAGE
Lloh17:
	ldr	x8, [x8, _device_is_not_random@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_dm_table_all_devices_attribute
	cbz	x0, LBB0_18
; %bb.17:
Lloh19:
	adrp	x8, _QUEUE_FLAG_ADD_RANDOM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _QUEUE_FLAG_ADD_RANDOM@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_queue_flag_clear_unlocked
LBB0_18:
	bl	_smp_mb
	mov	x0, x20
	bl	_dm_table_request_based
	cbz	x0, LBB0_20
; %bb.19:
Lloh22:
	adrp	x8, _QUEUE_FLAG_STACKABLE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _QUEUE_FLAG_STACKABLE@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_queue_flag_set_unlocked
LBB0_20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_QUEUE_FLAG_CLUSTER,4,2         ; @QUEUE_FLAG_CLUSTER
	.comm	_QUEUE_FLAG_DISCARD,4,2         ; @QUEUE_FLAG_DISCARD
	.comm	_REQ_FLUSH,4,2                  ; @REQ_FLUSH
	.comm	_REQ_FUA,4,2                    ; @REQ_FUA
	.comm	_device_is_nonrot,4,2           ; @device_is_nonrot
	.comm	_QUEUE_FLAG_NONROT,4,2          ; @QUEUE_FLAG_NONROT
	.comm	_device_is_not_random,4,2       ; @device_is_not_random
	.comm	_QUEUE_FLAG_ADD_RANDOM,4,2      ; @QUEUE_FLAG_ADD_RANDOM
	.comm	_QUEUE_FLAG_STACKABLE,4,2       ; @QUEUE_FLAG_STACKABLE
.subsections_via_symbols
