	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpqhp_process_SS               ## -- Begin function cpqhp_process_SS
	.p2align	4, 0x90
_cpqhp_process_SS:                      ## @cpqhp_process_SS
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movq	(%rsi), %r14
	movl	4(%rdi), %edi
	xorl	%r15d, %r15d
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_cpqhp_slot_find
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_cpqhp_find_slot
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%r13), %eax
	movl	%eax, (%r12)
	movq	(%r13), %rdi
	movl	8(%r13), %esi
	callq	_PCI_DEVFN
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$11, %edx
	leaq	-80(%rbp), %rcx
	callq	_pci_bus_read_config_byte
	testl	%eax, %eax
	jne	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rax
	movq	_PCI_BASE_CLASS_DISPLAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_REMOVE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_PCI_HEADER_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	leaq	-72(%rbp), %rcx
	callq	_pci_bus_read_config_byte
	testl	%eax, %eax
	jne	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax
	andl	$127, %eax
	xorl	%r15d, %r15d
	movq	_PCI_HEADER_TYPE_BRIDGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_PCI_BRIDGE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	leaq	-64(%rbp), %rcx
	callq	_pci_bus_read_config_byte
	testl	%eax, %eax
	jne	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_PCI_BRIDGE_CTL_VGA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r15d, %r15d
	testq	%rax, -64(%rbp)
	jne	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_cpqhp_slot_find
	testl	%r15d, %r15d
	setne	%bl
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r13
	incl	%r14d
	testl	%r15d, %r15d
	je	LBB0_3
	jmp	LBB0_12
LBB0_1:
	xorl	%ebx, %ebx
LBB0_12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_cpqhp_slot_find
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	testb	%bl, %bl
	jne	LBB0_15
## %bb.14:
	xorl	%esi, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpl	$0, (%rdx)
	sete	%sil
	movq	%rax, %rdi
	callq	_remove_board
	jmp	LBB0_16
LBB0_15:
	testb	%bl, %bl
	movl	$1, %eax
	cmovnel	%r15d, %eax
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_BASE_CLASS_DISPLAY,8,3     ## @PCI_BASE_CLASS_DISPLAY
	.comm	_REMOVE_NOT_SUPPORTED,4,2       ## @REMOVE_NOT_SUPPORTED
	.comm	_PCI_HEADER_TYPE,4,2            ## @PCI_HEADER_TYPE
	.comm	_PCI_HEADER_TYPE_BRIDGE,8,3     ## @PCI_HEADER_TYPE_BRIDGE
	.comm	_PCI_BRIDGE_CONTROL,4,2         ## @PCI_BRIDGE_CONTROL
	.comm	_PCI_BRIDGE_CTL_VGA,8,3         ## @PCI_BRIDGE_CTL_VGA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpqhp_process_SS               ; -- Begin function cpqhp_process_SS
	.p2align	2
_cpqhp_process_SS:                      ; @cpqhp_process_SS
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
	ldr	x21, [x0, #8]
	ldr	x20, [x1]
	ldr	w0, [x0, #4]
	mov	x1, x20
	mov	w2, #0
	bl	_cpqhp_slot_find
	mov	x23, x0
	mov	x0, x19
	mov	x1, x20
	bl	_cpqhp_find_slot
	cbz	x23, LBB0_12
; %bb.1:
	mov	w22, #1
Lloh0:
	adrp	x24, _PCI_BASE_CLASS_DISPLAY@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PCI_BASE_CLASS_DISPLAY@GOTPAGEOFF]
Lloh2:
	adrp	x25, _REMOVE_NOT_SUPPORTED@GOTPAGE
Lloh3:
	ldr	x25, [x25, _REMOVE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh4:
	adrp	x26, _PCI_HEADER_TYPE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _PCI_HEADER_TYPE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23, #12]
	str	w8, [x21]
	ldr	x0, [x23]
	ldr	w1, [x23, #8]
	bl	_PCI_DEVFN
	mov	x23, x0
	add	x3, sp, #24
	mov	x0, x21
	mov	x1, x23
	mov	w2, #11
	bl	_pci_bus_read_config_byte
	cbnz	w0, LBB0_17
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #24]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w28, [x25]
	b	LBB0_10
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x26]
	add	x3, sp, #16
	mov	x0, x21
	mov	x1, x23
	bl	_pci_bus_read_config_byte
	cbnz	w0, LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #16]
	and	x8, x8, #0x7f
Lloh6:
	adrp	x9, _PCI_HEADER_TYPE_BRIDGE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PCI_HEADER_TYPE_BRIDGE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh9:
	adrp	x8, _PCI_BRIDGE_CONTROL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_BRIDGE_CONTROL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x23
	bl	_pci_bus_read_config_byte
	cbnz	w0, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]
Lloh12:
	adrp	x9, _PCI_BRIDGE_CTL_VGA@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PCI_BRIDGE_CTL_VGA@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	w10, [x25]
	tst	x9, x8
	csel	w28, wzr, w10, eq
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w28, #0
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19, #4]
	mov	x1, x20
	mov	x2, x22
	bl	_cpqhp_slot_find
	cmp	w28, #0
	cset	w27, ne
	cbz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, x0
	add	w22, w22, #1
	cbz	w28, LBB0_2
	b	LBB0_13
LBB0_12:
	mov	w28, #0
	mov	w27, #0
LBB0_13:
	ldr	w0, [x19, #4]
	mov	x1, x20
	mov	w2, #0
	bl	_cpqhp_slot_find
	cbz	x0, LBB0_16
; %bb.14:
	tbnz	w27, #0, LBB0_16
; %bb.15:
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w1, eq
	mov	x2, x19
	bl	_remove_board
	b	LBB0_17
LBB0_16:
	cmp	w27, #0
	csinc	w0, w28, wzr, ne
LBB0_17:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_BASE_CLASS_DISPLAY,8,3     ; @PCI_BASE_CLASS_DISPLAY
	.comm	_REMOVE_NOT_SUPPORTED,4,2       ; @REMOVE_NOT_SUPPORTED
	.comm	_PCI_HEADER_TYPE,4,2            ; @PCI_HEADER_TYPE
	.comm	_PCI_HEADER_TYPE_BRIDGE,8,3     ; @PCI_HEADER_TYPE_BRIDGE
	.comm	_PCI_BRIDGE_CONTROL,4,2         ; @PCI_BRIDGE_CONTROL
	.comm	_PCI_BRIDGE_CTL_VGA,8,3         ; @PCI_BRIDGE_CTL_VGA
.subsections_via_symbols
