	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpc_wait_rp_inactive
_dpc_wait_rp_inactive:                  ## @dpc_wait_rp_inactive
	.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	_jiffies@GOTPCREL(%rip), %rcx
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	(%rcx), %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movl	(%rdi), %r15d
	movq	_PCI_EXP_DPC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r15d, %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_word
	movq	_PCI_EXP_DPC_RP_BUSY@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	xorl	%eax, %eax
	testl	%ecx, -44(%rbp)
	je	LBB0_7
## %bb.1:
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	callq	_msleep
	movq	_PCI_EXP_DPC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r15d, %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_pci_read_config_word
	movl	(%r13), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_2
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movl	(%r13), %eax
	testl	%eax, -44(%rbp)
	movl	$0, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_pci_warn
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.comm	_PCI_EXP_DPC_STATUS,4,2         ## @PCI_EXP_DPC_STATUS
	.comm	_PCI_EXP_DPC_RP_BUSY,4,2        ## @PCI_EXP_DPC_RP_BUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"root port still busy\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_dpc_wait_rp_inactive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpc_wait_rp_inactive
_dpc_wait_rp_inactive:                  ; @dpc_wait_rp_inactive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x21, _jiffies@GOTPAGE
Lloh1:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldr	x20, [x21]
Lloh2:
	adrp	x8, _HZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh4:
	ldr	x25, [x8]
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
	ldr	w22, [x0]
Lloh5:
	adrp	x23, _PCI_EXP_DPC_STATUS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _PCI_EXP_DPC_STATUS@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w1, w8, w22
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_word
	ldr	w8, [sp, #12]
Lloh7:
	adrp	x24, _PCI_EXP_DPC_RP_BUSY@GOTPAGE
Lloh8:
	ldr	x24, [x24, _PCI_EXP_DPC_RP_BUSY@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	add	x20, x25, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	mov	x1, x20
	bl	_time_after
	cbnz	w0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #10
	bl	_msleep
	ldr	w8, [x23]
	add	w1, w8, w22
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_word
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_pci_warn
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_PCI_EXP_DPC_STATUS,4,2         ; @PCI_EXP_DPC_STATUS
	.comm	_PCI_EXP_DPC_RP_BUSY,4,2        ; @PCI_EXP_DPC_RP_BUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"root port still busy\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_dpc_wait_rp_inactive
.subsections_via_symbols
