	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd64_read_dct_pci_cfg
_amd64_read_dct_pci_cfg:                ## @amd64_read_dct_pci_cfg
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	addl	$-15, %eax
	cmpl	$7, %eax
	ja	LBB0_14
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	testl	%esi, %esi
	jne	LBB0_4
## %bb.3:
	cmpl	$256, %r15d                     ## imm = 0x100
	jl	LBB0_14
	jmp	LBB0_4
LBB0_6:
	testl	%esi, %esi
	je	LBB0_14
## %bb.7:
	movq	%rbx, %rdi
	callq	_dct_ganging_enabled
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_5
## %bb.8:
	addl	$256, %r15d                     ## imm = 0x100
	jmp	LBB0_14
LBB0_9:
	testl	%esi, %esi
	je	LBB0_11
## %bb.10:
	movl	$3, %eax
	cmpl	$48, 4(%rbx)
	je	LBB0_12
LBB0_11:
	movl	%esi, %eax
LBB0_12:
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_f15h_select_dct
	jmp	LBB0_14
LBB0_13:
	testl	%esi, %esi
	je	LBB0_14
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	8(%rbx), %edi
	movl	%r15d, %esi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_amd64_read_pci_cfg             ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_9
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_amd64_read_dct_pci_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd64_read_dct_pci_cfg
_amd64_read_dct_pci_cfg:                ; @amd64_read_dct_pci_cfg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	ldr	w8, [x0]
	sub	w8, w8, #15
	cmp	w8, #7
	b.hi	LBB0_15
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	cbnz	w1, LBB0_12
; %bb.3:
	cmp	w20, #256
	b.lt	LBB0_15
	b	LBB0_12
LBB0_4:
	cbz	w1, LBB0_15
; %bb.5:
	mov	x0, x21
	bl	_dct_ganging_enabled
	cbz	w0, LBB0_14
; %bb.6:
	mov	w0, #0
	b	LBB0_13
LBB0_7:
	cbz	w1, LBB0_10
; %bb.8:
	ldr	w8, [x21, #4]
	cmp	w8, #48
	b.ne	LBB0_10
; %bb.9:
	mov	w1, #3
LBB0_10:
	mov	x0, x21
	bl	_f15h_select_dct
	b	LBB0_15
LBB0_11:
	cbz	w1, LBB0_15
LBB0_12:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
	add	w20, w20, #256
LBB0_15:
	ldr	w0, [x21, #8]
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_amd64_read_pci_cfg
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_amd64_read_dct_pci_cfg
.subsections_via_symbols
