	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpt_raid_phys_disk_pg1         ## -- Begin function mpt_raid_phys_disk_pg1
	.p2align	4, 0x90
_mpt_raid_phys_disk_pg1:                ## @mpt_raid_phys_disk_pg1
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	leaq	-104(%rbp), %r15
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	leaq	-152(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_MPI_RAIDPHYSDISKPAGE1_PAGEVERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -108(%rbp)
	movq	_MPI_CONFIG_PAGETYPE_RAID_PHYSDISK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
	movl	$1, -152(%rbp)
	movq	%r13, -72(%rbp)
	movl	$-1, -100(%rbp)
	movq	_MPI_CONFIG_ACTION_PAGE_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mpt_config
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_2:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	-144(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_3
## %bb.5:
	movl	(%r14), %edi
	shll	$2, %esi
	leaq	-48(%rbp), %rdx
	callq	_pci_alloc_consistent
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	movl	-48(%rbp), %eax
	movl	%eax, -100(%rbp)
	movq	_MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	%r15, -88(%rbp)
	leaq	-104(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mpt_config
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdx
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_3:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_9:
	movl	(%rbx), %eax
	movl	%eax, (%r12)
	movq	%r15, 16(%r12)
	testl	%eax, %eax
	jle	LBB0_10
## %bb.11:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movl	20(%rax,%r14), %ecx
	movq	8(%r12), %rdx
	movl	%ecx, 20(%rdx,%r14)
	movl	16(%rax,%r14), %ecx
	movl	%ecx, 16(%rdx,%r14)
	movl	12(%rax,%r14), %ecx
	movl	%ecx, 12(%rdx,%r14)
	movl	8(%rax,%r14), %edi
	callq	_le16_to_cpu
	movq	8(%r12), %rcx
	movl	%eax, 8(%rcx,%r14)
	movq	8(%rbx), %rax
	leaq	(%rax,%r14), %rsi
	addq	$4, %rsi
	leaq	-44(%rbp), %r15
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcpy
	movl	-44(%rbp), %edi
	callq	_le64_to_cpu
	movl	%eax, -44(%rbp)
	movq	8(%r12), %rax
	leaq	(%rax,%r14), %rdi
	addq	$4, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%rbx), %rsi
	addq	%r14, %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcpy
	movl	-44(%rbp), %edi
	callq	_le64_to_cpu
	movl	%eax, -44(%rbp)
	movq	8(%r12), %rdi
	addq	%r14, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	incq	%r13
	movslq	(%r12), %rax
	addq	$24, %r14
	cmpq	%rax, %r13
	jl	LBB0_12
## %bb.13:
	movq	%rbx, %rdx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_10:
	movq	%rbx, %rdx
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	movl	(%r14), %edi
	movl	-144(%rbp), %esi
	shll	$2, %esi
	movl	-48(%rbp), %ecx
	callq	_pci_free_consistent
LBB0_16:
	movl	%ebx, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPI_RAIDPHYSDISKPAGE1_PAGEVERSION,4,2 ## @MPI_RAIDPHYSDISKPAGE1_PAGEVERSION
	.comm	_MPI_CONFIG_PAGETYPE_RAID_PHYSDISK,4,2 ## @MPI_CONFIG_PAGETYPE_RAID_PHYSDISK
	.comm	_MPI_CONFIG_ACTION_PAGE_HEADER,4,2 ## @MPI_CONFIG_ACTION_PAGE_HEADER
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MPI_CONFIG_ACTION_PAGE_READ_CURRENT,4,2 ## @MPI_CONFIG_ACTION_PAGE_READ_CURRENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpt_raid_phys_disk_pg1         ; -- Begin function mpt_raid_phys_disk_pg1
	.p2align	2
_mpt_raid_phys_disk_pg1:                ; @mpt_raid_phys_disk_pg1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	add	x0, sp, #64
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	add	x21, sp, #16
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh0:
	adrp	x8, _MPI_RAIDPHYSDISKPAGE1_PAGEVERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPI_RAIDPHYSDISKPAGE1_PAGEVERSION@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
Lloh3:
	adrp	x9, _MPI_CONFIG_PAGETYPE_RAID_PHYSDISK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MPI_CONFIG_PAGETYPE_RAID_PHYSDISK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x9]
	mov	w9, #1
	stp	w8, w10, [sp, #56]
	str	w9, [sp, #16]
	str	x21, [sp, #96]
	mov	w8, #-1
Lloh6:
	adrp	x9, _MPI_CONFIG_ACTION_PAGE_HEADER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MPI_CONFIG_ACTION_PAGE_HEADER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w8, [sp, #68]
	str	w9, [sp, #88]
	add	x1, sp, #64
	mov	x0, x19
	bl	_mpt_config
	cbz	x0, LBB0_4
LBB0_1:
Lloh9:
	adrp	x8, _EFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_4:
	ldr	w8, [sp, #24]
	cbz	w8, LBB0_1
; %bb.5:
	ldr	w0, [x19]
	lsl	w1, w8, #2
	add	x2, sp, #12
	bl	_pci_alloc_consistent
	cbz	x0, LBB0_8
; %bb.6:
	mov	x21, x0
	ldr	w8, [sp, #12]
	str	w8, [sp, #68]
Lloh11:
	adrp	x8, _MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [sp, #88]
	str	x22, [sp, #80]
	add	x1, sp, #64
	mov	x0, x19
	bl	_mpt_config
	cbz	x0, LBB0_9
; %bb.7:
Lloh14:
	adrp	x8, _EFAULT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_8:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_9:
	ldr	w8, [x21]
	str	w8, [x20]
	str	x22, [x20, #16]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x22, #0
	mov	w23, #20
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x8, x8, x23
	ldr	w9, [x8]
	ldr	x10, [x20, #8]
	add	x10, x10, x23
	str	w9, [x10]
	ldur	d0, [x8, #-8]
	stur	d0, [x10, #-8]
	ldur	w0, [x8, #-12]
	bl	_le16_to_cpu
	ldr	x8, [x20, #8]
	add	x8, x8, x23
	stur	w0, [x8, #-12]
	ldr	x8, [x21, #8]
	add	x8, x8, x23
	sub	x1, x8, #16
	add	x0, sp, #8
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [sp, #8]
	bl	_le64_to_cpu
	str	w0, [sp, #8]
	ldr	x8, [x20, #8]
	add	x8, x8, x23
	sub	x0, x8, #16
	add	x1, sp, #8
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x21, #8]
	add	x8, x8, x23
	sub	x1, x8, #20
	add	x0, sp, #8
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [sp, #8]
	bl	_le64_to_cpu
	str	w0, [sp, #8]
	ldr	x8, [x20, #8]
	add	x8, x8, x23
	sub	x0, x8, #20
	add	x1, sp, #8
	mov	w2, #4
	bl	_memcpy
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x23, x23, #24
	cmp	x22, x8
	b.lt	LBB0_11
LBB0_12:
	mov	w20, #0
LBB0_13:
	ldr	w0, [x19]
	ldr	w8, [sp, #24]
	lsl	w1, w8, #2
	ldr	w3, [sp, #12]
	mov	x2, x21
	bl	_pci_free_consistent
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MPI_RAIDPHYSDISKPAGE1_PAGEVERSION,4,2 ; @MPI_RAIDPHYSDISKPAGE1_PAGEVERSION
	.comm	_MPI_CONFIG_PAGETYPE_RAID_PHYSDISK,4,2 ; @MPI_CONFIG_PAGETYPE_RAID_PHYSDISK
	.comm	_MPI_CONFIG_ACTION_PAGE_HEADER,4,2 ; @MPI_CONFIG_ACTION_PAGE_HEADER
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MPI_CONFIG_ACTION_PAGE_READ_CURRENT,4,2 ; @MPI_CONFIG_ACTION_PAGE_READ_CURRENT
.subsections_via_symbols
