	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mptsas_probe_hba_phys
_mptsas_probe_hba_phys:                 ## @mptsas_probe_hba_phys
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_mptsas_sas_io_unit_pg0
	testl	%eax, %eax
	je	LBB0_2
## %bb.18:
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_19
LBB0_2:
	movq	%r14, %rdi
	callq	_mptsas_sas_io_unit_pg1
	leaq	32(%r14), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	40(%r14), %r12
	testq	%r12, %r12
	je	LBB0_20
## %bb.3:
	movl	(%r15), %ecx
	movq	8(%r15), %rdi
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.4:
	movq	8(%r12), %rax
	imulq	$88, %rcx, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	76(%rdi,%rdx), %esi
	movl	%esi, 76(%rax,%rdx)
	movq	64(%rdi,%rdx), %rsi
	movq	%rsi, 64(%rax,%rdx)
	movl	72(%rdi,%rdx), %esi
	movl	%esi, 72(%rax,%rdx)
	addq	$88, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_5
LBB0_6:
	callq	_kfree
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_7
LBB0_20:
	movq	%r15, 40(%r14)
	movl	(%r15), %eax
	movl	%eax, (%r14)
	movq	%r15, %rdi
	addq	$80, %rdi
	leaq	36(%r14), %rsi
	callq	_list_add_tail
	movq	%r15, %r12
LBB0_7:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	cmpl	$0, (%r12)
	jle	LBB0_14
## %bb.8:
	xorl	%ebx, %ebx
	movq	_MPI_SAS_DEVICE_PGAD_FORM_SHIFT@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r15
	movslq	(%r12), %rax
	addq	$88, %rbx
	cmpq	%rax, %r15
	jge	LBB0_14
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rsi
	addq	%rbx, %rsi
	movq	_MPI_SAS_PHY_PGAD_FORM_PHY_NUMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MPI_SAS_PHY_PGAD_FORM_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	shll	%cl, %edx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_mptsas_sas_phy_pg0
	movq	8(%r12), %rcx
	leaq	(%rcx,%rbx), %rsi
	addq	$40, %rsi
	movq	64(%rcx,%rbx), %rax
	movq	%rax, 48(%rcx,%rbx)
	movq	_MPI_SAS_DEVICE_PGAD_FORM_HANDLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movzbl	(%r13), %ecx
	shll	%cl, %edx
	movq	%r14, %rdi
	movq	%rax, %rcx
	callq	_mptsas_sas_device_pg0
	cmpq	$0, 24(%r14)
	movq	8(%r12), %rcx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	56(%rcx,%rbx), %rax
	movq	%rax, 24(%r14)
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%r15d, 4(%rcx,%rbx)
	movl	%r15d, 40(%rcx,%rbx)
	movq	24(%rcx,%rbx), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%rcx,%rbx), %rsi
	addq	$16, %rsi
	movq	_MPI_SAS_DEVICE_PGAD_FORM_HANDLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movzbl	(%r13), %ecx
	shll	%cl, %edx
	movq	%r14, %rdi
	movq	%rax, %rcx
	callq	_mptsas_sas_device_pg0
	jmp	LBB0_13
LBB0_14:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mptsas_setup_wide_ports
	cmpl	$0, (%r12)
	jle	LBB0_15
## %bb.16:
	movl	8(%r14), %edx
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rdi
	movq	8(%r12), %rsi
	addq	%r15, %rsi
	movl	$1, %ecx
	callq	_mptsas_probe_one_phy
	incq	%rbx
	movl	8(%r14), %edx
	incl	%edx
	movl	%edx, 8(%r14)
	movslq	(%r12), %rax
	addq	$88, %r15
	cmpq	%rax, %rbx
	jl	LBB0_17
	jmp	LBB0_19
LBB0_15:
	xorl	%r13d, %r13d
LBB0_19:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MPI_SAS_PHY_PGAD_FORM_PHY_NUMBER,4,2 ## @MPI_SAS_PHY_PGAD_FORM_PHY_NUMBER
	.comm	_MPI_SAS_PHY_PGAD_FORM_SHIFT,4,2 ## @MPI_SAS_PHY_PGAD_FORM_SHIFT
	.comm	_MPI_SAS_DEVICE_PGAD_FORM_HANDLE,4,2 ## @MPI_SAS_DEVICE_PGAD_FORM_HANDLE
	.comm	_MPI_SAS_DEVICE_PGAD_FORM_SHIFT,4,2 ## @MPI_SAS_DEVICE_PGAD_FORM_SHIFT
	.no_dead_strip	_mptsas_probe_hba_phys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mptsas_probe_hba_phys
_mptsas_probe_hba_phys:                 ; @mptsas_probe_hba_phys
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #88
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_mptsas_sas_io_unit_pg0
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
	mov	x0, x21
	bl	_kfree
	b	LBB0_21
LBB0_3:
	neg	w20, w20
	b	LBB0_21
LBB0_4:
	mov	x0, x19
	bl	_mptsas_sas_io_unit_pg1
	add	x22, x19, #32
	mov	x0, x22
	bl	_mutex_lock
	ldr	x20, [x19, #40]
	cbz	x20, LBB0_9
; %bb.5:
	ldr	w8, [x21]
	ldr	x0, [x21, #8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	ldr	x10, [x20, #8]
	add	x9, x0, #72
	add	x10, x10, #72
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x9, #-8]
	stur	x11, [x10, #-8]
	ldr	d0, [x9], #88
	str	d0, [x10], #88
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	bl	_kfree
	mov	x0, x21
	bl	_kfree
	b	LBB0_10
LBB0_9:
	str	x21, [x19, #40]
	mov	x0, x21
	ldr	w8, [x0], #80
	str	w8, [x19]
	add	x1, x19, #36
	bl	_list_add_tail
	mov	x20, x21
LBB0_10:
	mov	x0, x22
	bl	_mutex_unlock
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.11:
	mov	x22, #0
	mov	x21, #0
Lloh6:
	adrp	x23, _MPI_SAS_PHY_PGAD_FORM_PHY_NUMBER@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MPI_SAS_PHY_PGAD_FORM_PHY_NUMBER@GOTPAGEOFF]
Lloh8:
	adrp	x24, _MPI_SAS_PHY_PGAD_FORM_SHIFT@GOTPAGE
Lloh9:
	ldr	x24, [x24, _MPI_SAS_PHY_PGAD_FORM_SHIFT@GOTPAGEOFF]
Lloh10:
	adrp	x25, _MPI_SAS_DEVICE_PGAD_FORM_HANDLE@GOTPAGE
Lloh11:
	ldr	x25, [x25, _MPI_SAS_DEVICE_PGAD_FORM_HANDLE@GOTPAGEOFF]
Lloh12:
	adrp	x26, _MPI_SAS_DEVICE_PGAD_FORM_SHIFT@GOTPAGE
Lloh13:
	ldr	x26, [x26, _MPI_SAS_DEVICE_PGAD_FORM_SHIFT@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	add	x22, x22, #88
	cmp	x21, x8
	b.ge	LBB0_17
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x1, x8, x22
	ldr	w8, [x23]
	ldr	w9, [x24]
	lsl	w2, w8, w9
	mov	x0, x19
	mov	x3, x21
	bl	_mptsas_sas_phy_pg0
	ldr	x8, [x20, #8]
	add	x8, x8, x22
	ldr	x3, [x8, #64]
	str	x3, [x8, #48]
	add	x1, x8, #40
	ldr	w8, [x25]
	ldr	w9, [x26]
	lsl	w2, w8, w9
	mov	x0, x19
	bl	_mptsas_sas_device_pg0
	ldr	x9, [x19, #24]
	ldr	x8, [x20, #8]
	cbnz	x9, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x9, x8, x22
	ldr	x9, [x9, #56]
	str	x9, [x19, #24]
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x8, x8, x22
	str	w21, [x8, #4]
	str	w21, [x8, #40]
	ldr	x3, [x8, #24]
	cbz	x3, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x1, x8, #16
	ldr	w8, [x25]
	ldr	w9, [x26]
	lsl	w2, w8, w9
	mov	x0, x19
	bl	_mptsas_sas_device_pg0
	b	LBB0_12
LBB0_17:
	mov	x0, x19
	mov	x1, x20
	bl	_mptsas_setup_wide_ports
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.18:
	mov	x21, #0
	mov	x22, #0
	ldr	w2, [x19, #8]
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #16]
	ldr	x8, [x20, #8]
	add	x1, x8, x21
	mov	w3, #1
	bl	_mptsas_probe_one_phy
	add	x22, x22, #1
	ldr	w8, [x19, #8]
	add	w2, w8, #1
	str	w2, [x19, #8]
	ldrsw	x8, [x20]
	add	x21, x21, #88
	cmp	x22, x8
	b.lt	LBB0_19
LBB0_20:
	mov	w20, #0
LBB0_21:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MPI_SAS_PHY_PGAD_FORM_PHY_NUMBER,4,2 ; @MPI_SAS_PHY_PGAD_FORM_PHY_NUMBER
	.comm	_MPI_SAS_PHY_PGAD_FORM_SHIFT,4,2 ; @MPI_SAS_PHY_PGAD_FORM_SHIFT
	.comm	_MPI_SAS_DEVICE_PGAD_FORM_HANDLE,4,2 ; @MPI_SAS_DEVICE_PGAD_FORM_HANDLE
	.comm	_MPI_SAS_DEVICE_PGAD_FORM_SHIFT,4,2 ; @MPI_SAS_DEVICE_PGAD_FORM_SHIFT
	.no_dead_strip	_mptsas_probe_hba_phys
.subsections_via_symbols
