	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_device_enable_virtual_display
_amdgpu_device_enable_virtual_display:  ## @amdgpu_device_enable_virtual_display
	.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
	movl	$0, (%rdi)
	movq	_amdgpu_virtual_display@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_13
## %bb.1:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	callq	_pci_name
	movq	%rax, %rbx
	movq	(%r14), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kstrdup
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, -80(%rbp)
	leaq	-80(%rbp), %r13
	leaq	-64(%rbp), %r14
	leaq	L_.str.2(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strsep
	movq	%rax, -64(%rbp)
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strsep
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_2
LBB0_5:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	$1, (%r14)
	movq	-64(%rbp), %rdi
	movl	$1, %r12d
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.6:
	leaq	-72(%rbp), %rdx
	movl	$10, %esi
	callq	_kstrtol
	testl	%eax, %eax
	movq	_amdgpu_virtual_display@GOTPCREL(%rip), %rdx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_11
## %bb.7:
	movq	-72(%rbp), %rax
	cmpq	$6, %rax
	movl	$6, %ecx
	cmovbq	%rax, %rcx
	testq	%rax, %rax
	movl	$1, %r12d
	cmovgq	%rcx, %r12
	jmp	LBB0_11
LBB0_9:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %r12
	movq	_amdgpu_virtual_display@GOTPCREL(%rip), %rdx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_10:
	movq	_amdgpu_virtual_display@GOTPCREL(%rip), %rdx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_11:
	movq	%r12, 8(%r14)
LBB0_12:
	movq	(%rdx), %rsi
	movl	(%r14), %ecx
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rdx
	movl	%r12d, %r8d
	callq	_DRM_INFO
	movq	%r15, %rdi
	callq	_kfree
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_amdgpu_virtual_display,8,3     ## @amdgpu_virtual_display
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	";"

L_.str.1:                               ## @.str.1
	.asciz	","

L_.str.2:                               ## @.str.2
	.asciz	"all"

L_.str.3:                               ## @.str.3
	.asciz	"virtual display string:%s, %s:virtual_display:%d, num_crtc:%d\n"

	.no_dead_strip	_amdgpu_device_enable_virtual_display
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_device_enable_virtual_display
_amdgpu_device_enable_virtual_display:  ; @amdgpu_device_enable_virtual_display
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	wzr, [x0]
Lloh0:
	adrp	x26, _amdgpu_virtual_display@GOTPAGE
Lloh1:
	ldr	x26, [x26, _amdgpu_virtual_display@GOTPAGEOFF]
	ldr	x8, [x26]
	cbz	x8, LBB0_12
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	bl	_pci_name
	mov	x20, x0
	ldr	x0, [x26]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kstrdup
	mov	x21, x0
	str	x0, [sp, #24]
Lloh5:
	adrp	x22, l_.str@PAGE
Lloh6:
	add	x22, x22, l_.str@PAGEOFF
Lloh7:
	adrp	x23, l_.str.1@PAGE
Lloh8:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh9:
	adrp	x24, l_.str.2@PAGE
Lloh10:
	add	x24, x24, l_.str.2@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	mov	x1, x22
	bl	_strsep
	str	x0, [sp, #16]
	cbz	x0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #16
	mov	x1, x23
	bl	_strsep
	mov	x25, x0
	mov	x0, x24
	mov	x1, x25
	bl	_strcmp
	cbz	w0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x25
	bl	_strcmp
	cbnz	w0, LBB0_2
LBB0_5:
	mov	w4, #1
	str	w4, [x19]
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_10
; %bb.6:
	add	x2, sp, #8
	mov	w1, #10
	bl	_kstrtol
	cbz	w0, LBB0_9
; %bb.7:
	mov	w4, #1
	b	LBB0_10
LBB0_8:
	ldr	x4, [x19, #8]
	b	LBB0_11
LBB0_9:
	ldr	x8, [sp, #8]
	mov	w9, #6
	cmp	x8, #6
	csel	x9, x8, x9, lo
	cmp	x8, #1
	csinc	x4, x9, xzr, ge
LBB0_10:
	str	x4, [x19, #8]
LBB0_11:
	ldr	x1, [x26]
	ldr	w3, [x19]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x2, x20
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_DRM_INFO
	mov	x0, x21
	bl	_kfree
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_amdgpu_virtual_display,8,3     ; @amdgpu_virtual_display
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	";"

l_.str.1:                               ; @.str.1
	.asciz	","

l_.str.2:                               ; @.str.2
	.asciz	"all"

l_.str.3:                               ; @.str.3
	.asciz	"virtual display string:%s, %s:virtual_display:%d, num_crtc:%d\n"

	.no_dead_strip	_amdgpu_device_enable_virtual_display
.subsections_via_symbols
