	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mptscsih_change_queue_depth    ## -- Begin function mptscsih_change_queue_depth
	.p2align	4, 0x90
_mptscsih_change_queue_depth:           ## @mptscsih_change_queue_depth
	.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
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	16(%rdi), %edi
	callq	_shost_priv
	movq	(%rax), %r12
	movq	%r15, %rdi
	callq	_scsi_target
	movq	_SCSI_QDEPTH_DEFAULT@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_1
## %bb.2:
	movq	(%r12), %rcx
	movq	_SPI@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.3:
	movq	(%rax), %rax
	movq	_MPT_TARGET_FLAGS_Q_YES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.5:
	movq	(%r15), %rcx
	movq	_TYPE_DISK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.6:
	movq	8(%rax), %rax
	movq	_MPT_ULTRA160@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_7
LBB0_8:
	movq	_MPT_SCSI_CMD_PER_DEV_LOW@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_9:
	movq	8(%r12), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	cmpl	$0, 12(%r15)
	movl	$1, %edx
	cmovnel	%eax, %edx
	cmpl	%r14d, %edx
	cmovgel	%r14d, %edx
	xorl	%esi, %esi
	cmpl	$1, %edx
	je	LBB0_13
## %bb.12:
	movq	_MSG_SIMPLE_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_13:
	movq	%r15, %rdi
	callq	_scsi_adjust_queue_depth
	movl	8(%r15), %eax
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$1, %eax
	jmp	LBB0_11
LBB0_7:
	movq	_MPT_SCSI_CMD_PER_DEV_HIGH@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_SCSI_QDEPTH_DEFAULT,4,2        ## @SCSI_QDEPTH_DEFAULT
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_SPI,8,3                        ## @SPI
	.comm	_MPT_TARGET_FLAGS_Q_YES,4,2     ## @MPT_TARGET_FLAGS_Q_YES
	.comm	_TYPE_DISK,8,3                  ## @TYPE_DISK
	.comm	_MPT_ULTRA160,8,3               ## @MPT_ULTRA160
	.comm	_MPT_SCSI_CMD_PER_DEV_HIGH,4,2  ## @MPT_SCSI_CMD_PER_DEV_HIGH
	.comm	_MPT_SCSI_CMD_PER_DEV_LOW,4,2   ## @MPT_SCSI_CMD_PER_DEV_LOW
	.comm	_MSG_SIMPLE_TAG,4,2             ## @MSG_SIMPLE_TAG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mptscsih_change_queue_depth    ; -- Begin function mptscsih_change_queue_depth
	.p2align	2
_mptscsih_change_queue_depth:           ; @mptscsih_change_queue_depth
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_shost_priv
	ldr	x22, [x0]
	mov	x0, x19
	bl	_scsi_target
Lloh0:
	adrp	x8, _SCSI_QDEPTH_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCSI_QDEPTH_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _SPI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SPI@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	ldr	x8, [x0]
	ldr	w9, [x8]
Lloh6:
	adrp	x10, _MPT_TARGET_FLAGS_Q_YES@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MPT_TARGET_FLAGS_Q_YES@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.3:
	ldr	x9, [x19]
Lloh9:
	adrp	x10, _TYPE_DISK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _TYPE_DISK@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x8, #8]
Lloh12:
	adrp	x9, _MPT_ULTRA160@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MPT_ULTRA160@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_12
LBB0_5:
Lloh15:
	adrp	x8, _MPT_SCSI_CMD_PER_DEV_LOW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MPT_SCSI_CMD_PER_DEV_LOW@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh17:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_7:
	ldr	x8, [x22, #8]
LBB0_8:
	ldr	w8, [x8]
LBB0_9:
	ldr	w9, [x19, #12]
	cmp	w9, #0
	csinc	w8, w8, wzr, ne
	cmp	w8, w20
	csel	w2, w8, w20, lt
Lloh20:
	adrp	x8, _MSG_SIMPLE_TAG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSG_SIMPLE_TAG@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w2, #1
	csel	w1, wzr, w8, eq
	mov	x0, x19
	bl	_scsi_adjust_queue_depth
	ldr	w0, [x19, #8]
LBB0_10:
	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
LBB0_11:
	mov	w8, #1
	b	LBB0_9
LBB0_12:
Lloh23:
	adrp	x8, _MPT_SCSI_CMD_PER_DEV_HIGH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MPT_SCSI_CMD_PER_DEV_HIGH@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_SCSI_QDEPTH_DEFAULT,4,2        ; @SCSI_QDEPTH_DEFAULT
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_SPI,8,3                        ; @SPI
	.comm	_MPT_TARGET_FLAGS_Q_YES,4,2     ; @MPT_TARGET_FLAGS_Q_YES
	.comm	_TYPE_DISK,8,3                  ; @TYPE_DISK
	.comm	_MPT_ULTRA160,8,3               ; @MPT_ULTRA160
	.comm	_MPT_SCSI_CMD_PER_DEV_HIGH,4,2  ; @MPT_SCSI_CMD_PER_DEV_HIGH
	.comm	_MPT_SCSI_CMD_PER_DEV_LOW,4,2   ; @MPT_SCSI_CMD_PER_DEV_LOW
	.comm	_MSG_SIMPLE_TAG,4,2             ; @MSG_SIMPLE_TAG
.subsections_via_symbols
