	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtip_service_thread
_mtip_service_thread:                   ## @mtip_service_thread
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r12d
	shll	$5, %r12d
	movq	8(%rdi), %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_MTIP_PF_SVC_THD_ACTIVE_BIT@GOTPCREL(%rip), %rbx
	movq	_MTIP_PF_ISSUE_CMDS_BIT@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
	movl	(%r15), %eax
	testl	%eax, %eax
	setne	%cl
	movq	_MTIP_PF_PAUSE_IO@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	movl	16(%r15), %edi
	sete	%al
	andb	%cl, %al
	movzbl	%al, %esi
	callq	_wait_event_interruptible
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	jne	LBB0_18
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_MTIP_DDF_REMOVE_PENDING_BIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	_set_bit
	movq	(%r14), %rdi
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r14d, %r14d
	movq	%r12, %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=2
	movb	$1, %r14b
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	8(%r15), %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	callq	_find_next_bit
	movq	%rax, %rbx
	testb	$1, %r14b
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=3
	cmpq	%rbx, %r13
	jae	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=3
	cmpq	%r12, %rbx
	jae	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=3
	xorl	%edi, %edi
	cmpq	%r12, %r13
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	cmovneq	%rbx, %r13
	xorl	%edi, %edi
	cmpq	%r12, %rbx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=3
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mtip_issue_ncq_command
	movq	8(%r15), %rsi
	movq	%rbx, %rdi
	callq	_clear_bit
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_MTIP_PF_ISSUE_CMDS_BIT@GOTPCREL(%rip), %r14
	movq	%r14, %rcx
	movq	_MTIP_PF_SVC_THD_ACTIVE_BIT@GOTPCREL(%rip), %rbx
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rcx), %rdi
	movq	%r15, %rsi
	callq	_clear_bit
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	_clear_bit
	movq	_MTIP_PF_SVC_THD_STOP_BIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_1
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_MTIP_PF_REBUILD_BIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mtip_ftl_rebuild_poll
	movq	_MTIP_PF_REBUILD_BIT@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_MTIP_DDF_REBUILD_FAILED_BIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_bit
	movq	_MTIP_PF_REBUILD_BIT@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_18:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTIP_PF_PAUSE_IO,4,2           ## @MTIP_PF_PAUSE_IO
	.comm	_MTIP_DDF_REMOVE_PENDING_BIT,8,3 ## @MTIP_DDF_REMOVE_PENDING_BIT
	.comm	_MTIP_PF_SVC_THD_ACTIVE_BIT,8,3 ## @MTIP_PF_SVC_THD_ACTIVE_BIT
	.comm	_MTIP_PF_ISSUE_CMDS_BIT,8,3     ## @MTIP_PF_ISSUE_CMDS_BIT
	.comm	_MTIP_PF_REBUILD_BIT,8,3        ## @MTIP_PF_REBUILD_BIT
	.comm	_MTIP_DDF_REBUILD_FAILED_BIT,8,3 ## @MTIP_DDF_REBUILD_FAILED_BIT
	.comm	_MTIP_PF_SVC_THD_STOP_BIT,8,3   ## @MTIP_PF_SVC_THD_STOP_BIT
	.no_dead_strip	_mtip_service_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtip_service_thread
_mtip_service_thread:                   ; @mtip_service_thread
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	ldr	w8, [x0]
	lsl	w25, w8, #5
	ldr	x21, [x0, #8]
	add	x22, x0, #4
Lloh0:
	adrp	x24, _MTIP_PF_PAUSE_IO@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MTIP_PF_PAUSE_IO@GOTPAGEOFF]
Lloh2:
	adrp	x26, _MTIP_PF_SVC_THD_ACTIVE_BIT@GOTPAGE
Lloh3:
	ldr	x26, [x26, _MTIP_PF_SVC_THD_ACTIVE_BIT@GOTPAGEOFF]
Lloh4:
	adrp	x27, _MTIP_PF_ISSUE_CMDS_BIT@GOTPAGE
Lloh5:
	ldr	x27, [x27, _MTIP_PF_ISSUE_CMDS_BIT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_7 Depth 3
	ldr	w0, [x21, #16]
	ldr	w8, [x21]
	ldr	w9, [x24]
	tst	w9, w8
	ccmp	w8, #0, #4, eq
	cset	w1, ne
	bl	_wait_event_interruptible
	bl	_kthread_should_stop
	cbnz	x0, LBB0_17
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh6:
	adrp	x8, _MTIP_DDF_REMOVE_PENDING_BIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MTIP_DDF_REMOVE_PENDING_BIT@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	mov	x1, x22
	bl	_test_bit
	bl	_unlikely
	cbnz	x0, LBB0_17
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x26]
	mov	x1, x21
	bl	_set_bit
	ldr	x0, [x27]
	mov	x1, x21
	bl	_test_bit
	cbz	w0, LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w28, #0
	mov	x20, x25
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	w28, #1
LBB0_6:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_7 Depth 3
	mov	w23, #1
LBB0_7:                                 ;   Parent Loop BB0_1 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x0, [x21, #8]
	mov	x1, x25
	mov	x2, x23
	bl	_find_next_bit
	mov	x23, x0
	tbz	w28, #0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=3
	cmp	x20, x23
	ccmp	x23, x25, #2, lo
	b.hs	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=3
	cmp	x20, x25
	cset	w0, eq
	bl	_unlikely
	cmp	x0, #0
	csel	x20, x20, x23, eq
	cmp	x23, x25
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=3
	mov	x0, x21
	mov	x1, x23
	bl	_mtip_issue_ncq_command
	ldr	x1, [x21, #8]
	mov	x0, x23
	bl	_clear_bit
	b	LBB0_7
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x8, x27
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x8]
	mov	x1, x21
	bl	_clear_bit
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x26]
	mov	x1, x21
	bl	_clear_bit
Lloh9:
	adrp	x8, _MTIP_PF_SVC_THD_STOP_BIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MTIP_PF_SVC_THD_STOP_BIT@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	w0, LBB0_1
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh12:
	adrp	x8, _MTIP_PF_REBUILD_BIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MTIP_PF_REBUILD_BIT@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	w0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_mtip_ftl_rebuild_poll
Lloh15:
	adrp	x8, _MTIP_PF_REBUILD_BIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MTIP_PF_REBUILD_BIT@GOTPAGEOFF]
	cbnz	w0, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_1 Depth=1
Lloh17:
	adrp	x8, _MTIP_DDF_REBUILD_FAILED_BIT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MTIP_DDF_REBUILD_FAILED_BIT@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
	mov	x1, x22
	bl	_set_bit
Lloh20:
	adrp	x8, _MTIP_PF_REBUILD_BIT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MTIP_PF_REBUILD_BIT@GOTPAGEOFF]
	b	LBB0_12
LBB0_17:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MTIP_PF_PAUSE_IO,4,2           ; @MTIP_PF_PAUSE_IO
	.comm	_MTIP_DDF_REMOVE_PENDING_BIT,8,3 ; @MTIP_DDF_REMOVE_PENDING_BIT
	.comm	_MTIP_PF_SVC_THD_ACTIVE_BIT,8,3 ; @MTIP_PF_SVC_THD_ACTIVE_BIT
	.comm	_MTIP_PF_ISSUE_CMDS_BIT,8,3     ; @MTIP_PF_ISSUE_CMDS_BIT
	.comm	_MTIP_PF_REBUILD_BIT,8,3        ; @MTIP_PF_REBUILD_BIT
	.comm	_MTIP_DDF_REBUILD_FAILED_BIT,8,3 ; @MTIP_DDF_REBUILD_FAILED_BIT
	.comm	_MTIP_PF_SVC_THD_STOP_BIT,8,3   ; @MTIP_PF_SVC_THD_STOP_BIT
	.no_dead_strip	_mtip_service_thread
.subsections_via_symbols
