	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c24xx_dma_set_runtime_config
_s3c24xx_dma_set_runtime_config:        ## @s3c24xx_dma_set_runtime_config
	.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	%rsi, %rbx
	callq	_to_s3c24xx_dma_chan
	movq	%rax, %r14
	movq	_DMA_SLAVE_BUSWIDTH_8_BYTES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rbx)
	je	LBB0_2
## %bb.1:
	cmpq	%rax, 8(%rbx)
	jne	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_3:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, 24(%r14)
	je	LBB0_4
## %bb.5:
	movups	(%rbx), %xmm0
	movups	%xmm0, 8(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_SLAVE_BUSWIDTH_8_BYTES,8,3 ## @DMA_SLAVE_BUSWIDTH_8_BYTES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_s3c24xx_dma_set_runtime_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c24xx_dma_set_runtime_config
_s3c24xx_dma_set_runtime_config:        ; @s3c24xx_dma_set_runtime_config
	.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	x20, x1
	bl	_to_s3c24xx_dma_chan
	ldr	x9, [x20]
Lloh0:
	adrp	x8, _DMA_SLAVE_BUSWIDTH_8_BYTES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_SLAVE_BUSWIDTH_8_BYTES@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_2
; %bb.1:
	ldr	x9, [x20, #8]
	cmp	x9, x8
	b.ne	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_3:
	mov	x19, x0
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_5
; %bb.4:
	mov	w21, #0
	ldr	q0, [x20]
	stur	q0, [x19, #8]
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_7:
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_SLAVE_BUSWIDTH_8_BYTES,8,3 ; @DMA_SLAVE_BUSWIDTH_8_BYTES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_s3c24xx_dma_set_runtime_config
.subsections_via_symbols
