	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpt_raid_phys_disk_pg0         ## -- Begin function mpt_raid_phys_disk_pg0
	.p2align	4, 0x90
_mpt_raid_phys_disk_pg0:                ## @mpt_raid_phys_disk_pg0
	.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
	movq	%rdx, %r15
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	leaq	-88(%rbp), %r13
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	leaq	-128(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_MPI_RAIDPHYSDISKPAGE0_PAGEVERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	movq	_MPI_CONFIG_PAGETYPE_RAID_PHYSDISK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	%r14, -64(%rbp)
	movl	$-1, -88(%rbp)
	movq	_MPI_CONFIG_ACTION_PAGE_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_mpt_config
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_2:
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	-124(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_3
## %bb.5:
	movl	(%r12), %edi
	shll	$2, %esi
	leaq	-44(%rbp), %rdx
	callq	_pci_alloc_consistent
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r13
	movl	-44(%rbp), %eax
	movl	%eax, -88(%rbp)
	movq	_MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	%r14d, -76(%rbp)
	leaq	-88(%rbp), %rsi
	movq	%r12, %rdi
	callq	_mpt_config
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
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_11
LBB0_9:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	(%r13), %edi
	callq	_le32_to_cpu
	movl	%eax, 8(%r15)
	xorl	%ebx, %ebx
LBB0_10:
	movl	(%r12), %edi
	movl	-124(%rbp), %esi
	shll	$2, %esi
	movl	-44(%rbp), %ecx
	movq	%r13, %rdx
	callq	_pci_free_consistent
LBB0_11:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPI_RAIDPHYSDISKPAGE0_PAGEVERSION,4,2 ## @MPI_RAIDPHYSDISKPAGE0_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_pg0         ; -- Begin function mpt_raid_phys_disk_pg0
	.p2align	2
_mpt_raid_phys_disk_pg0:                ; @mpt_raid_phys_disk_pg0
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	add	x22, sp, #16
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	mov	x0, x20
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh0:
	adrp	x8, _MPI_RAIDPHYSDISKPAGE0_PAGEVERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPI_RAIDPHYSDISKPAGE0_PAGEVERSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MPI_CONFIG_PAGETYPE_RAID_PHYSDISK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MPI_CONFIG_PAGETYPE_RAID_PHYSDISK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #48]
	str	x22, [sp, #80]
	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, #56]
	str	w9, [sp, #72]
	add	x1, sp, #56
	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	w21, w8
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_4:
	ldr	w8, [sp, #20]
	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	x22, x0
	ldr	w8, [sp, #12]
Lloh11:
	adrp	x9, _MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w21, w9, [sp, #68]
	str	w8, [sp, #56]
	add	x1, sp, #56
	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	w21, w8
	b	LBB0_10
LBB0_8:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_9:
	mov	x0, x20
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x22]
	bl	_le32_to_cpu
	mov	w21, #0
	str	w0, [x20, #8]
LBB0_10:
	ldr	w0, [x19]
	ldr	w8, [sp, #20]
	lsl	w1, w8, #2
	ldr	w3, [sp, #12]
	mov	x2, x22
	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_RAIDPHYSDISKPAGE0_PAGEVERSION,4,2 ; @MPI_RAIDPHYSDISKPAGE0_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
