	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atom_op_calltable
_atom_op_calltable:                     ## @atom_op_calltable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rsi), %edi
	leal	1(%rdi), %eax
	movl	%eax, (%rsi)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_U8
	movl	%eax, %ebx
	movq	_ATOM_TABLE_NAMES_CNT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_2
## %bb.1:
	movq	_atom_table_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %edx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_SDEBUG
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_SDEBUG
LBB0_3:
	movq	24(%r14), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	addl	%ebx, %ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rax), %rdi
	addq	$4, %rdi
	callq	_U16
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	8(%r14), %rdx
	movq	24(%r14), %rdi
	addq	16(%r14), %rdx
	movl	%ebx, %esi
	callq	_amdgpu_atom_execute_table_locked
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	$1, (%r14)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATOM_TABLE_NAMES_CNT,4,2       ## @ATOM_TABLE_NAMES_CNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"   table: %d (%s)\n"

	.comm	_atom_table_names,8,3           ## @atom_table_names
L_.str.1:                               ## @.str.1
	.asciz	"   table: %d\n"

	.no_dead_strip	_atom_op_calltable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atom_op_calltable
_atom_op_calltable:                     ; @atom_op_calltable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x1]
	add	w8, w0, #1
	str	w8, [x1]
	bl	_U8
	mov	x20, x0
Lloh0:
	adrp	x8, _ATOM_TABLE_NAMES_CNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATOM_TABLE_NAMES_CNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _atom_table_names@GOTPAGE
Lloh4:
	ldr	x8, [x8, _atom_table_names@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x8, w20, sxtw #2]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_3:
	mov	x1, x20
	bl	_SDEBUG
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	lsl	w9, w20, #1
	add	x8, x8, w9, sxtw
	add	x0, x8, #4
	bl	_U16
	cbz	x0, LBB0_6
; %bb.4:
	ldp	x8, x0, [x19, #16]
	ldr	x9, [x19, #8]
	add	x2, x9, x8
	mov	x1, x20
	bl	_amdgpu_atom_execute_table_locked
	cbz	w0, LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ATOM_TABLE_NAMES_CNT,4,2       ; @ATOM_TABLE_NAMES_CNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"   table: %d (%s)\n"

	.comm	_atom_table_names,8,3           ; @atom_table_names
l_.str.1:                               ; @.str.1
	.asciz	"   table: %d\n"

	.no_dead_strip	_atom_op_calltable
.subsections_via_symbols
