	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_io_rreg                 ## -- Begin function amdgpu_io_rreg
	.p2align	4, 0x90
_amdgpu_io_rreg:                        ## @amdgpu_io_rreg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	shll	$2, %esi
	movq	8(%rdi), %rax
	cmpl	(%rdi), %esi
	jl	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_mmMM_INDEX@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rax
	movl	%esi, %edi
	movq	%rax, %rsi
	callq	_iowrite32
	movq	8(%rbx), %rax
	movq	_mmMM_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	shll	$2, %esi
LBB0_2:
	movslq	%esi, %rdi
	addq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ioread32                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mmMM_INDEX,4,2                 ## @mmMM_INDEX
	.comm	_mmMM_DATA,4,2                  ## @mmMM_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_io_rreg                 ; -- Begin function amdgpu_io_rreg
	.p2align	2
_amdgpu_io_rreg:                        ; @amdgpu_io_rreg
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	lsl	w0, w1, #2
	ldr	w9, [x19]
	ldr	x8, [x19, #8]
	cmp	w0, w9
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _mmMM_INDEX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _mmMM_INDEX@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	add	x1, x8, x9, lsl #2
	bl	_iowrite32
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _mmMM_DATA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _mmMM_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w0, w9, #2
LBB0_2:
	add	x0, x8, w0, sxtw
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ioread32
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mmMM_INDEX,4,2                 ; @mmMM_INDEX
	.comm	_mmMM_DATA,4,2                  ; @mmMM_DATA
.subsections_via_symbols
