	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd_handler_mi_flush_dw
_cmd_handler_mi_flush_dw:               ## @cmd_handler_mi_flush_dw
	.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	%rdi, %r15
	movq	16(%rdi), %rax
	movq	8(%rax), %rax
	movl	(%rax), %r12d
	movl	$2, %edi
	callq	_CMD_LEN
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_cmd_length
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_gvt_check_valid_cmd_length
	testl	%eax, %eax
	je	LBB0_1
## %bb.12:
	movq	%r15, %rdi
	callq	_cmd_length
	incq	%rbx
	movl	%eax, %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gvt_check_valid_cmd_length     ## TAILCALL
LBB0_1:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_cmd_val
	testl	$49152, %eax                    ## imm = 0xC000
	je	LBB0_8
## %bb.2:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_cmd_val
	testb	$4, %al
	jne	LBB0_3
LBB0_8:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_cmd_val
	testl	$256, %eax                      ## imm = 0x100
	je	LBB0_10
## %bb.9:
	movq	_cmd_interrupt_events@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	8(%r15), %rdx
	movl	(%rax,%rcx,4), %edi
	movl	(%rdx), %esi
	callq	_set_bit
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_cmd_val
	movl	%eax, %ebx
	movl	$31, %edi
	movl	$3, %esi
	callq	_GENMASK
	andl	%ebx, %eax
	movslq	%eax, %r14
	cmpl	$8, %r12d
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_cmd_val
	movl	$15, %edi
	xorl	%esi, %esi
	callq	_GENMASK
LBB0_5:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_cmd_val
	movl	%eax, %ebx
	movl	%eax, %ecx
	shrl	$21, %ecx
	andl	$1, %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_cmd_address_audit
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	testl	$2097152, %ebx                  ## imm = 0x200000
	je	LBB0_8
## %bb.7:
	movq	(%r15), %rax
	movq	16(%r15), %rcx
	movq	(%rcx), %rcx
	addq	(%rcx,%rax,8), %r14
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_cmd_ptr
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_patch_value
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_cmd_val
	andl	$-2097153, %eax                 ## imm = 0xFFDFFFFF
	movslq	%eax, %rbx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_cmd_ptr
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_patch_value
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_cmd_interrupt_events,8,3       ## @cmd_interrupt_events
	.no_dead_strip	_cmd_handler_mi_flush_dw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd_handler_mi_flush_dw
_cmd_handler_mi_flush_dw:               ; @cmd_handler_mi_flush_dw
	.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, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8, #8]
	ldr	w21, [x8]
	mov	w0, #2
	bl	_CMD_LEN
	mov	x20, x0
	mov	x0, x19
	bl	_cmd_length
	mov	x1, x20
	bl	_gvt_check_valid_cmd_length
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_cmd_length
	add	x1, x20, #1
	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	_gvt_check_valid_cmd_length
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	bl	_cmd_val
	tst	w0, #0xc000
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	bl	_cmd_val
	tbnz	w0, #2, LBB0_6
LBB0_4:
	mov	x0, x19
	mov	w1, #0
	bl	_cmd_val
	mov	x8, x0
	mov	w0, #0
	tbz	w8, #8, LBB0_9
; %bb.5:
Lloh0:
	adrp	x8, _cmd_interrupt_events@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cmd_interrupt_events@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x9, x10, [x19]
	ldr	w0, [x8, x9, lsl #2]
	ldr	w1, [x10]
	bl	_set_bit
	mov	w0, #0
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	mov	w1, #1
	bl	_cmd_val
	mov	x20, x0
	mov	w0, #31
	mov	w1, #3
	bl	_GENMASK
	and	w8, w0, w20
	sxtw	x20, w8
	cmp	w21, #8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #2
	bl	_cmd_val
	mov	w0, #15
	mov	w1, #0
	bl	_GENMASK
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	bl	_cmd_val
	mov	x21, x0
	ubfx	w3, w0, #21, #1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #4
	bl	_cmd_address_audit
	cbz	w0, LBB0_10
LBB0_9:
	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_10:
	tbz	w21, #21, LBB0_4
; %bb.11:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
	add	x20, x8, x20
	mov	x0, x19
	mov	w1, #1
	bl	_cmd_ptr
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_patch_value
	mov	x0, x19
	mov	w1, #0
	bl	_cmd_val
	and	w8, w0, #0xffdfffff
	sxtw	x20, w8
	mov	x0, x19
	mov	w1, #0
	bl	_cmd_ptr
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_patch_value
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_cmd_interrupt_events,8,3       ; @cmd_interrupt_events
	.no_dead_strip	_cmd_handler_mi_flush_dw
.subsections_via_symbols
