	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_adapter
_show_adapter:                          ## @show_adapter
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$1, %edi
	jne	LBB0_1
## %bb.3:
	movq	_mps_unit@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_mps_open
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	movl	%eax, %r14d
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_mps_read_man_page
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	cmpl	$15, 60(%rax)
	ja	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	callq	_warnx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_31
LBB0_7:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
LBB0_10:
	movq	_is_mps@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	(%r15), %edx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	(%rbx), %rsi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	8(%rbx), %rsi
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	16(%rbx), %rsi
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	24(%rbx), %rsi
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %rdi
	callq	_free
	movq	_MPI2_CONFIG_PAGETYPE_BIOS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movl	$3, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_mps_read_config_page
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %rbx
	movl	32(%rax), %eax
	movl	%eax, %edx
	movzbl	%ah, %ecx
	movzbl	%al, %r8d
	shrl	$24, %eax
	shrl	$16, %edx
	movzbl	%dl, %edx
	leaq	L_.str.12(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %rdi
	callq	_free
	movl	%r14d, %edi
	callq	_mps_get_iocfacts
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %rbx
	movl	56(%rax), %eax
	movl	%eax, %edx
	movzbl	%ah, %ecx
	movzbl	%al, %r8d
	shrl	$24, %eax
	shrl	$16, %edx
	movzbl	%dl, %edx
	leaq	L_.str.14(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	_MPI2_IOCFACTS_CAPABILITY_INTEGRATED_RAID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	36(%rbx), %eax
	leaq	L_.str.17(%rip), %rax
	leaq	L_.str.16(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.15(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	%rbx, %rdi
	callq	_free
	movl	(%r15), %edi
	callq	_mps_open
	testl	%eax, %eax
	js	LBB0_4
## %bb.15:
	movl	%eax, %r14d
	movq	_MPI2_CONFIG_EXTPAGETYPE_SAS_IO_UNIT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_MPI2_SASIOUNITPAGE0_PAGEVERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %r9
	movl	%r14d, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_mps_read_extended_config_page
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_16
## %bb.18:
	movl	(%rbx), %esi
	movq	_MPI2_SASIOUNITPAGE1_PAGEVERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %r9
	movl	%r14d, %edi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_mps_read_extended_config_page
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movl	$10, %edi
	callq	_putchar
	subq	$8, %rsp
	leaq	L_.str.28(%rip), %r10
	leaq	L_.str.27(%rip), %r11
	leaq	L_.str.26(%rip), %r14
	leaq	L_.str.20(%rip), %rdi
	leaq	L_.str.21(%rip), %rsi
	leaq	L_.str.22(%rip), %rdx
	leaq	L_.str.23(%rip), %rcx
	leaq	L_.str.24(%rip), %r8
	leaq	L_.str.25(%rip), %r9
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	pushq	%r10
	pushq	%r11
	pushq	%r14
	callq	_printf
	addq	$32, %rsp
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	cmpl	$0, 40(%r14)
	jle	LBB0_29
## %bb.21:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_22
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
	xorl	%eax, %eax
	callq	_warn
LBB0_31:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:                                ##   in Loop: Header=BB0_22 Depth=1
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_28:                                ##   in Loop: Header=BB0_22 Depth=1
	incq	%r13
	movslq	40(%r14), %rax
	addq	$40, %r12
	cmpq	%rax, %r13
	jge	LBB0_29
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	48(%r14), %r15
	movq	_MPI2_SASIOUNIT0_PORTFLAGS_DISCOVERY_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15,%r12)
	jne	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	_MPI2_SASIOUNIT0_PHYFLAGS_PHY_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%r15,%r12), %eax
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	48(%rax), %r14
	leaq	L_.str.30(%rip), %rcx
	leaq	L_.str.31(%rip), %rax
	cmoveq	%rax, %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movl	8(%r14,%r12), %edi
	callq	_get_device_speed
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	8(%r14,%r12), %edi
	sarl	$4, %edi
	callq	_get_device_speed
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	32(%r15,%r12), %edi
	callq	_get_device_type
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	16(%r15,%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	leaq	-73(%rbp), %r14
	movq	%r14, %rdi
	movl	$5, %esi
	leaq	L_.str.32(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movl	24(%r15,%r12), %ecx
	leaq	-49(%rbp), %rdi
	movl	$5, %esi
	leaq	L_.str.32(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movl	28(%r15,%r12), %edi
	callq	_get_device_speed
	movq	%rax, %r9
	jmp	LBB0_27
LBB0_26:                                ##   in Loop: Header=BB0_22 Depth=1
	leaq	-73(%rbp), %r15
	movq	%r15, %rdi
	movl	$5, %esi
	leaq	L_.str.33(%rip), %r14
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_snprintf
	leaq	-49(%rbp), %rdi
	movl	$5, %esi
	movq	%r14, %rdx
	movq	%r15, %r14
	xorl	%eax, %eax
	callq	_snprintf
	leaq	L_.str.34(%rip), %r9
LBB0_27:                                ##   in Loop: Header=BB0_22 Depth=1
	subq	$8, %rsp
	leaq	L_.str.35(%rip), %rdi
	movl	%r13d, %esi
	leaq	-49(%rbp), %rdx
	movq	%r14, %rcx
	movq	-120(%rbp), %r8                 ## 8-byte Reload
	xorl	%eax, %eax
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	callq	_printf
	addq	$32, %rsp
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_28
LBB0_11:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.11(%rip), %rdi
	jmp	LBB0_5
LBB0_13:
	leaq	L_str.36(%rip), %rdi
	callq	_puts
	movl	%r14d, %edi
	callq	_close
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_31
LBB0_29:
	movq	%r14, %rdi
	callq	_free
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movl	$10, %edi
	callq	_putchar
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_30
LBB0_16:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-44(%rbp), %esi
	leaq	L_.str.18(%rip), %rdi
	xorl	%eax, %eax
	callq	_warn
	xorl	%edi, %edi
	jmp	LBB0_17
LBB0_19:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-44(%rbp), %esi
	leaq	L_.str.18(%rip), %rdi
	xorl	%eax, %eax
	callq	_warn
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_17:
	callq	_free
	movl	%r14d, %edi
LBB0_30:
	callq	_close
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"show adapter: extra arguments"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_mps_unit,4,2                   ## @mps_unit
	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"mps_open"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to get controller info"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid controller info"

L_.str.4:                               ## @.str.4
	.asciz	"mp%s%d Adapter:\n"

	.comm	_is_mps,8,3                     ## @is_mps
L_.str.5:                               ## @.str.5
	.asciz	"s"

L_.str.6:                               ## @.str.6
	.asciz	"r"

L_.str.7:                               ## @.str.7
	.asciz	"       Board Name: %.16s\n"

L_.str.8:                               ## @.str.8
	.asciz	"   Board Assembly: %.16s\n"

L_.str.9:                               ## @.str.9
	.asciz	"        Chip Name: %.16s\n"

L_.str.10:                              ## @.str.10
	.asciz	"    Chip Revision: %.16s\n"

	.comm	_MPI2_CONFIG_PAGETYPE_BIOS,4,2  ## @MPI2_CONFIG_PAGETYPE_BIOS
L_.str.11:                              ## @.str.11
	.asciz	"Failed to get BIOS page 3 info"

L_.str.12:                              ## @.str.12
	.asciz	"    BIOS Revision: %d.%02d.%02d.%02d\n"

L_.str.14:                              ## @.str.14
	.asciz	"Firmware Revision: %d.%02d.%02d.%02d\n"

L_.str.15:                              ## @.str.15
	.asciz	"  Integrated RAID: %s\n"

	.comm	_MPI2_IOCFACTS_CAPABILITY_INTEGRATED_RAID,4,2 ## @MPI2_IOCFACTS_CAPABILITY_INTEGRATED_RAID
L_.str.16:                              ## @.str.16
	.asciz	"yes"

L_.str.17:                              ## @.str.17
	.asciz	"no"

	.comm	_MPI2_CONFIG_EXTPAGETYPE_SAS_IO_UNIT,4,2 ## @MPI2_CONFIG_EXTPAGETYPE_SAS_IO_UNIT
	.comm	_MPI2_SASIOUNITPAGE0_PAGEVERSION,4,2 ## @MPI2_SASIOUNITPAGE0_PAGEVERSION
L_.str.18:                              ## @.str.18
	.asciz	"Error retrieving SAS IO Unit page %d"

	.comm	_MPI2_SASIOUNITPAGE1_PAGEVERSION,4,2 ## @MPI2_SASIOUNITPAGE1_PAGEVERSION
L_.str.20:                              ## @.str.20
	.asciz	"%-8s%-12s%-11s%-10s%-8s%-7s%-7s%s\n"

L_.str.21:                              ## @.str.21
	.asciz	"PhyNum"

L_.str.22:                              ## @.str.22
	.asciz	"CtlrHandle"

L_.str.23:                              ## @.str.23
	.asciz	"DevHandle"

L_.str.24:                              ## @.str.24
	.asciz	"Disabled"

L_.str.25:                              ## @.str.25
	.asciz	"Speed"

L_.str.26:                              ## @.str.26
	.asciz	"Min"

L_.str.27:                              ## @.str.27
	.asciz	"Max"

L_.str.28:                              ## @.str.28
	.asciz	"Device"

	.comm	_MPI2_SASIOUNIT0_PORTFLAGS_DISCOVERY_IN_PROGRESS,4,2 ## @MPI2_SASIOUNIT0_PORTFLAGS_DISCOVERY_IN_PROGRESS
	.comm	_MPI2_SASIOUNIT0_PHYFLAGS_PHY_DISABLED,4,2 ## @MPI2_SASIOUNIT0_PHYFLAGS_PHY_DISABLED
L_.str.30:                              ## @.str.30
	.asciz	"Y"

L_.str.31:                              ## @.str.31
	.asciz	"N"

L_.str.32:                              ## @.str.32
	.asciz	"%04x"

L_.str.33:                              ## @.str.33
	.asciz	"    "

L_.str.34:                              ## @.str.34
	.asciz	"     "

L_.str.35:                              ## @.str.35
	.asciz	"%-8d%-12s%-11s%-10s%-8s%-7s%-7s%s\n"

L_str:                                  ## @str
	.asciz	"Discovery still in progress"

L_str.36:                               ## @str.36
	.asciz	"could not get controller IOCFacts"

	.no_dead_strip	_show_adapter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_adapter
_show_adapter:                          ; @show_adapter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.1:
Lloh0:
	adrp	x21, _mps_unit@GOTPAGE
Lloh1:
	ldr	x21, [x21, _mps_unit@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_mps_open
	tbnz	w0, #31, LBB0_15
; %bb.2:
	mov	x19, x0
	mov	w1, #0
	mov	x2, #0
	bl	_mps_read_man_page
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
	ldr	w8, [x0, #60]
	cmp	w8, #15
	b.hi	LBB0_8
; %bb.4:
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
LBB0_6:
	bl	_warnx
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	b	LBB0_17
LBB0_7:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_8:
Lloh14:
	adrp	x8, _is_mps@GOTPAGE
Lloh15:
	ldr	x8, [x8, _is_mps@GOTPAGEOFF]
Lloh16:
	adrp	x9, l_.str.5@PAGE
Lloh17:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x10, l_.str.6@PAGE
Lloh20:
	add	x10, x10, l_.str.6@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w9, [x21]
	stp	x8, x9, [sp]
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	ldr	x8, [x20]
	str	x8, [sp]
Lloh23:
	adrp	x0, l_.str.7@PAGE
Lloh24:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
	ldr	x8, [x20, #8]
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.8@PAGE
Lloh26:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
	ldr	x8, [x20, #16]
	str	x8, [sp]
Lloh27:
	adrp	x0, l_.str.9@PAGE
Lloh28:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_printf
	ldr	x8, [x20, #24]
	str	x8, [sp]
Lloh29:
	adrp	x0, l_.str.10@PAGE
Lloh30:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_printf
	mov	x0, x20
	bl	_free
Lloh31:
	adrp	x8, _MPI2_CONFIG_PAGETYPE_BIOS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MPI2_CONFIG_PAGETYPE_BIOS@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #3
	mov	w3, #0
	mov	x4, #0
	bl	_mps_read_config_page
	cbz	x0, LBB0_25
; %bb.9:
	mov	x20, x0
	ldr	w8, [x0, #32]
	lsr	w9, w8, #24
	ubfx	w10, w8, #16, #8
	ubfx	w11, w8, #8, #8
	and	w8, w8, #0xff
	stp	x11, x8, [sp, #16]
	stp	x9, x10, [sp]
Lloh34:
	adrp	x0, l_.str.12@PAGE
Lloh35:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_printf
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_mps_get_iocfacts
	cbz	x0, LBB0_26
; %bb.10:
	mov	x20, x0
	ldr	w8, [x0, #56]
	lsr	w9, w8, #24
	ubfx	w10, w8, #16, #8
	ubfx	w11, w8, #8, #8
	and	w8, w8, #0xff
	stp	x11, x8, [sp, #16]
	stp	x9, x10, [sp]
Lloh36:
	adrp	x0, l_.str.14@PAGE
Lloh37:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_printf
	ldr	w8, [x20, #36]
Lloh38:
	adrp	x9, _MPI2_IOCFACTS_CAPABILITY_INTEGRATED_RAID@GOTPAGE
Lloh39:
	ldr	x9, [x9, _MPI2_IOCFACTS_CAPABILITY_INTEGRATED_RAID@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
Lloh41:
	adrp	x10, l_.str.16@PAGE
Lloh42:
	add	x10, x10, l_.str.16@PAGEOFF
Lloh43:
	adrp	x11, l_.str.17@PAGE
Lloh44:
	add	x11, x11, l_.str.17@PAGEOFF
	tst	w9, w8
	csel	x8, x11, x10, eq
	str	x8, [sp]
Lloh45:
	adrp	x0, l_.str.15@PAGE
Lloh46:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_printf
	mov	x0, x20
	bl	_free
	ldr	w0, [x21]
	bl	_mps_open
	tbnz	w0, #31, LBB0_15
; %bb.11:
	mov	x22, x0
Lloh47:
	adrp	x19, _MPI2_CONFIG_EXTPAGETYPE_SAS_IO_UNIT@GOTPAGE
Lloh48:
	ldr	x19, [x19, _MPI2_CONFIG_EXTPAGETYPE_SAS_IO_UNIT@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh49:
	adrp	x8, _MPI2_SASIOUNITPAGE0_PAGEVERSION@GOTPAGE
Lloh50:
	ldr	x8, [x8, _MPI2_SASIOUNITPAGE0_PAGEVERSION@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
	sub	x5, x29, #84
	mov	w3, #0
	mov	w4, #0
	bl	_mps_read_extended_config_page
	cbz	x0, LBB0_28
; %bb.12:
	mov	x20, x0
	ldr	w1, [x19]
Lloh52:
	adrp	x8, _MPI2_SASIOUNITPAGE1_PAGEVERSION@GOTPAGE
Lloh53:
	ldr	x8, [x8, _MPI2_SASIOUNITPAGE1_PAGEVERSION@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
	sub	x5, x29, #84
	mov	x0, x22
	mov	w3, #1
	mov	w4, #0
	bl	_mps_read_extended_config_page
	cbz	x0, LBB0_29
; %bb.13:
	mov	x21, x0
	str	w22, [sp, #76]                  ; 4-byte Folded Spill
	mov	w0, #10
	bl	_putchar
Lloh55:
	adrp	x8, l_.str.28@PAGE
Lloh56:
	add	x8, x8, l_.str.28@PAGEOFF
Lloh57:
	adrp	x9, l_.str.27@PAGE
Lloh58:
	add	x9, x9, l_.str.27@PAGEOFF
Lloh59:
	adrp	x10, l_.str.26@PAGE
Lloh60:
	add	x10, x10, l_.str.26@PAGEOFF
Lloh61:
	adrp	x11, l_.str.25@PAGE
Lloh62:
	add	x11, x11, l_.str.25@PAGEOFF
	stp	x9, x8, [sp, #48]
Lloh63:
	adrp	x8, l_.str.24@PAGE
Lloh64:
	add	x8, x8, l_.str.24@PAGEOFF
Lloh65:
	adrp	x9, l_.str.23@PAGE
Lloh66:
	add	x9, x9, l_.str.23@PAGEOFF
	stp	x11, x10, [sp, #32]
Lloh67:
	adrp	x10, l_.str.22@PAGE
Lloh68:
	add	x10, x10, l_.str.22@PAGEOFF
Lloh69:
	adrp	x11, l_.str.21@PAGE
Lloh70:
	add	x11, x11, l_.str.21@PAGEOFF
	stp	x9, x8, [sp, #16]
	stp	x11, x10, [sp]
Lloh71:
	adrp	x0, l_.str.20@PAGE
Lloh72:
	add	x0, x0, l_.str.20@PAGEOFF
	bl	_printf
	ldr	w8, [x20, #40]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.14:
	mov	x22, #0
	mov	x23, #0
Lloh73:
	adrp	x24, _MPI2_SASIOUNIT0_PORTFLAGS_DISCOVERY_IN_PROGRESS@GOTPAGE
Lloh74:
	ldr	x24, [x24, _MPI2_SASIOUNIT0_PORTFLAGS_DISCOVERY_IN_PROGRESS@GOTPAGEOFF]
Lloh75:
	adrp	x25, l_str@PAGE
Lloh76:
	add	x25, x25, l_str@PAGEOFF
	str	x20, [sp, #80]                  ; 8-byte Folded Spill
	b	LBB0_20
LBB0_15:
Lloh77:
	adrp	x8, _errno@GOTPAGE
Lloh78:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh79:
	ldr	w21, [x8]
Lloh80:
	adrp	x0, l_.str.1@PAGE
Lloh81:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_16:
	bl	_warn
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x25
	bl	_puts
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x20, #40]
	add	x22, x22, #40
	cmp	x23, x8
	b.ge	LBB0_27
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #48]
	ldr	w9, [x8, x22]
	ldr	w10, [x24]
	tst	w10, w9
	b.ne	LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x9, [x21, #48]
	add	x19, x8, x22
	ldr	w8, [x19, #4]
Lloh82:
	adrp	x10, _MPI2_SASIOUNIT0_PHYFLAGS_PHY_DISABLED@GOTPAGE
Lloh83:
	ldr	x10, [x10, _MPI2_SASIOUNIT0_PHYFLAGS_PHY_DISABLED@GOTPAGEOFF]
Lloh84:
	ldr	w10, [x10]
	tst	w10, w8
Lloh85:
	adrp	x8, l_.str.30@PAGE
Lloh86:
	add	x8, x8, l_.str.30@PAGEOFF
Lloh87:
	adrp	x10, l_.str.31@PAGE
Lloh88:
	add	x10, x10, l_.str.31@PAGEOFF
	csel	x26, x10, x8, eq
	add	x27, x9, x22
	ldr	w0, [x27, #8]
	bl	_get_device_speed
	str	x0, [sp, #88]                   ; 8-byte Folded Spill
	ldr	w8, [x27, #8]
	asr	w0, w8, #4
	bl	_get_device_speed
	mov	x27, x0
	ldr	w0, [x19, #32]
	bl	_get_device_type
	mov	x28, x0
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	str	x8, [sp]
	sub	x0, x29, #89
	mov	w1, #5
	mov	x20, x28
	mov	x28, x27
	mov	x27, x26
	mov	x26, x25
	mov	x25, x24
	mov	x24, x21
Lloh89:
	adrp	x21, l_.str.32@PAGE
Lloh90:
	add	x21, x21, l_.str.32@PAGEOFF
	mov	x2, x21
	bl	_snprintf
	ldr	w8, [x19, #24]
	str	x8, [sp]
	sub	x0, x29, #94
	mov	w1, #5
	mov	x2, x21
	mov	x21, x24
	mov	x24, x25
	mov	x25, x26
	mov	x26, x27
	mov	x27, x28
	mov	x28, x20
	ldr	x20, [sp, #80]                  ; 8-byte Folded Reload
	bl	_snprintf
	ldr	w0, [x19, #28]
	bl	_get_device_speed
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=1
	sub	x0, x29, #89
	mov	w1, #5
Lloh91:
	adrp	x19, l_.str.33@PAGE
Lloh92:
	add	x19, x19, l_.str.33@PAGEOFF
	mov	x2, x19
	bl	_snprintf
	sub	x0, x29, #94
	mov	w1, #5
	mov	x2, x19
	bl	_snprintf
Lloh93:
	adrp	x0, l_.str.34@PAGE
Lloh94:
	add	x0, x0, l_.str.34@PAGEOFF
LBB0_24:                                ;   in Loop: Header=BB0_20 Depth=1
	stp	x27, x28, [sp, #48]
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	stp	x0, x8, [sp, #32]
	sub	x8, x29, #89
	stp	x8, x26, [sp, #16]
	sub	x8, x29, #94
	stp	x23, x8, [sp]
Lloh95:
	adrp	x0, l_.str.35@PAGE
Lloh96:
	add	x0, x0, l_.str.35@PAGEOFF
	bl	_printf
	b	LBB0_19
LBB0_25:
Lloh97:
	adrp	x8, _errno@GOTPAGE
Lloh98:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh99:
	ldr	w21, [x8]
Lloh100:
	adrp	x0, l_.str.11@PAGE
Lloh101:
	add	x0, x0, l_.str.11@PAGEOFF
	b	LBB0_16
LBB0_26:
Lloh102:
	adrp	x0, l_str.36@PAGE
Lloh103:
	add	x0, x0, l_str.36@PAGEOFF
	bl	_puts
	mov	x0, x19
	bl	_close
Lloh104:
	adrp	x8, _errno@GOTPAGE
Lloh105:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh106:
	ldr	w21, [x8]
	b	LBB0_17
LBB0_27:
	mov	x0, x20
	bl	_free
	mov	x0, x21
	bl	_free
	mov	w0, #10
	bl	_putchar
	ldr	w0, [sp, #76]                   ; 4-byte Folded Reload
	bl	_close
	mov	w21, #0
	b	LBB0_17
LBB0_28:
Lloh107:
	adrp	x8, _errno@GOTPAGE
Lloh108:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh109:
	ldr	w21, [x8]
	ldur	w8, [x29, #-84]
	str	x8, [sp]
Lloh110:
	adrp	x0, l_.str.18@PAGE
Lloh111:
	add	x0, x0, l_.str.18@PAGEOFF
	bl	_warn
	mov	x0, #0
	b	LBB0_30
LBB0_29:
Lloh112:
	adrp	x8, _errno@GOTPAGE
Lloh113:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh114:
	ldr	w21, [x8]
	ldur	w8, [x29, #-84]
	str	x8, [sp]
Lloh115:
	adrp	x0, l_.str.18@PAGE
Lloh116:
	add	x0, x0, l_.str.18@PAGEOFF
	bl	_warn
	mov	x0, x20
LBB0_30:
	bl	_free
	mov	x0, x22
	bl	_close
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpAdd	Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpAdd	Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"show adapter: extra arguments"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_mps_unit,4,2                   ; @mps_unit
	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"mps_open"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to get controller info"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid controller info"

l_.str.4:                               ; @.str.4
	.asciz	"mp%s%d Adapter:\n"

	.comm	_is_mps,8,3                     ; @is_mps
l_.str.5:                               ; @.str.5
	.asciz	"s"

l_.str.6:                               ; @.str.6
	.asciz	"r"

l_.str.7:                               ; @.str.7
	.asciz	"       Board Name: %.16s\n"

l_.str.8:                               ; @.str.8
	.asciz	"   Board Assembly: %.16s\n"

l_.str.9:                               ; @.str.9
	.asciz	"        Chip Name: %.16s\n"

l_.str.10:                              ; @.str.10
	.asciz	"    Chip Revision: %.16s\n"

	.comm	_MPI2_CONFIG_PAGETYPE_BIOS,4,2  ; @MPI2_CONFIG_PAGETYPE_BIOS
l_.str.11:                              ; @.str.11
	.asciz	"Failed to get BIOS page 3 info"

l_.str.12:                              ; @.str.12
	.asciz	"    BIOS Revision: %d.%02d.%02d.%02d\n"

l_.str.14:                              ; @.str.14
	.asciz	"Firmware Revision: %d.%02d.%02d.%02d\n"

l_.str.15:                              ; @.str.15
	.asciz	"  Integrated RAID: %s\n"

	.comm	_MPI2_IOCFACTS_CAPABILITY_INTEGRATED_RAID,4,2 ; @MPI2_IOCFACTS_CAPABILITY_INTEGRATED_RAID
l_.str.16:                              ; @.str.16
	.asciz	"yes"

l_.str.17:                              ; @.str.17
	.asciz	"no"

	.comm	_MPI2_CONFIG_EXTPAGETYPE_SAS_IO_UNIT,4,2 ; @MPI2_CONFIG_EXTPAGETYPE_SAS_IO_UNIT
	.comm	_MPI2_SASIOUNITPAGE0_PAGEVERSION,4,2 ; @MPI2_SASIOUNITPAGE0_PAGEVERSION
l_.str.18:                              ; @.str.18
	.asciz	"Error retrieving SAS IO Unit page %d"

	.comm	_MPI2_SASIOUNITPAGE1_PAGEVERSION,4,2 ; @MPI2_SASIOUNITPAGE1_PAGEVERSION
l_.str.20:                              ; @.str.20
	.asciz	"%-8s%-12s%-11s%-10s%-8s%-7s%-7s%s\n"

l_.str.21:                              ; @.str.21
	.asciz	"PhyNum"

l_.str.22:                              ; @.str.22
	.asciz	"CtlrHandle"

l_.str.23:                              ; @.str.23
	.asciz	"DevHandle"

l_.str.24:                              ; @.str.24
	.asciz	"Disabled"

l_.str.25:                              ; @.str.25
	.asciz	"Speed"

l_.str.26:                              ; @.str.26
	.asciz	"Min"

l_.str.27:                              ; @.str.27
	.asciz	"Max"

l_.str.28:                              ; @.str.28
	.asciz	"Device"

	.comm	_MPI2_SASIOUNIT0_PORTFLAGS_DISCOVERY_IN_PROGRESS,4,2 ; @MPI2_SASIOUNIT0_PORTFLAGS_DISCOVERY_IN_PROGRESS
	.comm	_MPI2_SASIOUNIT0_PHYFLAGS_PHY_DISABLED,4,2 ; @MPI2_SASIOUNIT0_PHYFLAGS_PHY_DISABLED
l_.str.30:                              ; @.str.30
	.asciz	"Y"

l_.str.31:                              ; @.str.31
	.asciz	"N"

l_.str.32:                              ; @.str.32
	.asciz	"%04x"

l_.str.33:                              ; @.str.33
	.asciz	"    "

l_.str.34:                              ; @.str.34
	.asciz	"     "

l_.str.35:                              ; @.str.35
	.asciz	"%-8d%-12s%-11s%-10s%-8s%-7s%-7s%s\n"

l_str:                                  ; @str
	.asciz	"Discovery still in progress"

l_str.36:                               ; @str.36
	.asciz	"could not get controller IOCFacts"

	.no_dead_strip	_show_adapter
.subsections_via_symbols
