	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function advk_pcie_check_pio_status
_advk_pcie_check_pio_status:            ## @advk_pcie_check_pio_status
	.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, %r13
	movq	(%rdi), %r14
	movq	_PIO_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_advk_readl
	movl	%eax, %r15d
	movq	_PIO_COMPLETION_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	movq	_PIO_COMPLETION_STATUS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	cmpl	$128, %eax
	jg	LBB0_4
## %bb.1:
	testl	%eax, %eax
	je	LBB0_10
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.3:
	leaq	L_.str(%rip), %r12
	jmp	LBB0_9
LBB0_4:
	cmpl	$130, %eax
	je	LBB0_7
## %bb.5:
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.6:
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.3(%rip), %r12
	jmp	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.2(%rip), %r12
LBB0_9:
	movq	_PIO_NON_POSTED_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rbx
	cmoveq	%rax, %rbx
	movq	_PIO_ADDR_LS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_advk_readl
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	movl	%r15d, %r8d
	movl	%eax, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PIO_STAT,4,2                   ## @PIO_STAT
	.comm	_PIO_COMPLETION_STATUS_MASK,4,2 ## @PIO_COMPLETION_STATUS_MASK
	.comm	_PIO_COMPLETION_STATUS_SHIFT,4,2 ## @PIO_COMPLETION_STATUS_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UR"

L_.str.1:                               ## @.str.1
	.asciz	"CRS"

L_.str.2:                               ## @.str.2
	.asciz	"CA"

L_.str.3:                               ## @.str.3
	.asciz	"Unknown"

	.comm	_PIO_NON_POSTED_REQ,4,2         ## @PIO_NON_POSTED_REQ
L_.str.4:                               ## @.str.4
	.asciz	"Non-posted"

L_.str.5:                               ## @.str.5
	.asciz	"Posted"

L_.str.6:                               ## @.str.6
	.asciz	"%s PIO Response Status: %s, %#x @ %#x\n"

	.comm	_PIO_ADDR_LS,4,2                ## @PIO_ADDR_LS
	.no_dead_strip	_advk_pcie_check_pio_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function advk_pcie_check_pio_status
_advk_pcie_check_pio_status:            ; @advk_pcie_check_pio_status
	.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	x21, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _PIO_STAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIO_STAT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_advk_readl
	mov	x20, x0
Lloh3:
	adrp	x8, _PIO_COMPLETION_STATUS_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIO_COMPLETION_STATUS_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _PIO_COMPLETION_STATUS_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PIO_COMPLETION_STATUS_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w8, w8, w9
	cmp	w8, #128
	b.gt	LBB0_4
; %bb.1:
	cbz	w8, LBB0_8
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.3:
Lloh9:
	adrp	x22, l_.str@PAGE
Lloh10:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_10
LBB0_4:
	cmp	w8, #130
	b.eq	LBB0_9
; %bb.5:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.6:
Lloh11:
	adrp	x22, l_.str.1@PAGE
Lloh12:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_7:
Lloh13:
	adrp	x22, l_.str.3@PAGE
Lloh14:
	add	x22, x22, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_8:
	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
LBB0_9:
Lloh15:
	adrp	x22, l_.str.2@PAGE
Lloh16:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_10:
Lloh17:
	adrp	x8, _PIO_NON_POSTED_REQ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PIO_NON_POSTED_REQ@GOTPAGEOFF]
Lloh19:
	adrp	x9, l_.str.4@PAGE
Lloh20:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh21:
	adrp	x10, l_.str.5@PAGE
Lloh22:
	add	x10, x10, l_.str.5@PAGEOFF
Lloh23:
	ldr	w8, [x8]
	tst	w8, w20
	csel	x23, x10, x9, eq
Lloh24:
	adrp	x8, _PIO_ADDR_LS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PIO_ADDR_LS@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_advk_readl
	mov	x5, x0
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	mov	x3, x22
	mov	x4, x20
	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
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PIO_STAT,4,2                   ; @PIO_STAT
	.comm	_PIO_COMPLETION_STATUS_MASK,4,2 ; @PIO_COMPLETION_STATUS_MASK
	.comm	_PIO_COMPLETION_STATUS_SHIFT,4,2 ; @PIO_COMPLETION_STATUS_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UR"

l_.str.1:                               ; @.str.1
	.asciz	"CRS"

l_.str.2:                               ; @.str.2
	.asciz	"CA"

l_.str.3:                               ; @.str.3
	.asciz	"Unknown"

	.comm	_PIO_NON_POSTED_REQ,4,2         ; @PIO_NON_POSTED_REQ
l_.str.4:                               ; @.str.4
	.asciz	"Non-posted"

l_.str.5:                               ; @.str.5
	.asciz	"Posted"

l_.str.6:                               ; @.str.6
	.asciz	"%s PIO Response Status: %s, %#x @ %#x\n"

	.comm	_PIO_ADDR_LS,4,2                ; @PIO_ADDR_LS
	.no_dead_strip	_advk_pcie_check_pio_status
.subsections_via_symbols
