	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mptfc_generate_rport_ids
_mptfc_generate_rport_ids:              ## @mptfc_generate_rport_ids
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	movq	_MPI_FC_DEVICE_PAGE0_FLAGS_PLOGI_INVALID@GOTPCREL(%rip), %rax
	movq	_MPI_FC_DEVICE_PAGE0_FLAGS_PRLI_INVALID@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movl	$-1, %eax
	testl	%ecx, %edx
	je	LBB0_1
LBB0_4:
	popq	%rbp
	retq
LBB0_1:
	movq	_MPI_FC_DEVICE_PAGE0_FLAGS_TARGETID_BUS_VALID@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_4
## %bb.2:
	movq	_MPI_FC_DEVICE_PAGE0_PROT_FCP_TARGET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rdi)
	je	LBB0_4
## %bb.3:
	movl	8(%rdi), %eax
	movl	%eax, 12(%rsi)
	movq	_FC_RPORT_ROLE_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rsi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPI_FC_DEVICE_PAGE0_FLAGS_PLOGI_INVALID,4,2 ## @MPI_FC_DEVICE_PAGE0_FLAGS_PLOGI_INVALID
	.comm	_MPI_FC_DEVICE_PAGE0_FLAGS_PRLI_INVALID,4,2 ## @MPI_FC_DEVICE_PAGE0_FLAGS_PRLI_INVALID
	.comm	_MPI_FC_DEVICE_PAGE0_FLAGS_TARGETID_BUS_VALID,4,2 ## @MPI_FC_DEVICE_PAGE0_FLAGS_TARGETID_BUS_VALID
	.comm	_MPI_FC_DEVICE_PAGE0_PROT_FCP_TARGET,4,2 ## @MPI_FC_DEVICE_PAGE0_PROT_FCP_TARGET
	.comm	_FC_RPORT_ROLE_UNKNOWN,4,2      ## @FC_RPORT_ROLE_UNKNOWN
	.no_dead_strip	_mptfc_generate_rport_ids
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mptfc_generate_rport_ids
_mptfc_generate_rport_ids:              ; @mptfc_generate_rport_ids
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
Lloh0:
	adrp	x10, _MPI_FC_DEVICE_PAGE0_FLAGS_PLOGI_INVALID@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MPI_FC_DEVICE_PAGE0_FLAGS_PLOGI_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x11, _MPI_FC_DEVICE_PAGE0_FLAGS_PRLI_INVALID@GOTPAGE
Lloh4:
	ldr	x11, [x11, _MPI_FC_DEVICE_PAGE0_FLAGS_PRLI_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w10, w9
	b.eq	LBB0_2
LBB0_1:
	mov	w0, #-1
	ret
LBB0_2:
Lloh6:
	adrp	x10, _MPI_FC_DEVICE_PAGE0_FLAGS_TARGETID_BUS_VALID@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MPI_FC_DEVICE_PAGE0_FLAGS_TARGETID_BUS_VALID@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_1
; %bb.3:
	mov	x8, x0
	ldr	w9, [x0, #4]
Lloh9:
	adrp	x10, _MPI_FC_DEVICE_PAGE0_PROT_FCP_TARGET@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MPI_FC_DEVICE_PAGE0_PROT_FCP_TARGET@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_1
; %bb.4:
	mov	w0, #0
	ldr	w8, [x8, #8]
Lloh12:
	adrp	x9, _FC_RPORT_ROLE_UNKNOWN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FC_RPORT_ROLE_UNKNOWN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x1, #8]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MPI_FC_DEVICE_PAGE0_FLAGS_PLOGI_INVALID,4,2 ; @MPI_FC_DEVICE_PAGE0_FLAGS_PLOGI_INVALID
	.comm	_MPI_FC_DEVICE_PAGE0_FLAGS_PRLI_INVALID,4,2 ; @MPI_FC_DEVICE_PAGE0_FLAGS_PRLI_INVALID
	.comm	_MPI_FC_DEVICE_PAGE0_FLAGS_TARGETID_BUS_VALID,4,2 ; @MPI_FC_DEVICE_PAGE0_FLAGS_TARGETID_BUS_VALID
	.comm	_MPI_FC_DEVICE_PAGE0_PROT_FCP_TARGET,4,2 ; @MPI_FC_DEVICE_PAGE0_PROT_FCP_TARGET
	.comm	_FC_RPORT_ROLE_UNKNOWN,4,2      ; @FC_RPORT_ROLE_UNKNOWN
	.no_dead_strip	_mptfc_generate_rport_ids
.subsections_via_symbols
