	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_gfx_parse_disable_cu    ## -- Begin function amdgpu_gfx_parse_disable_cu
	.p2align	4, 0x90
_amdgpu_gfx_parse_disable_cu:           ## @amdgpu_gfx_parse_disable_cu
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r12d
	movl	%esi, %edx
	imull	%r14d, %edx
	shll	$2, %edx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	callq	_memset
	movq	_amdgpu_disable_cu@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.1:
	cmpb	$0, (%rbx)
	je	LBB0_12
## %bb.2:
	leaq	-48(%rbp), %r13
	leaq	-44(%rbp), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	$44, %esi
	callq	_strchr
	leaq	1(%rax), %rbx
	testq	%rax, %rax
	je	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-52(%rbp), %rdx
	movq	%r13, %rcx
	movq	%r15, %r8
	callq	_sscanf
	cmpl	$2, %eax
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %esi
	movl	-48(%rbp), %edx
	cmpl	%r12d, %esi
	jae	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %ecx
	cmpl	%r14d, %edx
	jae	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$15, %ecx
	ja	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_INFO
	movzbl	-44(%rbp), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	movl	-52(%rbp), %ecx
	imull	%r14d, %ecx
	addl	-48(%rbp), %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	orl	%eax, (%rdx,%rcx,4)
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_amdgpu_disable_cu,8,3          ## @amdgpu_disable_cu
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u.%u.%u"

L_.str.1:                               ## @.str.1
	.asciz	"amdgpu: could not parse disable_cu\n"

L_.str.2:                               ## @.str.2
	.asciz	"amdgpu: disabling CU %u.%u.%u\n"

L_.str.3:                               ## @.str.3
	.asciz	"amdgpu: disable_cu %u.%u.%u is out of range\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_gfx_parse_disable_cu    ; -- Begin function amdgpu_gfx_parse_disable_cu
	.p2align	2
_amdgpu_gfx_parse_disable_cu:           ; @amdgpu_gfx_parse_disable_cu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mul	w8, w1, w2
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
Lloh0:
	adrp	x8, _amdgpu_disable_cu@GOTPAGE
Lloh1:
	ldr	x8, [x8, _amdgpu_disable_cu@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	cbz	x22, LBB0_11
; %bb.1:
	ldrb	w8, [x22]
	cbz	w8, LBB0_11
; %bb.2:
Lloh3:
	adrp	x23, l_.str@PAGE
Lloh4:
	add	x23, x23, l_.str@PAGEOFF
Lloh5:
	adrp	x24, l_.str.2@PAGE
Lloh6:
	add	x24, x24, l_.str.2@PAGEOFF
	mov	w26, #1
Lloh7:
	adrp	x25, l_.str.3@PAGE
Lloh8:
	add	x25, x25, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_DRM_INFO
	ldp	w8, w10, [sp, #36]
	lsl	w8, w26, w8
	ldr	w9, [sp, #44]
	madd	w9, w9, w19, w10
	lsl	x9, x9, #2
	ldr	w10, [x21, x9]
	orr	w8, w10, w8
	str	w8, [x21, x9]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	w1, #44
	bl	_strchr
	add	x22, x0, #1
	cbz	x0, LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #44
	add	x3, sp, #40
	add	x4, sp, #36
	mov	x0, x22
	mov	x1, x23
	bl	_sscanf
	cmp	w0, #2
	b.le	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	w2, w1, [sp, #40]
	cmp	w1, w20
	b.hs	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w3, [sp, #36]
	cmp	w2, w19
	ccmp	w3, #15, #2, lo
	b.ls	LBB0_3
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w3, [sp, #36]
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	stp	x2, x3, [sp, #8]
	str	x1, [sp]
	mov	x0, x25
	bl	_DRM_ERROR
	b	LBB0_4
LBB0_10:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
LBB0_11:
	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
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_amdgpu_disable_cu,8,3          ; @amdgpu_disable_cu
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u.%u.%u"

l_.str.1:                               ; @.str.1
	.asciz	"amdgpu: could not parse disable_cu\n"

l_.str.2:                               ; @.str.2
	.asciz	"amdgpu: disabling CU %u.%u.%u\n"

l_.str.3:                               ; @.str.3
	.asciz	"amdgpu: disable_cu %u.%u.%u is out of range\n"

.subsections_via_symbols
