	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_pci_probe
_amdgpu_pci_probe:                      ## @amdgpu_pci_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	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rsi), %rbx
	movq	_amdgpu_virtual_display@GOTPCREL(%rip), %rax
	movb	$1, %r13b
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_AMD_ASIC_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	andq	%rbx, %rdi
	callq	_amdgpu_device_asic_has_dc_support
	testq	%rax, %rax
	sete	%r13b
LBB0_2:
	movq	_AMD_EXP_HW_SUPPORT@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_amdgpu_exp_hw_support@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_INFO
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_5:
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_drm_fb_helper_remove_conflicting_pci_framebuffers
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_kms_driver@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_drm_dev_alloc
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.19:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	testb	%r13b, %r13b
	je	LBB0_9
## %bb.8:
	movq	_DRIVER_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r15)
LBB0_9:
	movq	%r14, %rdi
	callq	_pci_enable_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.10:
	movq	%r14, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_pci_set_drvdata
	movq	(%r12), %rsi
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_drm_dev_register
	movl	%eax, %ebx
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_14
## %bb.11:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %r15d
	leal	1(%r15), %r13d
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_DRM_INFO
	movl	$5000, %edi                     ## imm = 0x1388
	callq	_msleep
	movq	(%r12), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_drm_dev_register
	movl	%eax, %ebx
	cmpl	$1, %r15d
	ja	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%eax, %eax
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	cmpl	%eax, %ebx
	je	LBB0_12
LBB0_14:
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.16:
	movq	%r14, %rdi
	callq	_pci_disable_device
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_17:
	movq	%r15, %rdi
	callq	_drm_dev_put
	jmp	LBB0_18
LBB0_15:
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_amdgpu_virtual_display,4,2     ## @amdgpu_virtual_display
	.comm	_AMD_ASIC_MASK,8,3              ## @AMD_ASIC_MASK
	.comm	_AMD_EXP_HW_SUPPORT,8,3         ## @AMD_EXP_HW_SUPPORT
	.comm	_amdgpu_exp_hw_support,4,2      ## @amdgpu_exp_hw_support
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"This hardware requires experimental hardware support.\nSee modparam exp_hw_support\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"amdgpudrmfb"

	.comm	_kms_driver,4,2                 ## @kms_driver
	.comm	_DRIVER_ATOMIC,4,2              ## @DRIVER_ATOMIC
	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.2:                               ## @.str.2
	.asciz	"retry init %d\n"

	.comm	_amdgpu_cik_support,4,2         ## @amdgpu_cik_support
	.comm	_amdgpu_si_support,4,2          ## @amdgpu_si_support
	.no_dead_strip	_amdgpu_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_pci_probe
_amdgpu_pci_probe:                      ; @amdgpu_pci_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x1]
Lloh0:
	adrp	x8, _amdgpu_virtual_display@GOTPAGE
Lloh1:
	ldr	x8, [x8, _amdgpu_virtual_display@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w23, #1
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _AMD_ASIC_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AMD_ASIC_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	and	x0, x8, x21
	bl	_amdgpu_device_asic_has_dc_support
	cmp	x0, #0
	cset	w23, eq
LBB0_3:
Lloh6:
	adrp	x8, _AMD_EXP_HW_SUPPORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AMD_EXP_HW_SUPPORT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	and	x8, x8, x21
Lloh9:
	adrp	x9, _amdgpu_exp_hw_support@GOTPAGE
Lloh10:
	ldr	x9, [x9, _amdgpu_exp_hw_support@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_7
; %bb.4:
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_drm_fb_helper_remove_conflicting_pci_framebuffers
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.5:
Lloh14:
	adrp	x0, _kms_driver@GOTPAGE
Lloh15:
	ldr	x0, [x0, _kms_driver@GOTPAGEOFF]
	mov	x1, x19
	bl	_drm_dev_alloc
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.6:
	mov	x0, x21
	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
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_7:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
LBB0_9:
	cbz	w23, LBB0_11
; %bb.10:
Lloh21:
	adrp	x8, _DRIVER_ATOMIC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DRIVER_ATOMIC@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x21, #8]
	bic	w8, w9, w8
	str	w8, [x21, #8]
LBB0_11:
	mov	x0, x19
	bl	_pci_enable_device
	mov	x22, x0
	cbnz	w0, LBB0_18
; %bb.12:
	str	x19, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	_pci_set_drvdata
	ldr	x1, [x20]
	mov	x0, x21
	bl	_drm_dev_register
	mov	x22, x0
Lloh24:
	adrp	x23, _EAGAIN@GOTPAGE
Lloh25:
	ldr	x23, [x23, _EAGAIN@GOTPAGEOFF]
	ldr	w8, [x23]
	cmn	w0, w8
	b.ne	LBB0_16
; %bb.13:
	mov	w8, #1
	str	x8, [sp]
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_INFO
	mov	w0, #5000
	bl	_msleep
	ldr	x1, [x20]
	mov	x0, x21
	bl	_drm_dev_register
	mov	x22, x0
	ldr	w8, [x23]
	cmn	w0, w8
	b.ne	LBB0_16
; %bb.14:
	mov	w8, #2
	str	x8, [sp]
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_INFO
	mov	w0, #5000
	bl	_msleep
	ldr	x1, [x20]
	mov	x0, x21
	bl	_drm_dev_register
	mov	x22, x0
	ldr	w8, [x23]
	cmn	w0, w8
	b.ne	LBB0_16
; %bb.15:
	mov	w8, #3
	str	x8, [sp]
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_INFO
	mov	w0, #5000
	bl	_msleep
	ldr	x1, [x20]
	mov	x0, x21
	bl	_drm_dev_register
	mov	x22, x0
LBB0_16:
	cbz	w22, LBB0_8
; %bb.17:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_18:
	mov	x0, x21
	bl	_drm_dev_put
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_amdgpu_virtual_display,4,2     ; @amdgpu_virtual_display
	.comm	_AMD_ASIC_MASK,8,3              ; @AMD_ASIC_MASK
	.comm	_AMD_EXP_HW_SUPPORT,8,3         ; @AMD_EXP_HW_SUPPORT
	.comm	_amdgpu_exp_hw_support,4,2      ; @amdgpu_exp_hw_support
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"This hardware requires experimental hardware support.\nSee modparam exp_hw_support\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"amdgpudrmfb"

	.comm	_kms_driver,4,2                 ; @kms_driver
	.comm	_DRIVER_ATOMIC,4,2              ; @DRIVER_ATOMIC
	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.2:                               ; @.str.2
	.asciz	"retry init %d\n"

	.comm	_amdgpu_cik_support,4,2         ; @amdgpu_cik_support
	.comm	_amdgpu_si_support,4,2          ; @amdgpu_si_support
	.no_dead_strip	_amdgpu_pci_probe
.subsections_via_symbols
