	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mptsas_send_expander_event
_mptsas_send_expander_event:            ## @mptsas_send_expander_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movq	8(%rdi), %rbx
	leaq	24(%r12), %rsi
	leaq	-48(%rbp), %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	-48(%rbp), %rdi
	callq	_le64_to_cpu
	movq	%rax, -48(%rbp)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_mptsas_find_portinfo_by_sas_address
	movq	%rax, %r13
	movq	(%r12), %rax
	movq	_MPI_EVENT_SAS_EXP_RC_ADDED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	testq	%r13, %r13
	je	LBB0_6
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r13)
	jle	LBB0_5
## %bb.3:
	movq	8(%r13), %rcx
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, 24(%rcx,%rbx)
	movl	20(%r12), %edi
	callq	_le16_to_cpu
	movq	8(%r13), %rcx
	movq	%rax, 16(%rcx,%rbx)
	movq	-48(%rbp), %rdi
	callq	_le64_to_cpu
	movq	8(%r13), %rcx
	movq	%rax, 8(%rcx,%rbx)
	movl	16(%r12), %edi
	callq	_le16_to_cpu
	movq	8(%r13), %rcx
	movq	%rax, (%rcx,%rbx)
	incq	%r14
	movslq	(%r13), %rax
	addq	$32, %rbx
	cmpq	%rax, %r14
	jl	LBB0_4
LBB0_5:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_mptsas_expander_refresh
	jmp	LBB0_10
LBB0_8:
	movq	_MPI_EVENT_SAS_EXP_RC_NOT_RESPONDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_mptsas_expander_delete
	jmp	LBB0_10
LBB0_6:
	cmpq	$0, 8(%r12)
	je	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_mptsas_expander_event_add
LBB0_10:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mptsas_free_fw_event
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPI_EVENT_SAS_EXP_RC_ADDED,8,3 ## @MPI_EVENT_SAS_EXP_RC_ADDED
	.comm	_MPI_EVENT_SAS_EXP_RC_NOT_RESPONDING,8,3 ## @MPI_EVENT_SAS_EXP_RC_NOT_RESPONDING
	.no_dead_strip	_mptsas_send_expander_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_expander_event
_mptsas_send_expander_event:            ; @mptsas_send_expander_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldp	x21, x20, [x0]
	add	x1, x21, #24
	add	x0, sp, #8
	mov	w2, #8
	bl	_memcpy
	ldr	x0, [sp, #8]
	bl	_le64_to_cpu
	mov	x1, x0
	str	x0, [sp, #8]
	mov	x0, x20
	bl	_mptsas_find_portinfo_by_sas_address
	mov	x22, x0
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _MPI_EVENT_SAS_EXP_RC_ADDED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MPI_EVENT_SAS_EXP_RC_ADDED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	cbz	x22, LBB0_8
; %bb.2:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x23, #0
	mov	x24, #0
	ldr	x8, [x22, #8]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x23
	str	x22, [x8, #24]
	ldr	w0, [x21, #20]
	bl	_le16_to_cpu
	ldr	x8, [x22, #8]
	add	x8, x8, x23
	str	x0, [x8, #16]
	ldr	x0, [sp, #8]
	bl	_le64_to_cpu
	ldr	x8, [x22, #8]
	add	x8, x8, x23
	str	x0, [x8, #8]
	ldr	w0, [x21, #16]
	bl	_le16_to_cpu
	ldr	x8, [x22, #8]
	str	x0, [x8, x23]
	add	x24, x24, #1
	ldrsw	x9, [x22]
	add	x23, x23, #32
	cmp	x24, x9
	b.lt	LBB0_4
LBB0_5:
	mov	x0, x20
	mov	x1, x22
	bl	_mptsas_expander_refresh
	b	LBB0_10
LBB0_6:
Lloh3:
	adrp	x9, _MPI_EVENT_SAS_EXP_RC_NOT_RESPONDING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MPI_EVENT_SAS_EXP_RC_NOT_RESPONDING@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	_mptsas_expander_delete
	b	LBB0_10
LBB0_8:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	x1, x21
	bl	_mptsas_expander_event_add
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_mptsas_free_fw_event
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MPI_EVENT_SAS_EXP_RC_ADDED,8,3 ; @MPI_EVENT_SAS_EXP_RC_ADDED
	.comm	_MPI_EVENT_SAS_EXP_RC_NOT_RESPONDING,8,3 ; @MPI_EVENT_SAS_EXP_RC_NOT_RESPONDING
	.no_dead_strip	_mptsas_send_expander_event
.subsections_via_symbols
