	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pl330_config_write
_pl330_config_write:                    ## @pl330_config_write
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	callq	_to_pchan
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_pl330_unprep_slave_fifo
	movq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_6
## %bb.1:
	movq	40(%r14), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, 24(%r15)
LBB0_3:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	___ffs
	movq	%rax, 16(%r15)
LBB0_5:
	addq	$24, %r14
	jmp	LBB0_11
LBB0_6:
	movq	_DMA_DEV_TO_MEM@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_12
## %bb.7:
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, 24(%r15)
LBB0_9:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	___ffs
	movq	%rax, 16(%r15)
LBB0_11:
	movl	(%r14), %edi
	movq	(%r15), %rax
	movl	(%rax), %esi
	callq	_fixup_burst_len
	movq	%rax, 8(%r15)
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_MEM_TO_DEV,4,2             ## @DMA_MEM_TO_DEV
	.comm	_DMA_DEV_TO_MEM,4,2             ## @DMA_DEV_TO_MEM
	.no_dead_strip	_pl330_config_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pl330_config_write
_pl330_config_write:                    ; @pl330_config_write
	.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	x21, x2
	mov	x20, x1
	bl	_to_pchan
	mov	x19, x0
	bl	_pl330_unprep_slave_fifo
Lloh0:
	adrp	x8, _DMA_MEM_TO_DEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_MEM_TO_DEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_3
; %bb.2:
	str	x8, [x19, #24]
LBB0_3:
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_5
; %bb.4:
	bl	___ffs
	str	x0, [x19, #16]
LBB0_5:
	add	x20, x20, #24
	b	LBB0_11
LBB0_6:
Lloh3:
	adrp	x8, _DMA_DEV_TO_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_DEV_TO_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_12
; %bb.7:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_9
; %bb.8:
	str	x8, [x19, #24]
LBB0_9:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_11
; %bb.10:
	bl	___ffs
	str	x0, [x19, #16]
LBB0_11:
	ldr	w0, [x20]
	ldr	x8, [x19]
	ldr	w1, [x8]
	bl	_fixup_burst_len
	str	x0, [x19, #8]
LBB0_12:
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_MEM_TO_DEV,4,2             ; @DMA_MEM_TO_DEV
	.comm	_DMA_DEV_TO_MEM,4,2             ; @DMA_DEV_TO_MEM
	.no_dead_strip	_pl330_config_write
.subsections_via_symbols
