	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_ppf
_set_ppf:                               ## @set_ppf
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_HINIC_HWIF_PCI_INTF
	movl	%eax, %edi
	callq	_HINIC_CSR_PPF_ELECTION_ADDR
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_hinic_hwif_read_reg
	movq	_IDX@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_HINIC_PPF_ELECTION_CLEAR
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_HINIC_HWIF_FUNC_IDX
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_HINIC_PPF_ELECTION_SET
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_hinic_hwif_write_reg
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_hinic_hwif_read_reg
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_HINIC_PPF_ELECTION_GET
	movq	%rax, %rbx
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_HINIC_HWIF_FUNC_IDX
	cmpq	%rax, %rbx
	jne	LBB0_2
## %bb.1:
	movq	_HINIC_PPF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDX,4,2                        ## @IDX
	.comm	_HINIC_PPF,4,2                  ## @HINIC_PPF
	.no_dead_strip	_set_ppf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_ppf
_set_ppf:                               ; @set_ppf
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_HINIC_HWIF_PCI_INTF
	bl	_HINIC_CSR_PPF_ELECTION_ADDR
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_hinic_hwif_read_reg
Lloh0:
	adrp	x22, _IDX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IDX@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_HINIC_PPF_ELECTION_CLEAR
	mov	x21, x0
	mov	x0, x19
	bl	_HINIC_HWIF_FUNC_IDX
	ldr	w1, [x22]
	bl	_HINIC_PPF_ELECTION_SET
	orr	w2, w0, w21
	mov	x0, x19
	mov	x1, x20
	bl	_hinic_hwif_write_reg
	mov	x0, x19
	mov	x1, x20
	bl	_hinic_hwif_read_reg
	ldr	w1, [x22]
	bl	_HINIC_PPF_ELECTION_GET
	mov	x20, x0
	str	x0, [x19]
	mov	x0, x19
	bl	_HINIC_HWIF_FUNC_IDX
	cmp	x20, x0
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _HINIC_PPF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HINIC_PPF@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IDX,4,2                        ; @IDX
	.comm	_HINIC_PPF,4,2                  ; @HINIC_PPF
	.no_dead_strip	_set_ppf
.subsections_via_symbols
