	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mptsas_refreshing_device_handles
_mptsas_refreshing_device_handles:      ## @mptsas_refreshing_device_handles
	.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, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rsi
	callq	_mptsas_find_phyinfo_by_sas_address
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	(%r15), %r12
	testq	%r12, %r12
	je	LBB0_8
## %bb.2:
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movq	8(%r12), %rcx
	movq	(%rbx), %rdx
	shlq	$5, %rax
	xorl	%esi, %esi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$32, %rsi
	cmpq	%rsi, %rax
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rcx,%rsi)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	24(%rbx), %edi
	movl	%edi, 24(%rcx,%rsi)
	movq	%rdx, (%rcx,%rsi)
	movups	8(%rbx), %xmm0
	movups	%xmm0, 8(%rcx,%rsi)
	jmp	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_8:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mptsas_refreshing_device_handles
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mptsas_refreshing_device_handles
_mptsas_refreshing_device_handles:      ; @mptsas_refreshing_device_handles
	.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	x20, x1
	mov	x19, x0
	ldr	x1, [x1]
	bl	_mptsas_find_phyinfo_by_sas_address
	mov	x21, x0
	cbz	x0, LBB0_8
; %bb.1:
	ldr	x22, [x21]
	cbz	x22, LBB0_8
; %bb.2:
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	ldr	x9, [x22, #8]
	ldr	x10, [x20]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #32
	subs	x8, x8, #1
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cmp	x11, x10
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w11, [x20, #24]
	str	w11, [x9, #24]
	str	x10, [x9]
	ldur	q0, [x20, #8]
	stur	q0, [x9, #8]
	b	LBB0_4
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_8:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mptsas_refreshing_device_handles
.subsections_via_symbols
