	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scan_behind_bridge
_scan_behind_bridge:                    ## @scan_behind_bridge
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PCI_BASE_ADDRESS_0@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, -112(%rbp)
	movq	_PCI_BASE_ADDRESS_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -108(%rbp)
	movq	_PCI_BASE_ADDRESS_2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movq	_PCI_BASE_ADDRESS_3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)
	movq	_PCI_BASE_ADDRESS_4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	_PCI_BASE_ADDRESS_5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	movl	$0, -88(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_36
## %bb.1:
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	_ibmphp_pci_bus@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	%r14d, (%rax)
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_debug
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_debug
	movq	_PCI_VENDOR_ID@GOTPCREL(%rip), %r14
	leaq	-168(%rbp), %rbx
	xorl	%ecx, %ecx
	movl	$0, -140(%rbp)                  ## 4-byte Folded Spill
	movl	%r12d, -156(%rbp)               ## 4-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_14 Depth 3
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movl	$0, (%rax,%rcx,4)
	xorl	%esi, %esi
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_6 Depth=2
	movl	-156(%rbp), %r12d               ## 4-byte Reload
	movq	_PCI_VENDOR_ID@GOTPCREL(%rip), %r14
	leaq	-168(%rbp), %rbx
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	-136(%rbp), %rcx                ## 8-byte Reload
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=2
	movl	-144(%rbp), %esi                ## 4-byte Reload
	incl	%esi
	cmpl	$8, %esi
	je	LBB0_21
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_14 Depth 3
	movl	%ecx, %edi
	movl	%esi, -144(%rbp)                ## 4-byte Spill
	callq	_PCI_DEVFN
	movl	%eax, %r15d
	movq	(%r13), %rdi
	movl	(%r14), %edx
	movl	%eax, %esi
	movq	%rbx, %rcx
	callq	_pci_bus_read_config_word
	movq	-168(%rbp), %rax
	movq	_PCI_VENDOR_ID_NOTVALID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	(%r13), %rdi
	movq	_PCI_HEADER_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %esi
	leaq	-152(%rbp), %rcx
	callq	_pci_bus_read_config_byte
	movq	(%r13), %rdi
	movq	_PCI_CLASS_REVISION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, -116(%rbp)               ## 4-byte Spill
	movl	%r15d, %esi
	leaq	-148(%rbp), %rcx
	callq	_pci_bus_read_config_dword
	movl	-152(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_debug
	movl	-152(%rbp), %eax
	andl	$127, %eax
	movq	_PCI_HEADER_TYPE_BRIDGE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_31
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	-148(%rbp), %eax
	sarl	$8, %eax
	movl	%eax, -148(%rbp)
	movq	_PCI_CLASS_NOT_DEFINED_VGA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_32
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	_PCI_CLASS_DISPLAY_VGA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	je	LBB0_33
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	incl	-140(%rbp)                      ## 4-byte Folded Spill
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movl	$1, (%rax,%rcx,4)
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=2
	xorl	%r14d, %r14d
	movl	%r12d, %ebx
	xorl	%r15d, %r15d
	movl	-116(%rbp), %r12d               ## 4-byte Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=3
	andl	$-4, %eax
	negl	%eax
	cltq
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	addq	%rax, 16(%rcx)
LBB0_12:                                ##   in Loop: Header=BB0_14 Depth=3
	movq	%r12, %r13
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=3
	movl	-116(%rbp), %r12d               ## 4-byte Reload
	movslq	%r15d, %r14
	incl	%r15d
	movl	-108(%rbp,%r14,4), %ebx
	incq	%r14
	testl	%ebx, %ebx
	je	LBB0_3
LBB0_14:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%r13), %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	$-1, %ecx
	callq	_pci_bus_write_config_dword
	movl	%r12d, %esi
	movq	%r13, %r12
	movq	(%r13), %rdi
	leaq	-80(,%r14,4), %r13
	addq	%rbp, %r13
	movl	%ebx, %edx
	movq	%r13, %rcx
	callq	_pci_bus_read_config_dword
	movl	-80(%rbp,%r14,4), %esi
	leaq	L_.str.6(%rip), %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_debug
	movl	-80(%rbp,%r14,4), %r8d
	testl	%r8d, %r8d
	je	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=3
	leaq	L_.str.7(%rip), %rdi
	movl	%r15d, %esi
	movq	-136(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	-144(%rbp), %ecx                ## 4-byte Reload
	xorl	%eax, %eax
	callq	_debug
	movl	(%r13), %eax
	movq	_PCI_BASE_ADDRESS_SPACE_IO@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=3
	movl	%eax, %ecx
	andl	$-16, %ecx
	negl	%ecx
	movslq	%ecx, %rcx
	movq	_PCI_BASE_ADDRESS_MEM_PREFETCH@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	movq	%r12, %r13
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=3
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	addq	%rcx, 24(%rdx)
	jmp	LBB0_20
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=3
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	addq	%rcx, 32(%rdx)
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=3
	movq	_PCI_BASE_ADDRESS_MEM_TYPE_64@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	$1, %eax
	sbbl	$-1, %r15d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	cmpq	$32, %rcx
	jne	LBB0_2
## %bb.22:
	xorl	%ecx, %ecx
	cmpl	$0, -140(%rbp)                  ## 4-byte Folded Reload
	sete	%cl
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	%ecx, 8(%rax)
	movq	16(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_25
## %bb.23:
	movq	_IOBRIDGE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_25
## %bb.24:
	movq	%rcx, 16(%rax)
LBB0_25:
	movq	32(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_28
## %bb.26:
	movq	_MEMBRIDGE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_28
## %bb.27:
	movq	%rcx, 32(%rax)
LBB0_28:
	movq	24(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_36
## %bb.29:
	movq	_MEMBRIDGE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_36
## %bb.30:
	movq	%rcx, 24(%rax)
	jmp	LBB0_36
LBB0_31:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_35
LBB0_32:
	leaq	L_.str.4(%rip), %rdi
	movq	-136(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_34
LBB0_33:
	leaq	L_.str.5(%rip), %rdi
	movl	%ecx, %esi
LBB0_34:
	xorl	%eax, %eax
	callq	_err
LBB0_35:
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	$1, 8(%rax)
LBB0_36:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_38
## %bb.37:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_BASE_ADDRESS_0,4,2         ## @PCI_BASE_ADDRESS_0
	.comm	_PCI_BASE_ADDRESS_1,4,2         ## @PCI_BASE_ADDRESS_1
	.comm	_PCI_BASE_ADDRESS_2,4,2         ## @PCI_BASE_ADDRESS_2
	.comm	_PCI_BASE_ADDRESS_3,4,2         ## @PCI_BASE_ADDRESS_3
	.comm	_PCI_BASE_ADDRESS_4,4,2         ## @PCI_BASE_ADDRESS_4
	.comm	_PCI_BASE_ADDRESS_5,4,2         ## @PCI_BASE_ADDRESS_5
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ibmphp_pci_bus,8,3             ## @ibmphp_pci_bus
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"the bus_no behind the bridge is %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"scanning devices behind the bridge...\n"

	.comm	_PCI_VENDOR_ID,4,2              ## @PCI_VENDOR_ID
	.comm	_PCI_VENDOR_ID_NOTVALID,8,3     ## @PCI_VENDOR_ID_NOTVALID
	.comm	_PCI_HEADER_TYPE,4,2            ## @PCI_HEADER_TYPE
	.comm	_PCI_CLASS_REVISION,4,2         ## @PCI_CLASS_REVISION
L_.str.2:                               ## @.str.2
	.asciz	"hdr_type behind the bridge is %x\n"

	.comm	_PCI_HEADER_TYPE_BRIDGE,4,2     ## @PCI_HEADER_TYPE_BRIDGE
L_.str.3:                               ## @.str.3
	.asciz	"embedded bridges not supported for hot-plugging.\n"

	.comm	_PCI_CLASS_NOT_DEFINED_VGA,4,2  ## @PCI_CLASS_NOT_DEFINED_VGA
L_.str.4:                               ## @.str.4
	.asciz	"The device %x is VGA compatible and as is not supported for hot plugging.  Please choose another device.\n"

	.comm	_PCI_CLASS_DISPLAY_VGA,4,2      ## @PCI_CLASS_DISPLAY_VGA
L_.str.5:                               ## @.str.5
	.asciz	"The device %x is not supported for hot plugging.  Please choose another device.\n"

L_.str.6:                               ## @.str.6
	.asciz	"what is bar[count]? %x, count = %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"count %d device %x function %x wants %x resources\n"

	.comm	_PCI_BASE_ADDRESS_SPACE_IO,4,2  ## @PCI_BASE_ADDRESS_SPACE_IO
	.comm	_PCI_BASE_ADDRESS_MEM_PREFETCH,4,2 ## @PCI_BASE_ADDRESS_MEM_PREFETCH
	.comm	_PCI_BASE_ADDRESS_MEM_TYPE_64,4,2 ## @PCI_BASE_ADDRESS_MEM_TYPE_64
	.comm	_IOBRIDGE,8,3                   ## @IOBRIDGE
	.comm	_MEMBRIDGE,8,3                  ## @MEMBRIDGE
	.no_dead_strip	_scan_behind_bridge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scan_behind_bridge
_scan_behind_bridge:                    ; @scan_behind_bridge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	mov	x21, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _PCI_BASE_ADDRESS_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_BASE_ADDRESS_0@GOTPAGEOFF]
Lloh5:
	adrp	x9, _PCI_BASE_ADDRESS_1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PCI_BASE_ADDRESS_1@GOTPAGEOFF]
Lloh7:
	ldr	w27, [x8]
Lloh8:
	ldr	w8, [x9]
	stp	w27, w8, [sp, #84]
Lloh9:
	adrp	x8, _PCI_BASE_ADDRESS_2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_BASE_ADDRESS_2@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _PCI_BASE_ADDRESS_3@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PCI_BASE_ADDRESS_3@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #92]
Lloh15:
	adrp	x8, _PCI_BASE_ADDRESS_4@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCI_BASE_ADDRESS_4@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _PCI_BASE_ADDRESS_5@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PCI_BASE_ADDRESS_5@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #100]
	str	wzr, [sp, #108]
Lloh21:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_33
; %bb.1:
Lloh24:
	adrp	x20, _ibmphp_pci_bus@GOTPAGE
Lloh25:
	ldr	x20, [x20, _ibmphp_pci_bus@GOTPAGEOFF]
	ldr	x8, [x20]
	str	w21, [x8]
	str	x21, [sp]
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debug
	mov	x26, #0
	mov	w28, #0
	add	x22, sp, #84
Lloh30:
	adrp	x21, l_.str.6@PAGE
Lloh31:
	add	x21, x21, l_.str.6@PAGEOFF
	str	w27, [sp, #44]                  ; 4-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_13 Depth 3
	mov	w23, #0
	ldr	x8, [x19]
	str	wzr, [x8, x26, lsl #2]
	mov	x24, x26
	str	x26, [sp, #48]                  ; 8-byte Folded Spill
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldr	w27, [sp, #44]                  ; 4-byte Folded Reload
	ldr	x26, [sp, #48]                  ; 8-byte Folded Reload
	ldr	w28, [sp, #60]                  ; 4-byte Folded Reload
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	w23, w23, #1
	cmp	w23, #8
	b.eq	LBB0_19
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_13 Depth 3
	mov	x0, x24
	mov	x1, x23
	bl	_PCI_DEVFN
	mov	x25, x0
	ldr	x0, [x20]
Lloh32:
	adrp	x8, _PCI_VENDOR_ID@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PCI_VENDOR_ID@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	add	x3, sp, #72
	mov	x1, x25
	bl	_pci_bus_read_config_word
	ldr	x8, [sp, #72]
Lloh35:
	adrp	x9, _PCI_VENDOR_ID_NOTVALID@GOTPAGE
Lloh36:
	ldr	x9, [x9, _PCI_VENDOR_ID_NOTVALID@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x0, [x20]
Lloh38:
	adrp	x8, _PCI_HEADER_TYPE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _PCI_HEADER_TYPE@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	add	x3, sp, #68
	mov	x1, x25
	bl	_pci_bus_read_config_byte
	ldr	x0, [x20]
Lloh41:
	adrp	x8, _PCI_CLASS_REVISION@GOTPAGE
Lloh42:
	ldr	x8, [x8, _PCI_CLASS_REVISION@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	add	x3, sp, #64
	mov	x1, x25
	bl	_pci_bus_read_config_dword
	ldr	w8, [sp, #68]
	str	x8, [sp]
Lloh44:
	adrp	x0, l_.str.2@PAGE
Lloh45:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_debug
	ldr	w8, [sp, #68]
	and	w8, w8, #0x7f
Lloh46:
	adrp	x9, _PCI_HEADER_TYPE_BRIDGE@GOTPAGE
Lloh47:
	ldr	x9, [x9, _PCI_HEADER_TYPE_BRIDGE@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_29
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w8, [sp, #64]
	asr	w8, w8, #8
	str	w8, [sp, #64]
Lloh49:
	adrp	x9, _PCI_CLASS_NOT_DEFINED_VGA@GOTPAGE
Lloh50:
	ldr	x9, [x9, _PCI_CLASS_NOT_DEFINED_VGA@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_30
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
Lloh52:
	adrp	x9, _PCI_CLASS_DISPLAY_VGA@GOTPAGE
Lloh53:
	ldr	x9, [x9, _PCI_CLASS_DISPLAY_VGA@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_31
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=2
	add	w28, w28, #1
	ldr	x8, [x19]
	mov	w9, #1
	str	w9, [x8, x26, lsl #2]
	cbz	w27, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=2
	str	w28, [sp, #60]                  ; 4-byte Folded Spill
	mov	x26, #0
	mov	w28, #0
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=3
	and	w8, w8, #0xfffffffc
	neg	w8, w8
	ldr	x9, [x19, #16]
	add	x8, x9, w8, sxtw
	str	x8, [x19, #16]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=3
	sxtw	x8, w28
	add	x26, x8, #1
	ldr	w27, [x22, x26, lsl #2]
	mov	x28, x26
	cbz	w27, LBB0_3
LBB0_13:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x0, [x20]
	mov	x1, x25
	mov	x2, x27
	mov	w3, #-1
	bl	_pci_bus_write_config_dword
	ldr	x0, [x20]
	add	x8, sp, #112
	add	x26, x8, x26, lsl #2
	mov	x1, x25
	mov	x2, x27
	mov	x3, x26
	bl	_pci_bus_read_config_dword
	ldr	w8, [x26]
	mov	x9, x28
	stp	x8, x9, [sp]
	mov	x0, x21
	bl	_debug
	ldr	w8, [x26]
	cbz	w8, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=3
	stp	x23, x8, [sp, #16]
	mov	x8, x28
	stp	x8, x24, [sp]
Lloh55:
	adrp	x0, l_.str.7@PAGE
Lloh56:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_debug
	ldr	w8, [x26]
Lloh57:
	adrp	x9, _PCI_BASE_ADDRESS_SPACE_IO@GOTPAGE
Lloh58:
	ldr	x9, [x9, _PCI_BASE_ADDRESS_SPACE_IO@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=3
Lloh60:
	adrp	x9, _PCI_BASE_ADDRESS_MEM_PREFETCH@GOTPAGE
Lloh61:
	ldr	x9, [x9, _PCI_BASE_ADDRESS_MEM_PREFETCH@GOTPAGEOFF]
Lloh62:
	ldr	w10, [x9]
	and	w9, w8, #0xfffffff0
	neg	w9, w9
	sxtw	x9, w9
	and	w10, w10, w8
	cbz	w10, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=3
	ldr	x10, [x19, #24]
	add	x9, x10, x9
	str	x9, [x19, #24]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=3
	ldr	x10, [x19, #32]
	add	x9, x10, x9
	str	x9, [x19, #32]
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=3
Lloh63:
	adrp	x9, _PCI_BASE_ADDRESS_MEM_TYPE_64@GOTPAGE
Lloh64:
	ldr	x9, [x9, _PCI_BASE_ADDRESS_MEM_TYPE_64@GOTPAGEOFF]
Lloh65:
	ldr	w9, [x9]
	tst	w9, w8
	cinc	w28, w28, ne
	b	LBB0_12
LBB0_19:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x26, x26, #1
	cmp	x26, #32
	b.ne	LBB0_2
; %bb.20:
	cmp	w28, #0
	cset	w8, eq
	str	w8, [x19, #8]
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_23
; %bb.21:
Lloh66:
	adrp	x8, _IOBRIDGE@GOTPAGE
Lloh67:
	ldr	x8, [x8, _IOBRIDGE@GOTPAGEOFF]
Lloh68:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ge	LBB0_23
; %bb.22:
	str	x8, [x19, #16]
LBB0_23:
	ldr	x10, [x19, #32]
Lloh69:
	adrp	x8, _MEMBRIDGE@GOTPAGE
Lloh70:
	ldr	x8, [x8, _MEMBRIDGE@GOTPAGEOFF]
	cbz	x10, LBB0_26
; %bb.24:
	ldr	x9, [x8]
	cmp	x10, x9
	b.ge	LBB0_26
; %bb.25:
	str	x9, [x19, #32]
LBB0_26:
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_33
; %bb.27:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ge	LBB0_33
; %bb.28:
	str	x8, [x19, #24]
	b	LBB0_33
LBB0_29:
Lloh71:
	adrp	x0, l_.str.3@PAGE
Lloh72:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_32
LBB0_30:
	str	x26, [sp]
Lloh73:
	adrp	x0, l_.str.4@PAGE
Lloh74:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_32
LBB0_31:
	str	x26, [sp]
Lloh75:
	adrp	x0, l_.str.5@PAGE
Lloh76:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_32:
	bl	_err
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_33:
	ldur	x8, [x29, #-88]
Lloh77:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh78:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh79:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_35
; %bb.34:
	mov	x0, x19
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_35:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_BASE_ADDRESS_0,4,2         ; @PCI_BASE_ADDRESS_0
	.comm	_PCI_BASE_ADDRESS_1,4,2         ; @PCI_BASE_ADDRESS_1
	.comm	_PCI_BASE_ADDRESS_2,4,2         ; @PCI_BASE_ADDRESS_2
	.comm	_PCI_BASE_ADDRESS_3,4,2         ; @PCI_BASE_ADDRESS_3
	.comm	_PCI_BASE_ADDRESS_4,4,2         ; @PCI_BASE_ADDRESS_4
	.comm	_PCI_BASE_ADDRESS_5,4,2         ; @PCI_BASE_ADDRESS_5
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ibmphp_pci_bus,8,3             ; @ibmphp_pci_bus
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"the bus_no behind the bridge is %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"scanning devices behind the bridge...\n"

	.comm	_PCI_VENDOR_ID,4,2              ; @PCI_VENDOR_ID
	.comm	_PCI_VENDOR_ID_NOTVALID,8,3     ; @PCI_VENDOR_ID_NOTVALID
	.comm	_PCI_HEADER_TYPE,4,2            ; @PCI_HEADER_TYPE
	.comm	_PCI_CLASS_REVISION,4,2         ; @PCI_CLASS_REVISION
l_.str.2:                               ; @.str.2
	.asciz	"hdr_type behind the bridge is %x\n"

	.comm	_PCI_HEADER_TYPE_BRIDGE,4,2     ; @PCI_HEADER_TYPE_BRIDGE
l_.str.3:                               ; @.str.3
	.asciz	"embedded bridges not supported for hot-plugging.\n"

	.comm	_PCI_CLASS_NOT_DEFINED_VGA,4,2  ; @PCI_CLASS_NOT_DEFINED_VGA
l_.str.4:                               ; @.str.4
	.asciz	"The device %x is VGA compatible and as is not supported for hot plugging.  Please choose another device.\n"

	.comm	_PCI_CLASS_DISPLAY_VGA,4,2      ; @PCI_CLASS_DISPLAY_VGA
l_.str.5:                               ; @.str.5
	.asciz	"The device %x is not supported for hot plugging.  Please choose another device.\n"

l_.str.6:                               ; @.str.6
	.asciz	"what is bar[count]? %x, count = %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"count %d device %x function %x wants %x resources\n"

	.comm	_PCI_BASE_ADDRESS_SPACE_IO,4,2  ; @PCI_BASE_ADDRESS_SPACE_IO
	.comm	_PCI_BASE_ADDRESS_MEM_PREFETCH,4,2 ; @PCI_BASE_ADDRESS_MEM_PREFETCH
	.comm	_PCI_BASE_ADDRESS_MEM_TYPE_64,4,2 ; @PCI_BASE_ADDRESS_MEM_TYPE_64
	.comm	_IOBRIDGE,8,3                   ; @IOBRIDGE
	.comm	_MEMBRIDGE,8,3                  ; @MEMBRIDGE
	.no_dead_strip	_scan_behind_bridge
.subsections_via_symbols
