	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_set_ptt
_qed_set_ptt:                           ## @qed_set_ptt
	.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	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_qed_ptt_get_hw_addr
	movq	%rax, %r12
	movq	(%r13), %rcx
	movq	(%r15), %r8
	cmpq	%r8, %rcx
	je	LBB0_2
## %bb.1:
	movl	8(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_DP_NOTICE
LBB0_2:
	cmpq	%r14, %r12
	jg	LBB0_4
## %bb.3:
	movq	%r14, %rbx
	subq	%r12, %rbx
	movq	_PXP_EXTERNAL_BAR_PF_WINDOW_SINGLE_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jl	LBB0_5
LBB0_4:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_qed_ptt_set_win
	xorl	%ebx, %ebx
LBB0_5:
	movq	%r13, %rdi
	callq	_qed_ptt_get_bar_addr
	addq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ptt[%d] of hwfn[%02x] is used by hwfn[%02x]!\n"

	.comm	_PXP_EXTERNAL_BAR_PF_WINDOW_SINGLE_SIZE,8,3 ## @PXP_EXTERNAL_BAR_PF_WINDOW_SINGLE_SIZE
	.no_dead_strip	_qed_set_ptt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_set_ptt
_qed_set_ptt:                           ; @qed_set_ptt
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_qed_ptt_get_hw_addr
	mov	x22, x0
	ldr	x3, [x19]
	ldr	x4, [x21]
	cmp	x3, x4
	b.eq	LBB0_2
; %bb.1:
	ldr	w2, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_DP_NOTICE
LBB0_2:
	cmp	x22, x20
	b.gt	LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _PXP_EXTERNAL_BAR_PF_WINDOW_SINGLE_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PXP_EXTERNAL_BAR_PF_WINDOW_SINGLE_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	sub	x22, x20, x22
	cmp	x22, x8
	b.lt	LBB0_5
LBB0_4:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_qed_ptt_set_win
	mov	x22, #0
LBB0_5:
	mov	x0, x19
	bl	_qed_ptt_get_bar_addr
	add	x0, x0, x22
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ptt[%d] of hwfn[%02x] is used by hwfn[%02x]!\n"

	.comm	_PXP_EXTERNAL_BAR_PF_WINDOW_SINGLE_SIZE,8,3 ; @PXP_EXTERNAL_BAR_PF_WINDOW_SINGLE_SIZE
	.no_dead_strip	_qed_set_ptt
.subsections_via_symbols
