	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_dma_of_xlate
_dw_dma_of_xlate:                       ## @dw_dma_of_xlate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$48, %rsp
	movq	(%rsi), %rax
	movq	$0, -8(%rbp)
	movl	8(%rax), %ecx
	movl	%ecx, -8(%rbp)
	cmpl	$3, (%rdi)
	jne	LBB0_7
## %bb.1:
	movq	8(%rdi), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, -40(%rbp)
	movq	(%rcx), %rsi
	movq	%rsi, -32(%rbp)
	movq	8(%rcx), %r9
	movq	%r9, -24(%rbp)
	movq	16(%rcx), %r8
	movq	%r8, -16(%rbp)
	movq	_DW_DMA_MAX_NR_REQUESTS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$1, %edi
	cmpq	%rcx, %rdx
	jge	LBB0_5
## %bb.2:
	cmpq	%rcx, %rsi
	jge	LBB0_5
## %bb.3:
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r9
	jge	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	cmpq	%rax, %r8
	setge	%dil
LBB0_5:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	xorl	%eax, %eax
LBB0_9:
	addq	$48, %rsp
	popq	%rbp
	retq
LBB0_8:
	callq	_dma_cap_zero
	movq	_DMA_SLAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dma_cap_set
	movq	_dw_dma_filter@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	callq	_dma_request_channel
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_DW_DMA_MAX_NR_REQUESTS,8,3     ## @DW_DMA_MAX_NR_REQUESTS
	.comm	_DMA_SLAVE,4,2                  ## @DMA_SLAVE
	.comm	_dw_dma_filter,4,2              ## @dw_dma_filter
	.no_dead_strip	_dw_dma_of_xlate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_dma_of_xlate
_dw_dma_of_xlate:                       ; @dw_dma_of_xlate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x8, x0
	mov	x0, #0
	ldr	x9, [x1]
	str	xzr, [sp, #40]
	ldr	w10, [x9, #8]
	str	w10, [sp, #40]
	ldr	w10, [x8]
	cmp	w10, #3
	b.ne	LBB0_7
; %bb.1:
	ldr	x8, [x8, #8]
	ldr	x11, [x8]
	str	x11, [sp, #8]
	ldr	x12, [x8]
	str	x12, [sp, #16]
	ldr	x10, [x8, #8]
	str	x10, [sp, #24]
	ldr	x8, [x8, #16]
	str	x8, [sp, #32]
Lloh0:
	adrp	x13, _DW_DMA_MAX_NR_REQUESTS@GOTPAGE
Lloh1:
	ldr	x13, [x13, _DW_DMA_MAX_NR_REQUESTS@GOTPAGEOFF]
Lloh2:
	ldr	x13, [x13]
	cmp	x11, x13
	ccmp	x12, x13, #0, lt
	b.ge	LBB0_5
; %bb.2:
	ldr	x9, [x9]
	ldr	x9, [x9]
	cmp	x10, x9
	b.ge	LBB0_5
; %bb.3:
	cmp	x8, x9
	cset	w0, ge
	bl	_WARN_ON
	cbnz	x0, LBB0_6
LBB0_4:
	bl	_dma_cap_zero
Lloh3:
	adrp	x8, _DMA_SLAVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_SLAVE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_dma_cap_set
Lloh6:
	adrp	x8, _dw_dma_filter@GOTPAGE
Lloh7:
	ldr	x8, [x8, _dw_dma_filter@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_dma_request_channel
	b	LBB0_7
LBB0_5:
	mov	w0, #1
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_6:
	mov	x0, #0
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DW_DMA_MAX_NR_REQUESTS,8,3     ; @DW_DMA_MAX_NR_REQUESTS
	.comm	_DMA_SLAVE,4,2                  ; @DMA_SLAVE
	.comm	_dw_dma_filter,4,2              ; @dw_dma_filter
	.no_dead_strip	_dw_dma_of_xlate
.subsections_via_symbols
