	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tlp_read_packet
_tlp_read_packet:                       ## @tlp_read_packet
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_TLP_LOOP@GOTPCREL(%rip), %rcx
	movq	_PCIBIOS_DEVICE_NOT_FOUND@GOTPCREL(%rip), %rax
	cmpl	$0, (%rcx)
	jle	LBB0_13
## %bb.1:
	movq	%rdi, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_RP_RXCPL_EOP@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_10
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$5, %edi
	callq	_udelay
	incl	%r14d
	movq	_TLP_LOOP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_RP_RXCPL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_cra_readl
	movl	%eax, %ebx
	movq	_RP_RXCPL_SOP@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_RP_RXCPL_EOP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	%ebx, %ecx
	xorl	%eax, %eax
	orl	%r15d, %ecx
	je	LBB0_4
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_RP_RXCPL_REG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_cra_readl
	movl	%eax, %r13d
	movq	_RP_RXCPL_REG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_cra_readl
	movq	_RP_RXCPL_SOP@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edi
	callq	_TLP_COMP_STATUS
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$1, %r15d
	jmp	LBB0_9
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r15d
	jmp	LBB0_5
LBB0_6:
	movq	_PCIBIOS_DEVICE_NOT_FOUND@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	_PCIBIOS_DEVICE_NOT_FOUND@GOTPCREL(%rip), %rax
	jne	LBB0_13
## %bb.11:
	movq	_PCIBIOS_SUCCESSFUL@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.12:
	movl	%r13d, (%rcx)
LBB0_13:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLP_LOOP,4,2                   ## @TLP_LOOP
	.comm	_RP_RXCPL_STATUS,4,2            ## @RP_RXCPL_STATUS
	.comm	_RP_RXCPL_SOP,4,2               ## @RP_RXCPL_SOP
	.comm	_RP_RXCPL_EOP,4,2               ## @RP_RXCPL_EOP
	.comm	_RP_RXCPL_REG0,4,2              ## @RP_RXCPL_REG0
	.comm	_RP_RXCPL_REG1,4,2              ## @RP_RXCPL_REG1
	.comm	_PCIBIOS_DEVICE_NOT_FOUND,4,2   ## @PCIBIOS_DEVICE_NOT_FOUND
	.comm	_PCIBIOS_SUCCESSFUL,4,2         ## @PCIBIOS_SUCCESSFUL
	.no_dead_strip	_tlp_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tlp_read_packet
_tlp_read_packet:                       ; @tlp_read_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x25, _TLP_LOOP@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TLP_LOOP@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x20, x0
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	w26, #0
	mov	w24, #0
	mov	w21, #1
Lloh2:
	adrp	x27, _RP_RXCPL_STATUS@GOTPAGE
Lloh3:
	ldr	x27, [x27, _RP_RXCPL_STATUS@GOTPAGEOFF]
Lloh4:
	adrp	x28, _RP_RXCPL_SOP@GOTPAGE
Lloh5:
	ldr	x28, [x28, _RP_RXCPL_SOP@GOTPAGEOFF]
Lloh6:
	adrp	x19, _RP_RXCPL_EOP@GOTPAGE
Lloh7:
	ldr	x19, [x19, _RP_RXCPL_EOP@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	tst	w8, w22
	b.ne	LBB0_9
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #5
	bl	_udelay
	add	w26, w26, #1
	ldr	w8, [x25]
	cmp	w26, w8
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x27]
	mov	x0, x20
	bl	_cra_readl
	mov	x22, x0
	ldr	w8, [x28]
	tst	w8, w0
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	and	w8, w8, w22
	orr	w8, w8, w24
	cbz	w8, LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh8:
	adrp	x8, _RP_RXCPL_REG0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RP_RXCPL_REG0@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_cra_readl
	mov	x23, x0
Lloh11:
	adrp	x8, _RP_RXCPL_REG1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RP_RXCPL_REG1@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_cra_readl
	ldr	w8, [x28]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_TLP_COMP_STATUS
	mov	x21, x0
	mov	w24, #1
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w24, #0
	b	LBB0_3
LBB0_9:
	cbz	w21, LBB0_12
LBB0_10:
Lloh14:
	adrp	x8, _PCIBIOS_DEVICE_NOT_FOUND@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCIBIOS_DEVICE_NOT_FOUND@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x8, LBB0_14
; %bb.13:
	str	w23, [x8]
LBB0_14:
Lloh16:
	adrp	x8, _PCIBIOS_SUCCESSFUL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PCIBIOS_SUCCESSFUL@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TLP_LOOP,4,2                   ; @TLP_LOOP
	.comm	_RP_RXCPL_STATUS,4,2            ; @RP_RXCPL_STATUS
	.comm	_RP_RXCPL_SOP,4,2               ; @RP_RXCPL_SOP
	.comm	_RP_RXCPL_EOP,4,2               ; @RP_RXCPL_EOP
	.comm	_RP_RXCPL_REG0,4,2              ; @RP_RXCPL_REG0
	.comm	_RP_RXCPL_REG1,4,2              ; @RP_RXCPL_REG1
	.comm	_PCIBIOS_DEVICE_NOT_FOUND,4,2   ; @PCIBIOS_DEVICE_NOT_FOUND
	.comm	_PCIBIOS_SUCCESSFUL,4,2         ; @PCIBIOS_SUCCESSFUL
	.no_dead_strip	_tlp_read_packet
.subsections_via_symbols
