	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_gmch_probe               ## -- Begin function intel_gmch_probe
	.p2align	4, 0x90
_intel_gmch_probe:                      ## @intel_gmch_probe
	.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
	movq	_intel_private@GOTPCREL(%rip), %r12
	cmpq	$0, 8(%r12)
	je	LBB0_4
## %bb.1:
	incl	24(%r12)
LBB0_2:
	movl	$1, %ebx
	jmp	LBB0_3
LBB0_4:
	movq	_intel_gtt_chipsets@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_11
## %bb.5:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	$24, %r14d
	xorl	%r13d, %r13d
	movq	%rax, %rcx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rbx), %rdx
	cmpq	(%rcx), %rdx
	je	LBB0_13
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	leaq	(%rax,%r14), %rcx
	cmpq	$0, 8(%rax,%r14)
	leaq	24(%r14), %r14
	je	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	jne	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rcx), %rdi
	callq	_find_gmch
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_intel_gtt_chipsets@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_7
LBB0_12:
	movq	8(%r12), %rax
	movl	%r13d, %r13d
	jmp	LBB0_16
LBB0_13:
	movl	%r13d, %r13d
	movq	%rbx, %rdi
	callq	_pci_dev_get
	movq	%rax, (%r12)
	jmp	LBB0_15
LBB0_14:
	movl	%r13d, %r13d
LBB0_15:
	movq	_intel_gtt_chipsets@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(,%r13,2), %rcx
	addq	%r13, %rcx
	movq	16(%rax,%rcx,8), %rax
	movq	%rax, 8(%r12)
LBB0_16:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_11
## %bb.17:
	incl	24(%r12)
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.18:
	movq	_intel_fake_agp_driver@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rcx)
	movq	%r12, 8(%rcx)
	movq	%r15, (%rcx)
LBB0_19:
	movq	%r15, %rdi
	callq	_pci_dev_get
	movq	%rax, 16(%r12)
	addq	$8, %r15
	movq	_intel_gtt_chipsets@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(,%r13,2), %rcx
	addq	%r13, %rcx
	movq	8(%rax,%rcx,8), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	movq	(%r12), %r14
	movq	8(%r12), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pci_set_dma_mask
	movq	(%r12), %r14
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	jmp	LBB0_23
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_22:
	movl	%ebx, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pci_set_consistent_dma_mask
LBB0_23:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_intel_gtt_init
	testq	%rax, %rax
	je	LBB0_2
## %bb.24:
	xorl	%eax, %eax
	callq	_intel_gmch_remove
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_intel_private,32,3             ## @intel_private
	.comm	_intel_gtt_chipsets,8,3         ## @intel_gtt_chipsets
	.comm	_intel_fake_agp_driver,4,2      ## @intel_fake_agp_driver
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Intel %s Chipset\n"

L_.str.1:                               ## @.str.1
	.asciz	"set gfx device dma mask %d-bit failed!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_gmch_probe               ; -- Begin function intel_gmch_probe
	.p2align	2
_intel_gmch_probe:                      ; @intel_gmch_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x22, _intel_private@GOTPAGE
Lloh1:
	ldr	x22, [x22, _intel_private@GOTPAGEOFF]
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x22, #24]
	add	w8, w8, #1
	str	w8, [x22, #24]
	mov	w0, #1
	b	LBB0_18
LBB0_2:
Lloh2:
	adrp	x23, _intel_gtt_chipsets@GOTPAGE
Lloh3:
	ldr	x23, [x23, _intel_gtt_chipsets@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_17
; %bb.3:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x24, #0
	mov	w25, #32
	mov	x9, x8
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x21]
	ldr	x9, [x9]
	cmp	x10, x9
	b.eq	LBB0_10
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	add	x9, x8, x25
	ldr	x10, [x9], #-8
	add	x25, x25, #24
	cbz	x10, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	x21, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x9]
	bl	_find_gmch
	cbnz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x23]
	b	LBB0_5
LBB0_9:
	ldr	x8, [x22, #8]
	and	x24, x24, #0xffffffff
	cbnz	x8, LBB0_12
	b	LBB0_17
LBB0_10:
	and	x24, x24, #0xffffffff
	mov	x0, x21
	bl	_pci_dev_get
	ldr	x8, [x23]
	mov	w9, #24
	madd	x8, x24, x9, x8
	ldr	x8, [x8, #16]
	stp	x0, x8, [x22]
	cbnz	x8, LBB0_12
	b	LBB0_17
LBB0_11:
	and	x24, x24, #0xffffffff
	ldr	x8, [x23]
	mov	w9, #24
	madd	x8, x24, x9, x8
	ldr	x8, [x8, #16]
	str	x8, [x22, #8]
	cbz	x8, LBB0_17
LBB0_12:
	ldr	w8, [x22, #24]
	add	w8, w8, #1
	str	w8, [x22, #24]
	cbz	x20, LBB0_14
; %bb.13:
Lloh4:
	adrp	x8, _intel_fake_agp_driver@GOTPAGE
Lloh5:
	ldr	x8, [x8, _intel_fake_agp_driver@GOTPAGEOFF]
	stp	x22, x8, [x20, #8]
	str	x19, [x20]
LBB0_14:
	mov	x0, x19
	bl	_pci_dev_get
	str	x0, [x22, #16]
	add	x0, x19, #8
	ldr	x8, [x23]
	mov	w9, #24
	madd	x8, x24, x9, x8
	ldr	x2, [x8, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldp	x20, x8, [x22]
	ldr	w19, [x8]
	mov	x0, x19
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x20
	bl	_pci_set_dma_mask
	ldr	x20, [x22]
	cbz	x0, LBB0_19
; %bb.15:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_dev_err
	bl	_intel_gtt_init
	cbz	x0, LBB0_20
LBB0_16:
	bl	_intel_gmch_remove
LBB0_17:
	mov	w0, #0
LBB0_18:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_19:
	mov	x0, x19
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x20
	bl	_pci_set_consistent_dma_mask
	bl	_intel_gtt_init
	cbnz	x0, LBB0_16
LBB0_20:
	mov	w0, #1
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_intel_private,32,3             ; @intel_private
	.comm	_intel_gtt_chipsets,8,3         ; @intel_gtt_chipsets
	.comm	_intel_fake_agp_driver,4,2      ; @intel_fake_agp_driver
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Intel %s Chipset\n"

l_.str.1:                               ; @.str.1
	.asciz	"set gfx device dma mask %d-bit failed!\n"

.subsections_via_symbols
