	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cik_sdma_ctx_switch_enable
_cik_sdma_ctx_switch_enable:            ## @cik_sdma_ctx_switch_enable
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	_SDMA0_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_SDMA0_CNTL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_RREG32
	movq	_AUTO_CTXSW_ENABLE@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	%rsi, %rcx
	orq	%rax, %rcx
	notq	%rsi
	andq	%rax, %rsi
	testl	%r14d, %r14d
	cmovneq	%rcx, %rsi
	addq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_WREG32
	movq	_SDMA1_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_RREG32
	movq	(%r12), %rsi
	movq	%rsi, %rcx
	orq	%rax, %rcx
	notq	%rsi
	andq	%rax, %rsi
	testl	%r14d, %r14d
	cmovneq	%rcx, %rsi
	addq	(%r15), %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDMA0_REGISTER_OFFSET,8,3      ## @SDMA0_REGISTER_OFFSET
	.comm	_SDMA1_REGISTER_OFFSET,8,3      ## @SDMA1_REGISTER_OFFSET
	.comm	_SDMA0_CNTL,8,3                 ## @SDMA0_CNTL
	.comm	_AUTO_CTXSW_ENABLE,8,3          ## @AUTO_CTXSW_ENABLE
	.no_dead_strip	_cik_sdma_ctx_switch_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cik_sdma_ctx_switch_enable
_cik_sdma_ctx_switch_enable:            ; @cik_sdma_ctx_switch_enable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
Lloh0:
	adrp	x8, _SDMA0_REGISTER_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDMA0_REGISTER_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
Lloh3:
	adrp	x21, _SDMA0_CNTL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SDMA0_CNTL@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x0, x8, x20
	bl	_RREG32
Lloh5:
	adrp	x22, _AUTO_CTXSW_ENABLE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _AUTO_CTXSW_ENABLE@GOTPAGEOFF]
	ldr	x8, [x22]
	orr	x9, x8, x0
	bic	x8, x0, x8
	cmp	w19, #0
	csel	x1, x8, x9, eq
	ldr	x8, [x21]
	add	x0, x8, x20
	bl	_WREG32
Lloh7:
	adrp	x8, _SDMA1_REGISTER_OFFSET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SDMA1_REGISTER_OFFSET@GOTPAGEOFF]
Lloh9:
	ldr	x20, [x8]
	ldr	x8, [x21]
	add	x0, x8, x20
	bl	_RREG32
	cmp	w19, #0
	ldr	x8, [x22]
	orr	x9, x8, x0
	bic	x8, x0, x8
	csel	x1, x8, x9, eq
	ldr	x8, [x21]
	add	x0, x8, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_WREG32
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SDMA0_REGISTER_OFFSET,8,3      ; @SDMA0_REGISTER_OFFSET
	.comm	_SDMA1_REGISTER_OFFSET,8,3      ; @SDMA1_REGISTER_OFFSET
	.comm	_SDMA0_CNTL,8,3                 ; @SDMA0_CNTL
	.comm	_AUTO_CTXSW_ENABLE,8,3          ; @AUTO_CTXSW_ENABLE
	.no_dead_strip	_cik_sdma_ctx_switch_enable
.subsections_via_symbols
