	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_allocate_cap_save_buffers  ## -- Begin function pci_allocate_cap_save_buffers
	.p2align	4, 0x90
_pci_allocate_cap_save_buffers:         ## @pci_allocate_cap_save_buffers
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_PCI_CAP_ID_EXP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCI_EXP_SAVE_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	callq	_pci_add_cap_save_buffer
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_pci_err
LBB0_2:
	movq	_PCI_CAP_ID_PCIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_pci_add_cap_save_buffer
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_pci_err
LBB0_4:
	movq	_PCI_EXT_CAP_ID_LTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_pci_add_ext_cap_save_buffer
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_pci_err
LBB0_6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pci_allocate_vc_save_buffers   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_CAP_ID_EXP,4,2             ## @PCI_CAP_ID_EXP
	.comm	_PCI_EXP_SAVE_REGS,4,2          ## @PCI_EXP_SAVE_REGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to preallocate PCI Express save buffer\n"

	.comm	_PCI_CAP_ID_PCIX,4,2            ## @PCI_CAP_ID_PCIX
L_.str.1:                               ## @.str.1
	.asciz	"unable to preallocate PCI-X save buffer\n"

	.comm	_PCI_EXT_CAP_ID_LTR,4,2         ## @PCI_EXT_CAP_ID_LTR
L_.str.2:                               ## @.str.2
	.asciz	"unable to allocate suspend buffer for LTR\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_allocate_cap_save_buffers  ; -- Begin function pci_allocate_cap_save_buffers
	.p2align	2
_pci_allocate_cap_save_buffers:         ; @pci_allocate_cap_save_buffers
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _PCI_CAP_ID_EXP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_CAP_ID_EXP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _PCI_EXP_SAVE_REGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_EXP_SAVE_REGS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	bl	_pci_add_cap_save_buffer
	cbz	w0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_pci_err
LBB0_2:
Lloh8:
	adrp	x8, _PCI_CAP_ID_PCIX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCI_CAP_ID_PCIX@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #4
	bl	_pci_add_cap_save_buffer
	cbz	w0, LBB0_4
; %bb.3:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_pci_err
LBB0_4:
Lloh13:
	adrp	x8, _PCI_EXT_CAP_ID_LTR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PCI_EXT_CAP_ID_LTR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #8
	bl	_pci_add_ext_cap_save_buffer
	cbz	w0, LBB0_6
; %bb.5:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_pci_err
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pci_allocate_vc_save_buffers
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_CAP_ID_EXP,4,2             ; @PCI_CAP_ID_EXP
	.comm	_PCI_EXP_SAVE_REGS,4,2          ; @PCI_EXP_SAVE_REGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to preallocate PCI Express save buffer\n"

	.comm	_PCI_CAP_ID_PCIX,4,2            ; @PCI_CAP_ID_PCIX
l_.str.1:                               ; @.str.1
	.asciz	"unable to preallocate PCI-X save buffer\n"

	.comm	_PCI_EXT_CAP_ID_LTR,4,2         ; @PCI_EXT_CAP_ID_LTR
l_.str.2:                               ; @.str.2
	.asciz	"unable to allocate suspend buffer for LTR\n"

.subsections_via_symbols
