	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_calculate_queue_limits      ## -- Begin function dm_calculate_queue_limits
	.p2align	4, 0x90
_dm_calculate_queue_limits:             ## @dm_calculate_queue_limits
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_BLK_ZONED_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rdi
	callq	_blk_set_stacking_limits
	movq	%r14, %rdi
	callq	_dm_table_get_num_targets
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
	movq	%r14, %rdi
	callq	_dm_table_get_num_targets
	cmpl	%eax, %r15d
	jae	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_blk_set_stacking_limits
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_dm_table_get_target
	movq	%rax, %r12
	movq	16(%rax), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_dm_set_device_limits@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	*%rcx
	movl	-56(%rbp), %r13d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %eax
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	cmpl	%esi, %r13d
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %eax
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_BLK_ZONED_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	cmovnel	%esi, %r13d
	cmovel	%eax, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	16(%r12), %rcx
	movq	8(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	*%rax
	movq	16(%r12), %rcx
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_device_area_is_invalid@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	*(%rcx)
	testq	%rax, %rax
	je	LBB0_5
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %r13d                ## 4-byte Reload
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_blk_stack_limits
	testq	%rax, %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jns	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %edi
	callq	_dm_device_name
	movq	(%r12), %rcx
	movq	8(%r12), %rdx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DMWARN
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %eax
	movq	_BLK_ZONED_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-56(%rbp), %ecx
	cmpl	%eax, %ecx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, (%r13)
	jmp	LBB0_10
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_11:
	movl	(%r13), %eax
	movq	_BLK_ZONED_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	je	LBB0_13
## %bb.12:
	movl	4(%r13), %edx
	movl	%eax, %esi
LBB0_13:
	movq	%r14, %rdi
	callq	_validate_hardware_zoned_model
	testq	%rax, %rax
	je	LBB0_14
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_21
LBB0_14:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_validate_hardware_logical_block_alignment
LBB0_21:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLK_ZONED_NONE,4,2             ## @BLK_ZONED_NONE
	.comm	_dm_set_device_limits,4,2       ## @dm_set_device_limits
	.comm	_device_area_is_invalid,4,2     ## @device_area_is_invalid
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: adding target device (start sect %llu len %llu) caused an alignment inconsistency"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_calculate_queue_limits      ; -- Begin function dm_calculate_queue_limits
	.p2align	2
_dm_calculate_queue_limits:             ; @dm_calculate_queue_limits
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x26, _BLK_ZONED_NONE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _BLK_ZONED_NONE@GOTPAGEOFF]
	ldr	w21, [x26]
	mov	x0, x1
	bl	_blk_set_stacking_limits
	mov	x0, x20
	bl	_dm_table_get_num_targets
	mov	w22, #0
	cbz	w0, LBB0_12
; %bb.1:
	mov	w23, #0
Lloh2:
	adrp	x27, _dm_set_device_limits@GOTPAGE
Lloh3:
	ldr	x27, [x27, _dm_set_device_limits@GOTPAGEOFF]
Lloh4:
	adrp	x28, _device_area_is_invalid@GOTPAGE
Lloh5:
	ldr	x28, [x28, _device_area_is_invalid@GOTPAGEOFF]
Lloh6:
	adrp	x24, l_.str@PAGE
Lloh7:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	mov	x0, x20
	bl	_dm_table_get_num_targets
	cmp	w23, w0
	b.hs	LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_blk_set_stacking_limits
	mov	x0, x20
	mov	x1, x23
	bl	_dm_table_get_target
	mov	x25, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x27]
	add	x2, sp, #8
	mov	x0, x25
	blr	x8
	ldr	w8, [x26]
	ldp	w9, w10, [sp, #8]
	cmp	w9, w21
	csel	w10, w22, w10, eq
	cmp	w21, w8
	csel	w21, w9, w21, eq
	csel	w22, w10, w22, eq
	ldr	x8, [x25, #16]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #8
	mov	x0, x25
	blr	x9
	ldr	x8, [x25, #16]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x8]
	ldr	w1, [x28]
	add	x2, sp, #8
	mov	x0, x25
	blr	x8
	cbnz	x0, LBB0_15
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_blk_stack_limits
	tbz	x0, #63, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20]
	bl	_dm_device_name
	mov	x1, x0
	ldp	x3, x2, [x25]
	mov	x0, x24
	bl	_DMWARN
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x26]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [sp, #8]
	cmp	w9, w8
	b.eq	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	str	w9, [x19]
	b	LBB0_2
LBB0_12:
	ldr	w8, [x19]
	ldr	w9, [x26]
	cmp	w8, w9
	b.eq	LBB0_14
; %bb.13:
	ldr	w22, [x19, #4]
	mov	x21, x8
LBB0_14:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_validate_hardware_zoned_model
	cbz	x0, LBB0_16
LBB0_15:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	bl	_validate_hardware_logical_block_alignment
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BLK_ZONED_NONE,4,2             ; @BLK_ZONED_NONE
	.comm	_dm_set_device_limits,4,2       ; @dm_set_device_limits
	.comm	_device_area_is_invalid,4,2     ; @device_area_is_invalid
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: adding target device (start sect %llu len %llu) caused an alignment inconsistency"

.subsections_via_symbols
