	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mptsas_add_device_component_starget
_mptsas_add_device_component_starget:   ## @mptsas_add_device_component_starget
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	8(%rsi), %edi
	callq	_dev_to_rphy
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mptsas_find_phyinfo_by_sas_address
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_MPI_SAS_ENCLOS_PGAD_FORM_HANDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MPI_SAS_ENCLOS_PGAD_FORM_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movl	20(%rbx), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mptsas_sas_enclosure_pg0
	movl	16(%rbx), %esi
	movl	12(%rbx), %edx
	movl	8(%rbx), %ecx
	movl	(%rbx), %r9d
	movl	4(%rbx), %r8d
	movl	-32(%rbp), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	callq	_mptsas_add_device_component
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPI_SAS_ENCLOS_PGAD_FORM_HANDLE,4,2 ## @MPI_SAS_ENCLOS_PGAD_FORM_HANDLE
	.comm	_MPI_SAS_ENCLOS_PGAD_FORM_SHIFT,4,2 ## @MPI_SAS_ENCLOS_PGAD_FORM_SHIFT
	.no_dead_strip	_mptsas_add_device_component_starget
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mptsas_add_device_component_starget
_mptsas_add_device_component_starget:   ; @mptsas_add_device_component_starget
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x1, #8]
	bl	_dev_to_rphy
	ldr	w1, [x0]
	mov	x0, x19
	bl	_mptsas_find_phyinfo_by_sas_address
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _MPI_SAS_ENCLOS_PGAD_FORM_HANDLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPI_SAS_ENCLOS_PGAD_FORM_HANDLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MPI_SAS_ENCLOS_PGAD_FORM_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MPI_SAS_ENCLOS_PGAD_FORM_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w2, w8, w9
	ldr	w3, [x20, #20]
	add	x1, sp, #8
	mov	x0, x19
	bl	_mptsas_sas_enclosure_pg0
	ldp	w2, w1, [x20, #12]
	ldp	w4, w3, [x20, #4]
	ldr	w5, [x20]
	ldr	w6, [sp, #8]
	mov	x0, x19
	bl	_mptsas_add_device_component
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MPI_SAS_ENCLOS_PGAD_FORM_HANDLE,4,2 ; @MPI_SAS_ENCLOS_PGAD_FORM_HANDLE
	.comm	_MPI_SAS_ENCLOS_PGAD_FORM_SHIFT,4,2 ; @MPI_SAS_ENCLOS_PGAD_FORM_SHIFT
	.no_dead_strip	_mptsas_add_device_component_starget
.subsections_via_symbols
