	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mptsas_add_device_component_by_fw
_mptsas_add_device_component_by_fw:     ## @mptsas_add_device_component_by_fw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_MPI_SAS_DEVICE_PGAD_FORM_BUS_TARGET_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MPI_SAS_DEVICE_PGAD_FORM_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %rbx
	shll	$8, %esi
	leal	(%rsi,%rdx), %ecx
	leaq	-48(%rbp), %rsi
	movl	%eax, %edx
	callq	_mptsas_sas_device_pg0
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	-24(%rbp), %r14
	movq	%r14, %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	-28(%rbp), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mptsas_sas_enclosure_pg0
	movl	-32(%rbp), %esi
	movl	-36(%rbp), %edx
	movl	-40(%rbp), %ecx
	movl	-48(%rbp), %r9d
	movl	-44(%rbp), %r8d
	movl	-24(%rbp), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	callq	_mptsas_add_device_component
LBB0_2:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPI_SAS_DEVICE_PGAD_FORM_BUS_TARGET_ID,4,2 ## @MPI_SAS_DEVICE_PGAD_FORM_BUS_TARGET_ID
	.comm	_MPI_SAS_DEVICE_PGAD_FORM_SHIFT,4,2 ## @MPI_SAS_DEVICE_PGAD_FORM_SHIFT
	.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_by_fw
.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_by_fw
_mptsas_add_device_component_by_fw:     ; @mptsas_add_device_component_by_fw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _MPI_SAS_DEVICE_PGAD_FORM_BUS_TARGET_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPI_SAS_DEVICE_PGAD_FORM_BUS_TARGET_ID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MPI_SAS_DEVICE_PGAD_FORM_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MPI_SAS_DEVICE_PGAD_FORM_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	add	w3, w2, w1, lsl #8
	add	x1, sp, #8
	mov	x2, x8
	bl	_mptsas_sas_device_pg0
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh6:
	adrp	x8, _MPI_SAS_ENCLOS_PGAD_FORM_HANDLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MPI_SAS_ENCLOS_PGAD_FORM_HANDLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _MPI_SAS_ENCLOS_PGAD_FORM_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MPI_SAS_ENCLOS_PGAD_FORM_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsl	w2, w8, w9
	ldr	w3, [sp, #28]
	mov	x1, sp
	mov	x0, x19
	bl	_mptsas_sas_enclosure_pg0
	ldp	w2, w1, [sp, #20]
	ldp	w4, w3, [sp, #12]
	ldr	w5, [sp, #8]
	ldr	w6, [sp]
	mov	x0, x19
	bl	_mptsas_add_device_component
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MPI_SAS_DEVICE_PGAD_FORM_BUS_TARGET_ID,4,2 ; @MPI_SAS_DEVICE_PGAD_FORM_BUS_TARGET_ID
	.comm	_MPI_SAS_DEVICE_PGAD_FORM_SHIFT,4,2 ; @MPI_SAS_DEVICE_PGAD_FORM_SHIFT
	.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_by_fw
.subsections_via_symbols
