	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdma_config_ownership
_sdma_config_ownership:                 ## @sdma_config_ownership
	.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	%ecx, %ebx
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	8(%rdi), %r13
	movl	(%rdi), %r15d
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.2:
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_4:
	movq	_SDMA_H_EVTOVR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r13), %rdi
	callq	_readl_relaxed
	movq	%rax, -64(%rbp)
	movq	_SDMA_H_HOSTOVR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r13), %rdi
	callq	_readl_relaxed
	movq	%rax, -56(%rbp)
	movq	_SDMA_H_DSPOVR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r13), %rdi
	callq	_readl_relaxed
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movl	%r15d, %edi
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	callq	___clear_bit
	jmp	LBB0_7
LBB0_6:
	callq	___set_bit
LBB0_7:
	leaq	-64(%rbp), %rsi
	movl	%r15d, %edi
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.8:
	callq	___clear_bit
	jmp	LBB0_10
LBB0_9:
	callq	___set_bit
LBB0_10:
	leaq	-56(%rbp), %rsi
	movl	%r15d, %edi
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.11:
	callq	___clear_bit
	jmp	LBB0_13
LBB0_12:
	callq	___set_bit
LBB0_13:
	movq	-64(%rbp), %rdi
	movq	_SDMA_H_EVTOVR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	callq	_writel_relaxed
	movq	-56(%rbp), %rdi
	movq	_SDMA_H_HOSTOVR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	callq	_writel_relaxed
	movq	-48(%rbp), %rdi
	movq	_SDMA_H_DSPOVR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	callq	_writel_relaxed
	xorl	%eax, %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SDMA_H_EVTOVR,8,3              ## @SDMA_H_EVTOVR
	.comm	_SDMA_H_HOSTOVR,8,3             ## @SDMA_H_HOSTOVR
	.comm	_SDMA_H_DSPOVR,8,3              ## @SDMA_H_DSPOVR
	.no_dead_strip	_sdma_config_ownership
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdma_config_ownership
_sdma_config_ownership:                 ; @sdma_config_ownership
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x23, [x0, #8]
	ldr	w19, [x0]
	cbz	w1, LBB0_4
; %bb.1:
	cbz	w20, LBB0_4
; %bb.2:
	cbz	w22, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_4:
	ldr	x8, [x23]
Lloh3:
	adrp	x24, _SDMA_H_EVTOVR@GOTPAGE
Lloh4:
	ldr	x24, [x24, _SDMA_H_EVTOVR@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl_relaxed
	str	x0, [sp, #24]
	ldr	x8, [x23]
Lloh5:
	adrp	x25, _SDMA_H_HOSTOVR@GOTPAGE
Lloh6:
	ldr	x25, [x25, _SDMA_H_HOSTOVR@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl_relaxed
	str	x0, [sp, #16]
	ldr	x8, [x23]
Lloh7:
	adrp	x26, _SDMA_H_DSPOVR@GOTPAGE
Lloh8:
	ldr	x26, [x26, _SDMA_H_DSPOVR@GOTPAGEOFF]
	ldr	x9, [x26]
	add	x0, x9, x8
	bl	_readl_relaxed
	str	x0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	cbz	w22, LBB0_6
; %bb.5:
	bl	___clear_bit
	b	LBB0_7
LBB0_6:
	bl	___set_bit
LBB0_7:
	add	x1, sp, #24
	mov	x0, x19
	cbz	w21, LBB0_9
; %bb.8:
	bl	___clear_bit
	b	LBB0_10
LBB0_9:
	bl	___set_bit
LBB0_10:
	add	x1, sp, #16
	mov	x0, x19
	cbz	w20, LBB0_12
; %bb.11:
	bl	___clear_bit
	b	LBB0_13
LBB0_12:
	bl	___set_bit
LBB0_13:
	ldr	x0, [sp, #24]
	ldr	x8, [x23]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x0, [sp, #16]
	ldr	x8, [x23]
	ldr	x9, [x25]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x0, [sp, #8]
	ldr	x8, [x23]
	ldr	x9, [x26]
	add	x1, x9, x8
	bl	_writel_relaxed
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SDMA_H_EVTOVR,8,3              ; @SDMA_H_EVTOVR
	.comm	_SDMA_H_HOSTOVR,8,3             ; @SDMA_H_HOSTOVR
	.comm	_SDMA_H_DSPOVR,8,3              ; @SDMA_H_DSPOVR
	.no_dead_strip	_sdma_config_ownership
.subsections_via_symbols
