	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nbio_v7_4_sdma_doorbell_range
_nbio_v7_4_sdma_doorbell_range:         ## @nbio_v7_4_sdma_doorbell_range
	.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
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movl	%edx, %r12d
                                        ## kill: def $esi killed $esi def $rsi
	leal	4(%rsi), %eax
	cmpl	$2, %esi
	movslq	%esi, %rbx
	cmovgeq	%rax, %rbx
	movq	_NBIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mmBIF_SDMA0_DOORBELL_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movq	%rax, %r14
	addq	%rbx, %r14
	movq	%r14, %rdi
	callq	_RREG32
	movq	_BIF_SDMA0_DOORBELL_RANGE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	movq	_OFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movl	%r15d, %ecx
	callq	_REG_SET_FIELD
	movl	(%r13), %esi
	movq	_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_3
LBB0_2:
	movq	_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	xorl	%ecx, %ecx
LBB0_3:
	callq	_REG_SET_FIELD
	movq	%r14, %rdi
	movq	%rax, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NBIO,4,2                       ## @NBIO
	.comm	_mmBIF_SDMA0_DOORBELL_RANGE,4,2 ## @mmBIF_SDMA0_DOORBELL_RANGE
	.comm	_BIF_SDMA0_DOORBELL_RANGE,4,2   ## @BIF_SDMA0_DOORBELL_RANGE
	.comm	_OFFSET,4,2                     ## @OFFSET
	.comm	_SIZE,4,2                       ## @SIZE
	.no_dead_strip	_nbio_v7_4_sdma_doorbell_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nbio_v7_4_sdma_doorbell_range
_nbio_v7_4_sdma_doorbell_range:         ; @nbio_v7_4_sdma_doorbell_range
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x4
	mov	x21, x3
	mov	x22, x2
                                        ; kill: def $w1 killed $w1 def $x1
	add	w8, w1, #4
	sxtw	x9, w1
	cmp	w1, #2
	csel	x19, x9, x8, lt
Lloh0:
	adrp	x8, _NBIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NBIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _mmBIF_SDMA0_DOORBELL_RANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mmBIF_SDMA0_DOORBELL_RANGE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	add	x19, x0, x19
	mov	x0, x19
	bl	_RREG32
Lloh6:
	adrp	x23, _BIF_SDMA0_DOORBELL_RANGE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _BIF_SDMA0_DOORBELL_RANGE@GOTPAGEOFF]
	ldr	w1, [x23]
	cbz	w22, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _OFFSET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OFFSET@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x3, x21
	bl	_REG_SET_FIELD
	ldr	w1, [x23]
Lloh11:
	adrp	x8, _SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x3, x20
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x8, _SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SIZE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	w3, #0
LBB0_3:
	bl	_REG_SET_FIELD
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_WREG32
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NBIO,4,2                       ; @NBIO
	.comm	_mmBIF_SDMA0_DOORBELL_RANGE,4,2 ; @mmBIF_SDMA0_DOORBELL_RANGE
	.comm	_BIF_SDMA0_DOORBELL_RANGE,4,2   ; @BIF_SDMA0_DOORBELL_RANGE
	.comm	_OFFSET,4,2                     ; @OFFSET
	.comm	_SIZE,4,2                       ; @SIZE
	.no_dead_strip	_nbio_v7_4_sdma_doorbell_range
.subsections_via_symbols
