	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mptfc_WriteFcPortPage1
_mptfc_WriteFcPortPage1:                ## @mptfc_WriteFcPortPage1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$2, %esi
	jge	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movslq	%esi, %rcx
	leaq	(%rcx,%rcx,2), %r14
	cmpl	$0, 8(%rax,%r14,4)
	je	LBB0_1
## %bb.4:
	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, -24(%rbp)
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	movq	%rax, -48(%rbp)
	movq	_MPI_CONFIG_ACTION_PAGE_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	%esi, -40(%rbp)
	movq	$0, -32(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mpt_config
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movl	-72(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	shll	$2, %eax
	movq	(%rbx), %rcx
	cmpl	(%rcx,%r14,4), %eax
	jne	LBB0_1
## %bb.8:
	movl	4(%rcx,%r14,4), %eax
	movl	%eax, -48(%rbp)
	movq	_MPI_CONFIG_ACTION_PAGE_WRITE_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	$1, -44(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mpt_config
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.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	_MPI_CONFIG_ACTION_PAGE_WRITE_CURRENT,4,2 ## @MPI_CONFIG_ACTION_PAGE_WRITE_CURRENT
	.no_dead_strip	_mptfc_WriteFcPortPage1
.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_WriteFcPortPage1
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mptfc_WriteFcPortPage1:                ; @mptfc_WriteFcPortPage1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w1, #2
	b.ge	LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	mov	w9, #12
	smaddl	x8, w1, w9, x8
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_6
; %bb.2:
	str	xzr, [sp, #56]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #40]
Lloh2:
	adrp	x8, _MPI_CONFIG_PAGETYPE_FC_PORT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MPI_CONFIG_PAGETYPE_FC_PORT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #48]
	add	x8, sp, #40
Lloh5:
	adrp	x9, _MPI_CONFIG_ACTION_PAGE_HEADER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MPI_CONFIG_ACTION_PAGE_HEADER@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	movi	d0, #0x000000ffffffff
	str	d0, [sp, #8]
	stp	w20, w9, [sp, #16]
	stp	xzr, x8, [sp, #24]
	add	x1, sp, #8
	mov	x0, x19
	bl	_mpt_config
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	w9, [sp, #40]
	cbz	w9, LBB0_9
; %bb.4:
	sxtw	x8, w20
	ldr	x10, [x19]
	mov	w11, #12
	mul	x11, x8, x11
	ldr	w11, [x10, x11]
	cmp	w11, w9, lsl #2
	b.ne	LBB0_6
; %bb.5:
	mov	w9, #12
	madd	x8, x8, x9, x10
Lloh8:
	adrp	x9, _MPI_CONFIG_ACTION_PAGE_WRITE_CURRENT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MPI_CONFIG_ACTION_PAGE_WRITE_CURRENT@GOTPAGEOFF]
	ldr	w8, [x8, #4]
Lloh10:
	ldr	w9, [x9]
	str	w9, [sp, #20]
	mov	w9, #1
	stp	w8, w9, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_mpt_config
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.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	_MPI_CONFIG_ACTION_PAGE_WRITE_CURRENT,4,2 ; @MPI_CONFIG_ACTION_PAGE_WRITE_CURRENT
	.no_dead_strip	_mptfc_WriteFcPortPage1
.subsections_via_symbols
