	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mptspi_event_process
_mptspi_event_process:                  ## @mptspi_event_process
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	8(%rsi), %edi
	callq	_le32_to_cpu
	movl	%eax, %r12d
	movl	8(%rbx), %edi
	callq	_shost_priv
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	_SPI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	testq	%r15, %r15
	je	LBB0_5
## %bb.2:
	movzbl	%r12b, %eax
	movq	_MPI_EVENT_INTEGRATED_RAID@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_5
## %bb.3:
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	shrl	$16, %eax
	movzbl	%al, %eax
	movq	_MPI_EVENT_RAID_RC_DOMAIN_VAL_NEEDED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	shrl	$24, %eax
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mpt_dv_raid
LBB0_5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mptscsih_event_process         ## TAILCALL
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI,8,3                        ## @SPI
	.comm	_MPI_EVENT_INTEGRATED_RAID,8,3  ## @MPI_EVENT_INTEGRATED_RAID
	.comm	_MPI_EVENT_RAID_RC_DOMAIN_VAL_NEEDED,4,2 ## @MPI_EVENT_RAID_RC_DOMAIN_VAL_NEEDED
	.no_dead_strip	_mptspi_event_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mptspi_event_process
_mptspi_event_process:                  ; @mptspi_event_process
	.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, x1
	mov	x20, x0
	ldr	w0, [x1, #8]
	bl	_le32_to_cpu
	mov	x22, x0
	ldr	w0, [x20, #8]
	bl	_shost_priv
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _SPI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SPI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x21, x0
	and	w8, w22, #0xff
Lloh3:
	adrp	x9, _MPI_EVENT_INTEGRATED_RAID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MPI_EVENT_INTEGRATED_RAID@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x0, #0
	ccmp	x9, x8, #0, ne
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	lsr	w8, w0, #16
Lloh6:
	adrp	x9, _MPI_EVENT_RAID_RC_DOMAIN_VAL_NEEDED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MPI_EVENT_RAID_RC_DOMAIN_VAL_NEEDED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w9, w8, uxtb
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	lsr	w1, w0, #24
	mov	x0, x21
	bl	_mpt_dv_raid
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	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	_mptscsih_event_process
LBB0_5:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI,8,3                        ; @SPI
	.comm	_MPI_EVENT_INTEGRATED_RAID,8,3  ; @MPI_EVENT_INTEGRATED_RAID
	.comm	_MPI_EVENT_RAID_RC_DOMAIN_VAL_NEEDED,4,2 ; @MPI_EVENT_RAID_RC_DOMAIN_VAL_NEEDED
	.no_dead_strip	_mptspi_event_process
.subsections_via_symbols
