	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpt_is_discovery_complete
_mpt_is_discovery_complete:             ## @mpt_is_discovery_complete
	.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	$96, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	-120(%rbp), %r15
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_MPI_SASIOUNITPAGE0_PAGEVERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	_MPI_CONFIG_PAGETYPE_EXTENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	movq	_MPI_CONFIG_EXTPAGETYPE_SAS_IO_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	%r15, -64(%rbp)
	movq	_MPI_CONFIG_ACTION_PAGE_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mpt_config
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movl	-120(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_6
## %bb.2:
	movl	(%r12), %edi
	shll	$2, %esi
	leaq	-36(%rbp), %rdx
	callq	_pci_alloc_consistent
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r15
	movl	-36(%rbp), %eax
	movl	%eax, -72(%rbp)
	movq	_MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	callq	_mpt_config
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	(%r15), %rax
	movq	_MPI_SAS_IOUNIT0_PORT_FLAGS_DISCOVERY_IN_PROGRESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r14d, %r14d
	testl	%ecx, (%rax)
	sete	%r14b
LBB0_5:
	movl	(%r12), %edi
	movl	-120(%rbp), %esi
	shll	$2, %esi
	movl	-36(%rbp), %ecx
	movq	%r15, %rdx
	callq	_pci_free_consistent
LBB0_6:
	movl	%r14d, %eax
	addq	$96, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPI_SASIOUNITPAGE0_PAGEVERSION,4,2 ## @MPI_SASIOUNITPAGE0_PAGEVERSION
	.comm	_MPI_CONFIG_PAGETYPE_EXTENDED,4,2 ## @MPI_CONFIG_PAGETYPE_EXTENDED
	.comm	_MPI_CONFIG_EXTPAGETYPE_SAS_IO_UNIT,4,2 ## @MPI_CONFIG_EXTPAGETYPE_SAS_IO_UNIT
	.comm	_MPI_CONFIG_ACTION_PAGE_HEADER,4,2 ## @MPI_CONFIG_ACTION_PAGE_HEADER
	.comm	_MPI_CONFIG_ACTION_PAGE_READ_CURRENT,4,2 ## @MPI_CONFIG_ACTION_PAGE_READ_CURRENT
	.comm	_MPI_SAS_IOUNIT0_PORT_FLAGS_DISCOVERY_IN_PROGRESS,4,2 ## @MPI_SAS_IOUNIT0_PORT_FLAGS_DISCOVERY_IN_PROGRESS
	.no_dead_strip	_mpt_is_discovery_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpt_is_discovery_complete
_mpt_is_discovery_complete:             ; @mpt_is_discovery_complete
	.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	x19, x0
	add	x20, sp, #56
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh0:
	adrp	x8, _MPI_SASIOUNITPAGE0_PAGEVERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPI_SASIOUNITPAGE0_PAGEVERSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MPI_CONFIG_PAGETYPE_EXTENDED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MPI_CONFIG_PAGETYPE_EXTENDED@GOTPAGEOFF]
	str	w8, [sp, #88]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _MPI_CONFIG_EXTPAGETYPE_SAS_IO_UNIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MPI_CONFIG_EXTPAGETYPE_SAS_IO_UNIT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #80]
	str	x20, [sp, #32]
Lloh9:
	adrp	x8, _MPI_CONFIG_ACTION_PAGE_HEADER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MPI_CONFIG_ACTION_PAGE_HEADER@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	add	x1, sp, #16
	mov	x0, x19
	bl	_mpt_config
	mov	w21, #0
	cbnz	x0, LBB0_8
; %bb.1:
	ldr	w8, [sp, #56]
	cbz	w8, LBB0_8
; %bb.2:
	ldr	w0, [x19]
	lsl	w1, w8, #2
	add	x2, sp, #12
	bl	_pci_alloc_consistent
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	ldr	w8, [sp, #12]
Lloh12:
	adrp	x9, _MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #20]
	add	x1, sp, #16
	mov	x0, x19
	bl	_mpt_config
	cbz	x0, LBB0_6
; %bb.4:
	mov	w21, #0
	b	LBB0_7
LBB0_5:
	mov	w21, #0
	b	LBB0_8
LBB0_6:
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _MPI_SAS_IOUNIT0_PORT_FLAGS_DISCOVERY_IN_PROGRESS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MPI_SAS_IOUNIT0_PORT_FLAGS_DISCOVERY_IN_PROGRESS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w21, eq
LBB0_7:
	ldr	w0, [x19]
	ldr	w8, [sp, #56]
	lsl	w1, w8, #2
	ldr	w3, [sp, #12]
	mov	x2, x20
	bl	_pci_free_consistent
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MPI_SASIOUNITPAGE0_PAGEVERSION,4,2 ; @MPI_SASIOUNITPAGE0_PAGEVERSION
	.comm	_MPI_CONFIG_PAGETYPE_EXTENDED,4,2 ; @MPI_CONFIG_PAGETYPE_EXTENDED
	.comm	_MPI_CONFIG_EXTPAGETYPE_SAS_IO_UNIT,4,2 ; @MPI_CONFIG_EXTPAGETYPE_SAS_IO_UNIT
	.comm	_MPI_CONFIG_ACTION_PAGE_HEADER,4,2 ; @MPI_CONFIG_ACTION_PAGE_HEADER
	.comm	_MPI_CONFIG_ACTION_PAGE_READ_CURRENT,4,2 ; @MPI_CONFIG_ACTION_PAGE_READ_CURRENT
	.comm	_MPI_SAS_IOUNIT0_PORT_FLAGS_DISCOVERY_IN_PROGRESS,4,2 ; @MPI_SAS_IOUNIT0_PORT_FLAGS_DISCOVERY_IN_PROGRESS
	.no_dead_strip	_mpt_is_discovery_complete
.subsections_via_symbols
