	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_pff
_init_pff:                              ## @init_pff
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	24(%rdi), %r12
	movq	_SWITCHTEC_MAX_PFF_CSR@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rdi
	addq	%rbx, %rdi
	callq	_ioread16
	movq	_PCI_VENDOR_ID_MICROSEMI@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movslq	(%r15), %rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_3
	jmp	LBB0_5
LBB0_1:
	xorl	%r13d, %r13d
LBB0_5:
	movl	%r13d, (%r14)
	leaq	12(%r12), %rdi
	callq	_ioread32
	cmpl	(%r15), %eax
	jge	LBB0_7
## %bb.6:
	movq	8(%r14), %rcx
	cltq
	movl	$1, (%rcx,%rax,4)
LBB0_7:
	leaq	8(%r12), %rdi
	callq	_ioread32
	cmpl	(%r15), %eax
	jge	LBB0_9
## %bb.8:
	movq	8(%r14), %rcx
	cltq
	movl	$1, (%rcx,%rax,4)
LBB0_9:
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_14
## %bb.10:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %r13
	cmpq	%rax, %rbx
	jge	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%r13, %rdi
	callq	_ioread32
	cmpl	(%r15), %eax
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%r14), %rcx
	cltq
	movl	$1, (%rcx,%rax,4)
	jmp	LBB0_13
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SWITCHTEC_MAX_PFF_CSR,4,2      ## @SWITCHTEC_MAX_PFF_CSR
	.comm	_PCI_VENDOR_ID_MICROSEMI,4,2    ## @PCI_VENDOR_ID_MICROSEMI
	.no_dead_strip	_init_pff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_pff
_init_pff:                              ; @init_pff
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x20, [x0, #24]
Lloh0:
	adrp	x21, _SWITCHTEC_MAX_PFF_CSR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SWITCHTEC_MAX_PFF_CSR@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x23, #0
	mov	x22, #0
Lloh2:
	adrp	x24, _PCI_VENDOR_ID_MICROSEMI@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PCI_VENDOR_ID_MICROSEMI@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x23
	bl	_ioread16
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21]
	add	x23, x23, #4
	cmp	x22, x8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w22, #0
LBB0_5:
	str	w22, [x19]
	add	x0, x20, #12
	bl	_ioread32
	ldr	w8, [x21]
	cmp	w0, w8
	b.ge	LBB0_7
; %bb.6:
	ldr	x8, [x19, #8]
	mov	w9, #1
	str	w9, [x8, w0, sxtw #2]
LBB0_7:
	add	x0, x20, #8
	bl	_ioread32
	ldr	w8, [x21]
	cmp	w0, w8
	b.ge	LBB0_9
; %bb.8:
	ldr	x8, [x19, #8]
	mov	w9, #1
	str	w9, [x8, w0, sxtw #2]
LBB0_9:
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.10:
	mov	x22, #0
	mov	x23, #0
	mov	w24, #1
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #1
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	add	x22, x22, #4
	cmp	x23, w0, sxtw
	b.ge	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x8, x22
	bl	_ioread32
	ldr	w8, [x21]
	cmp	w0, w8
	b.ge	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x19, #8]
	str	w24, [x8, w0, sxtw #2]
	b	LBB0_11
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_SWITCHTEC_MAX_PFF_CSR,4,2      ; @SWITCHTEC_MAX_PFF_CSR
	.comm	_PCI_VENDOR_ID_MICROSEMI,4,2    ; @PCI_VENDOR_ID_MICROSEMI
	.no_dead_strip	_init_pff
.subsections_via_symbols
