	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_setup_md_queue              ## -- Begin function dm_setup_md_queue
	.p2align	4, 0x90
_dm_setup_md_queue:                     ## @dm_setup_md_queue
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_dm_get_md_type
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_6
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	%r15, %rdi
	callq	_dm_init_normal_md_queue
	movl	4(%r15), %edi
	movq	_dm_make_request@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_blk_queue_make_request
	jmp	LBB0_6
LBB0_2:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_dm_mq_init_request_queue
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_DMERR
	jmp	LBB0_9
LBB0_5:
	movl	$1, %edi
	callq	_WARN_ON_ONCE
LBB0_6:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_dm_calculate_queue_limits
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_DMERR
	jmp	LBB0_9
LBB0_8:
	movl	4(%r15), %esi
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
	callq	_dm_table_set_restrictions
	movl	(%r15), %edi
	callq	_blk_register_queue
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot initialize queue for request-based dm-mq mapped device"

	.comm	_dm_make_request,4,2            ## @dm_make_request
L_.str.1:                               ## @.str.1
	.asciz	"Cannot calculate initial queue limits"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_setup_md_queue              ; -- Begin function dm_setup_md_queue
	.p2align	2
_dm_setup_md_queue:                     ; @dm_setup_md_queue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_dm_get_md_type
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_6
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x19
	bl	_dm_init_normal_md_queue
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x8, _dm_make_request@GOTPAGE
Lloh3:
	ldr	x8, [x8, _dm_make_request@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_blk_queue_make_request
	b	LBB0_6
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_dm_mq_init_request_queue
	cbz	w0, LBB0_6
; %bb.4:
	mov	x21, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
	b	LBB0_9
LBB0_5:
	mov	w0, #1
	bl	_WARN_ON_ONCE
LBB0_6:
	add	x1, sp, #8
	mov	x0, x20
	bl	_dm_calculate_queue_limits
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.7:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DMERR
	b	LBB0_9
LBB0_8:
	ldr	w1, [x19, #4]
	add	x2, sp, #8
	mov	x0, x20
	bl	_dm_table_set_restrictions
	ldr	w0, [x19]
	bl	_blk_register_queue
LBB0_9:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot initialize queue for request-based dm-mq mapped device"

	.comm	_dm_make_request,4,2            ; @dm_make_request
l_.str.1:                               ; @.str.1
	.asciz	"Cannot calculate initial queue limits"

.subsections_via_symbols
