	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_hw_get_ppfid_bitmap
_qed_hw_get_ppfid_bitmap:               ## @qed_hw_get_ppfid_bitmap
	.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	%rsi, %rbx
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_QED_IS_BB
	movl	(%r12), %r15d
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	%r15d, %eax
	cltd
	idivl	(%r14)
	movl	%eax, %r15d
LBB0_2:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_qed_mcp_get_ppfid_bitmap
	movl	%eax, %ebx
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	cmpl	%eax, %ebx
	jne	LBB0_9
LBB0_4:
	cmpl	%eax, %ebx
	jne	LBB0_5
## %bb.6:
	movl	$1, %r13d
	movl	%r15d, %ecx
	shll	%cl, %r13d
	movl	%r13d, 4(%r14)
	movl	%r13d, %eax
	jmp	LBB0_7
LBB0_5:
	movl	4(%r14), %eax
	movl	$1, %r13d
	movl	%r15d, %ecx
	shll	%cl, %r13d
LBB0_7:
	xorl	%ebx, %ebx
	testl	%r13d, %eax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_DP_INFO
	movl	%r13d, 4(%r14)
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fix the PPFID bitmap to include the native PPFID [native_ppfid_idx %hhd, orig_bitmap 0x%hhx]\n"

	.no_dead_strip	_qed_hw_get_ppfid_bitmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_hw_get_ppfid_bitmap
_qed_hw_get_ppfid_bitmap:               ; @qed_hw_get_ppfid_bitmap
	.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	x22, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_QED_IS_BB
	ldr	w21, [x20]
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	sdiv	w21, w21, w8
LBB0_2:
	mov	x0, x20
	mov	x1, x22
	bl	_qed_mcp_get_ppfid_bitmap
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
	cbz	w0, LBB0_4
; %bb.3:
	cmp	w0, w8
	b.ne	LBB0_9
LBB0_4:
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.5:
	mov	w8, #1
	lsl	w22, w8, w21
	str	w22, [x19, #4]
	mov	x3, x22
	tst	w3, w22
	b.eq	LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	ldr	w3, [x19, #4]
	mov	w8, #1
	lsl	w22, w8, w21
	tst	w3, w22
	b.ne	LBB0_6
LBB0_8:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_DP_INFO
	mov	w0, #0
	str	w22, [x19, #4]
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fix the PPFID bitmap to include the native PPFID [native_ppfid_idx %hhd, orig_bitmap 0x%hhx]\n"

	.no_dead_strip	_qed_hw_get_ppfid_bitmap
.subsections_via_symbols
