	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mptfc_GetFcPortPage1
_mptfc_GetFcPortPage1:                  ## @mptfc_GetFcPortPage1
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$2, %esi
	jl	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_3:
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	$0, -56(%rbp)
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, -72(%rbp)
	movq	_MPI_CONFIG_PAGETYPE_FC_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-72(%rbp), %rax
	movq	%rax, -80(%rbp)
	movl	$-1, -112(%rbp)
	movq	_MPI_CONFIG_ACTION_PAGE_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movl	%esi, -108(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -96(%rbp)
	leaq	-112(%rbp), %rsi
	callq	_mpt_config
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_4
LBB0_14:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	-72(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_15
## %bb.5:
	movslq	%ebx, %rdx
	movq	8(%r14), %rcx
	leaq	(%rdx,%rdx,2), %r13
	movq	8(%rcx,%r13,8), %r15
	testq	%r15, %r15
	je	LBB0_9
## %bb.6:
	leaq	(%rcx,%r13,8), %rdx
	addq	$8, %rdx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rcx,%r13,8), %rsi
	movq	%rsi, -48(%rbp)
	movl	(%rcx,%r13,8), %ebx
	shll	$2, %eax
	cmpl	%ebx, %eax
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	$0, (%rdx)
	movl	(%r14), %edi
	movq	-48(%rbp), %rcx
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_pci_free_consistent
	movq	8(%r14), %rcx
	leaq	(%rcx,%r13,8), %rdx
	addq	$8, %rdx
	movq	8(%rcx,%r13,8), %r15
	movl	-72(%rbp), %eax
	testq	%r15, %r15
	jne	LBB0_7
LBB0_9:
	leal	(,%rax,4), %ecx
	testl	%eax, %eax
	movl	$4, %ebx
	cmovnel	%ecx, %ebx
	movl	(%r14), %edi
	leaq	-48(%rbp), %rdx
	movl	%ebx, %esi
	callq	_pci_alloc_consistent
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_10
LBB0_11:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movl	-48(%rbp), %eax
	movl	%eax, -112(%rbp)
	movq	_MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	leaq	-112(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mpt_config
	movq	8(%r14), %rdx
	leaq	(%rdx,%r13,8), %rcx
	addq	$8, %rcx
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movq	$0, (%rcx)
	movl	(%r14), %edi
	movq	-48(%rbp), %rcx
	movl	%ebx, %esi
	movl	%eax, %r12d
	movq	%r15, %rdx
	callq	_pci_free_consistent
	jmp	LBB0_14
LBB0_15:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_12:
	movq	%r15, (%rcx)
	movl	%ebx, (%rdx,%r13,8)
	movq	-48(%rbp), %rcx
	movq	%rcx, 16(%rdx,%r13,8)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MPI_CONFIG_PAGETYPE_FC_PORT,4,2 ## @MPI_CONFIG_PAGETYPE_FC_PORT
	.comm	_MPI_CONFIG_ACTION_PAGE_HEADER,4,2 ## @MPI_CONFIG_ACTION_PAGE_HEADER
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MPI_CONFIG_ACTION_PAGE_READ_CURRENT,4,2 ## @MPI_CONFIG_ACTION_PAGE_READ_CURRENT
	.no_dead_strip	_mptfc_GetFcPortPage1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mptfc_GetFcPortPage1
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mptfc_GetFcPortPage1:                  ; @mptfc_GetFcPortPage1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cmp	w1, #2
	b.lt	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_4
LBB0_3:
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #72]
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #56]
Lloh4:
	adrp	x8, _MPI_CONFIG_PAGETYPE_FC_PORT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MPI_CONFIG_PAGETYPE_FC_PORT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #64]
	add	x8, sp, #56
	str	x8, [sp, #48]
Lloh7:
	adrp	x8, _MPI_CONFIG_ACTION_PAGE_HEADER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MPI_CONFIG_ACTION_PAGE_HEADER@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	stp	w1, w8, [sp, #20]
	mov	w8, #-1
	str	w8, [sp, #16]
	stp	xzr, xzr, [sp, #32]
	add	x1, sp, #16
	bl	_mpt_config
	mov	x22, x0
	cbz	w0, LBB0_5
LBB0_4:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_5:
	ldr	w8, [sp, #56]
	cbz	w8, LBB0_14
; %bb.6:
	sxtw	x23, w20
	ldr	x10, [x19, #8]
	mov	w9, #24
	smaddl	x9, w20, w9, x10
	ldr	x20, [x9, #8]!
	cbz	x20, LBB0_10
; %bb.7:
	mov	w22, #24
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	madd	x10, x23, x22, x10
	ldr	x11, [x10, #16]
	str	x11, [sp, #8]
	ldr	w21, [x10]
	cmp	w21, w8, lsl #2
	b.ge	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	str	xzr, [x9]
	ldr	w0, [x19]
	ldr	x3, [sp, #8]
	mov	x1, x21
	mov	x2, x20
	bl	_pci_free_consistent
	ldr	x10, [x19, #8]
	madd	x9, x23, x22, x10
	ldr	x20, [x9, #8]!
	ldr	w8, [sp, #56]
	cbnz	x20, LBB0_8
LBB0_10:
	lsl	w9, w8, #2
	mov	w10, #4
	cmp	w8, #0
	csel	w21, w10, w9, eq
	ldr	w0, [x19]
	add	x2, sp, #8
	mov	x1, x21
	bl	_pci_alloc_consistent
	cbz	x0, LBB0_15
; %bb.11:
	mov	x20, x0
LBB0_12:
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	ldr	x8, [sp, #8]
Lloh10:
	adrp	x9, _MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MPI_CONFIG_ACTION_PAGE_READ_CURRENT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	str	w8, [sp, #16]
	str	w9, [sp, #24]
	add	x1, sp, #16
	mov	x0, x19
	bl	_mpt_config
	mov	x22, x0
	ldr	x8, [x19, #8]
	mov	w9, #24
	madd	x9, x23, x9, x8
	add	x9, x9, #8
	cbz	w0, LBB0_16
; %bb.13:
	str	xzr, [x9]
	ldr	w0, [x19]
	ldr	x3, [sp, #8]
	mov	x1, x21
	mov	x2, x20
	bl	_pci_free_consistent
	b	LBB0_4
LBB0_14:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_2
LBB0_15:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_16:
	str	x20, [x9]
	mov	w9, #24
	madd	x8, x23, x9, x8
	str	w21, [x8]
	ldr	x9, [sp, #8]
	str	x9, [x8, #16]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MPI_CONFIG_PAGETYPE_FC_PORT,4,2 ; @MPI_CONFIG_PAGETYPE_FC_PORT
	.comm	_MPI_CONFIG_ACTION_PAGE_HEADER,4,2 ; @MPI_CONFIG_ACTION_PAGE_HEADER
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MPI_CONFIG_ACTION_PAGE_READ_CURRENT,4,2 ; @MPI_CONFIG_ACTION_PAGE_READ_CURRENT
	.no_dead_strip	_mptfc_GetFcPortPage1
.subsections_via_symbols
