	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_restore_config_dword
_pci_restore_config_dword:              ## @pci_restore_config_dword
	.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
	movl	%r8d, %r13d
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	leaq	-44(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	-44(%rbp), %ecx
	testl	%r13d, %r13d
	jne	LBB0_2
## %bb.1:
	cmpl	%r14d, %ecx
	je	LBB0_6
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	%r14d, %r8d
	callq	_pci_dbg
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_pci_write_config_dword
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.3:
	incl	%ebx
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	callq	_pci_read_config_dword
	cmpl	%r14d, -44(%rbp)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	callq	_mdelay
	movl	-44(%rbp), %ecx
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %r8d
	callq	_pci_dbg
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_pci_write_config_dword
	decl	%ebx
	cmpl	$1, %ebx
	jg	LBB0_4
LBB0_6:
	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	"restoring config space at offset %#x (was %#x, writing %#x)\n"

	.no_dead_strip	_pci_restore_config_dword
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_restore_config_dword
_pci_restore_config_dword:              ; @pci_restore_config_dword
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x4
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldr	w3, [sp, #12]
	cbnz	w23, LBB0_2
; %bb.1:
	cmp	w3, w19
	b.eq	LBB0_6
LBB0_2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x4, x19
	bl	_pci_dbg
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_pci_write_config_dword
	cmp	w22, #1
	b.lt	LBB0_6
; %bb.3:
	add	w23, w22, #1
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
	cmp	w8, w19
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	bl	_mdelay
	ldr	w3, [sp, #12]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x4, x19
	bl	_pci_dbg
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_pci_write_config_dword
	sub	w23, w23, #1
	cmp	w23, #1
	b.gt	LBB0_4
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"restoring config space at offset %#x (was %#x, writing %#x)\n"

	.no_dead_strip	_pci_restore_config_dword
.subsections_via_symbols
