	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mptsas_send_sas_event
_mptsas_send_sas_event:                 ## @mptsas_send_sas_event
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rdi), %rbx
	movq	8(%rdi), %r14
	movl	24(%rbx), %edi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	movq	_MPI_SAS_DEVICE_INFO_SSP_TARGET@GOTPCREL(%rip), %rax
	movq	_MPI_SAS_DEVICE_INFO_STP_TARGET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MPI_SAS_DEVICE_INFO_SATA_DEVICE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_5
## %bb.1:
	movl	(%rbx), %eax
	cmpl	$132, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$130, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_5
## %bb.4:
	movq	_MPI_SAS_OP_CLEAR_NOT_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mptbase_sas_persist_operation
LBB0_5:
	movq	%r14, %rdi
	movq	%r13, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mptsas_free_fw_event           ## TAILCALL
LBB0_6:
	leaq	-72(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$28, %edx
	callq	_memset
	movl	20(%rbx), %edi
	callq	_le16_to_cpu
	movl	%eax, -48(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -52(%rbp)
	movl	12(%rbx), %eax
	movl	%eax, -56(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -60(%rbp)
	leaq	4(%rbx), %rsi
	leaq	-44(%rbp), %rdi
	movl	$4, %edx
	callq	_memcpy
	movl	-44(%rbp), %edi
	callq	_le64_to_cpu
	movl	%eax, -64(%rbp)
	movl	%r15d, -72(%rbp)
	testb	$-124, (%rbx)
	jne	LBB0_7
## %bb.8:
	movq	_MPTSAS_DEL_DEVICE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_MPTSAS_ADD_DEVICE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_mptsas_hotplug_work
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPI_SAS_DEVICE_INFO_SSP_TARGET,4,2 ## @MPI_SAS_DEVICE_INFO_SSP_TARGET
	.comm	_MPI_SAS_DEVICE_INFO_STP_TARGET,4,2 ## @MPI_SAS_DEVICE_INFO_STP_TARGET
	.comm	_MPI_SAS_DEVICE_INFO_SATA_DEVICE,4,2 ## @MPI_SAS_DEVICE_INFO_SATA_DEVICE
	.comm	_MPI_SAS_OP_CLEAR_NOT_PRESENT,4,2 ## @MPI_SAS_OP_CLEAR_NOT_PRESENT
	.comm	_MPTSAS_ADD_DEVICE,4,2          ## @MPTSAS_ADD_DEVICE
	.comm	_MPTSAS_DEL_DEVICE,4,2          ## @MPTSAS_DEL_DEVICE
	.no_dead_strip	_mptsas_send_sas_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mptsas_send_sas_event
_mptsas_send_sas_event:                 ; @mptsas_send_sas_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	ldp	x22, x20, [x0]
	ldr	w0, [x22, #24]
	bl	_le32_to_cpu
Lloh0:
	adrp	x8, _MPI_SAS_DEVICE_INFO_SSP_TARGET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPI_SAS_DEVICE_INFO_SSP_TARGET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MPI_SAS_DEVICE_INFO_STP_TARGET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MPI_SAS_DEVICE_INFO_STP_TARGET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _MPI_SAS_DEVICE_INFO_SATA_DEVICE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MPI_SAS_DEVICE_INFO_SATA_DEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w0
	b.eq	LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	w8, [x22]
	cmp	w8, #132
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _MPI_SAS_OP_CLEAR_NOT_PRESENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MPI_SAS_OP_CLEAR_NOT_PRESENT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mptbase_sas_persist_operation
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	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
	add	sp, sp, #96
	b	_mptsas_free_fw_event
LBB0_6:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #28
	bl	_memset
	ldr	w0, [x22, #20]
	bl	_le16_to_cpu
	str	w0, [sp, #40]
	ldr	w8, [x22, #16]
	str	w8, [sp, #36]
	ldr	d0, [x22, #8]
	stur	d0, [sp, #28]
	add	x1, x22, #4
	add	x0, sp, #12
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [sp, #12]
	bl	_le64_to_cpu
	str	w0, [sp, #24]
	str	w21, [sp, #16]
Lloh12:
	adrp	x8, _MPTSAS_DEL_DEVICE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MPTSAS_DEL_DEVICE@GOTPAGEOFF]
Lloh14:
	adrp	x9, _MPTSAS_ADD_DEVICE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MPTSAS_ADD_DEVICE@GOTPAGEOFF]
	ldr	w10, [x22]
	mov	w11, #132
	tst	w10, w11
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [sp, #20]
	add	x2, sp, #16
	mov	x0, x20
	mov	x1, x19
	bl	_mptsas_hotplug_work
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MPI_SAS_DEVICE_INFO_SSP_TARGET,4,2 ; @MPI_SAS_DEVICE_INFO_SSP_TARGET
	.comm	_MPI_SAS_DEVICE_INFO_STP_TARGET,4,2 ; @MPI_SAS_DEVICE_INFO_STP_TARGET
	.comm	_MPI_SAS_DEVICE_INFO_SATA_DEVICE,4,2 ; @MPI_SAS_DEVICE_INFO_SATA_DEVICE
	.comm	_MPI_SAS_OP_CLEAR_NOT_PRESENT,4,2 ; @MPI_SAS_OP_CLEAR_NOT_PRESENT
	.comm	_MPTSAS_ADD_DEVICE,4,2          ; @MPTSAS_ADD_DEVICE
	.comm	_MPTSAS_DEL_DEVICE,4,2          ; @MPTSAS_DEL_DEVICE
	.no_dead_strip	_mptsas_send_sas_event
.subsections_via_symbols
