	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpt_create_physdisk
_mpt_create_physdisk:                   ## @mpt_create_physdisk
	.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	%r12
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	_MPI_CONFIG_PAGETYPE_RAID_PHYSDISK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-48(%rbp), %r8
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_mpt_read_config_page_header
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	-48(%rbp), %rsi
	movq	_MPI_RAIDPHYSDISKPAGE0_PAGEVERSION@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jle	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_warnx
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_3:
	movl	$1, %edi
	movl	$40, %esi
	callq	_calloc
	movl	(%r12), %ecx
	movl	%ecx, 32(%rax)
	movq	$0, 24(%rax)
	movl	$10, 16(%rax)
	movq	$0, 8(%rax)
	movl	4(%r15), %ecx
	movl	%ecx, 4(%rax)
	movl	(%r15), %ecx
	movl	%ecx, (%rax)
	movq	_MPI_RAID_ACTION_CREATE_PHYSDISK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rsp)
	leaq	-36(%rbp), %rcx
	movq	%rcx, 24(%rsp)
	movq	%rax, (%rsp)
	movl	$1, 56(%rsp)
	movl	$4, 32(%rsp)
	movq	$0, 16(%rsp)
	movl	$40, 8(%rsp)
	movl	%ebx, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mpt_raid_action
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movzbl	-36(%rbp), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_5:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPI_CONFIG_PAGETYPE_RAID_PHYSDISK,4,2 ## @MPI_CONFIG_PAGETYPE_RAID_PHYSDISK
	.comm	_MPI_RAIDPHYSDISKPAGE0_PAGEVERSION,8,3 ## @MPI_RAIDPHYSDISKPAGE0_PAGEVERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported RAID physdisk page 0 version %d"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_MPI_RAID_ACTION_CREATE_PHYSDISK,4,2 ## @MPI_RAID_ACTION_CREATE_PHYSDISK
	.no_dead_strip	_mpt_create_physdisk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpt_create_physdisk
_mpt_create_physdisk:                   ; @mpt_create_physdisk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _MPI_CONFIG_PAGETYPE_RAID_PHYSDISK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MPI_CONFIG_PAGETYPE_RAID_PHYSDISK@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x4, sp, #56
	mov	w2, #0
	mov	w3, #0
	mov	x5, #0
	bl	_mpt_read_config_page_header
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x1, [sp, #56]
Lloh2:
	adrp	x8, _MPI_RAIDPHYSDISKPAGE0_PAGEVERSION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MPI_RAIDPHYSDISKPAGE0_PAGEVERSION@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x1, x8
	b.le	LBB0_3
; %bb.2:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
Lloh7:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_3:
	mov	w23, #1
	mov	w0, #1
	mov	w1, #40
	bl	_calloc
	mov	x6, x0
	ldr	w8, [x22]
	str	w8, [x0, #32]
	str	xzr, [x0, #24]
	mov	w8, #10
	str	w8, [x0, #16]
	str	xzr, [x0, #8]
	ldr	d0, [x21]
	str	d0, [x0]
Lloh10:
	adrp	x8, _MPI_RAID_ACTION_CREATE_PHYSDISK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MPI_RAID_ACTION_CREATE_PHYSDISK@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	stp	xzr, xzr, [sp, #24]
	mov	w8, #4
	str	w23, [sp, #40]
	str	w8, [sp, #16]
	add	x8, sp, #52
	stp	xzr, x8, [sp]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w7, #40
	bl	_mpt_raid_action
	cbnz	w0, LBB0_5
; %bb.4:
	ldrb	w8, [sp, #52]
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MPI_CONFIG_PAGETYPE_RAID_PHYSDISK,4,2 ; @MPI_CONFIG_PAGETYPE_RAID_PHYSDISK
	.comm	_MPI_RAIDPHYSDISKPAGE0_PAGEVERSION,8,3 ; @MPI_RAIDPHYSDISKPAGE0_PAGEVERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported RAID physdisk page 0 version %d"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_MPI_RAID_ACTION_CREATE_PHYSDISK,4,2 ; @MPI_RAID_ACTION_CREATE_PHYSDISK
	.no_dead_strip	_mpt_create_physdisk
.subsections_via_symbols
