	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_dma_fill_type2_desc
_omap_dma_fill_type2_desc:              ## @omap_dma_fill_type2_desc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	16(%rdi), %r11
	movslq	%esi, %rax
	movq	%rax, %rsi
	shlq	$5, %rsi
	movq	24(%r11,%rsi), %r9
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r11,%rsi), %r8d
	movq	-8(%rsi,%r11), %rax
	movl	%r8d, (%rax)
LBB0_2:
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.3:
	movl	$-4, (%r9)
LBB0_4:
	movl	20(%r11,%rsi), %r8d
	movl	%r8d, 8(%r9)
	movl	16(%r11,%rsi), %eax
	movl	%eax, 32(%r9)
	movzwl	4(%r11,%rsi), %eax
	movl	%eax, 4(%r9)
	movl	8(%rdi), %r10d
	movl	%r10d, 28(%r9)
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.6:
	cmpl	$128, %edx
	je	LBB0_9
LBB0_7:
	cmpl	$129, %edx
	jne	LBB0_11
## %bb.8:
	movl	12(%r11,%rsi), %eax
	movl	%eax, 24(%r9)
	movl	4(%rdi), %eax
	movl	%eax, 20(%r9)
	movl	8(%r11,%rsi), %eax
	movl	%eax, 16(%r9)
	movq	_DESC_NXT_SV_REUSE@GOTPCREL(%rip), %rax
	movq	_DESC_NXT_DV_REFRESH@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_5:
	movq	_CICR_BLOCK_IE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r10d
	movl	%r10d, 28(%r9)
	cmpl	$128, %edx
	jne	LBB0_7
LBB0_9:
	movl	4(%rdi), %eax
	movl	%eax, 24(%r9)
	movl	12(%r11,%rsi), %eax
	movl	%eax, 20(%r9)
	movl	(%rdi), %eax
	movl	%eax, 16(%r9)
	leaq	(%r11,%rsi), %rdi
	addq	$8, %rdi
	movq	_DESC_NXT_DV_REUSE@GOTPCREL(%rip), %rax
	movq	_DESC_NXT_SV_REFRESH@GOTPCREL(%rip), %rcx
LBB0_10:
	movl	(%rdi), %edx
	movl	%edx, 12(%r9)
	orl	(%rcx), %r8d
	orl	(%rax), %r8d
	movq	_DESC_NTYPE_TYPE2@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movl	%r8d, 8(%r9)
LBB0_11:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CICR_BLOCK_IE,4,2              ## @CICR_BLOCK_IE
	.comm	_DESC_NXT_DV_REFRESH,4,2        ## @DESC_NXT_DV_REFRESH
	.comm	_DESC_NXT_SV_REUSE,4,2          ## @DESC_NXT_SV_REUSE
	.comm	_DESC_NXT_SV_REFRESH,4,2        ## @DESC_NXT_SV_REFRESH
	.comm	_DESC_NXT_DV_REUSE,4,2          ## @DESC_NXT_DV_REUSE
	.comm	_DESC_NTYPE_TYPE2,4,2           ## @DESC_NTYPE_TYPE2
	.no_dead_strip	_omap_dma_fill_type2_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_dma_fill_type2_desc
_omap_dma_fill_type2_desc:              ; @omap_dma_fill_type2_desc
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x10, [x0, #16]
	sxtw	x11, w1
	add	x9, x10, x11, lsl #5
	ldr	x8, [x9, #24]
	cbz	w1, LBB0_2
; %bb.1:
	ldr	w12, [x9]
	ldur	x9, [x9, #-8]
	str	w12, [x9]
LBB0_2:
	cbz	w3, LBB0_4
; %bb.3:
	mov	w9, #-4
	str	w9, [x8]
LBB0_4:
	add	x12, x10, x11, lsl #5
	ldp	w13, w9, [x12, #16]
	ldrh	w12, [x12, #4]
	stp	w12, w9, [x8, #4]
	ldr	w12, [x0, #8]
	stp	w12, w13, [x8, #28]
	cbz	w3, LBB0_8
; %bb.5:
	cmp	w2, #128
	b.eq	LBB0_9
LBB0_6:
	cmp	w2, #129
	b.ne	LBB0_11
; %bb.7:
	add	x10, x10, x11, lsl #5
	ldp	w10, w11, [x10, #8]
	str	w11, [x8, #24]
	ldr	w11, [x0, #4]
	stp	w10, w11, [x8, #16]
Lloh0:
	adrp	x10, _DESC_NXT_SV_REUSE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DESC_NXT_SV_REUSE@GOTPAGEOFF]
Lloh2:
	adrp	x11, _DESC_NXT_DV_REFRESH@GOTPAGE
Lloh3:
	ldr	x11, [x11, _DESC_NXT_DV_REFRESH@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh4:
	adrp	x13, _CICR_BLOCK_IE@GOTPAGE
Lloh5:
	ldr	x13, [x13, _CICR_BLOCK_IE@GOTPAGEOFF]
Lloh6:
	ldr	w13, [x13]
	bic	w12, w12, w13
	str	w12, [x8, #28]
	cmp	w2, #128
	b.ne	LBB0_6
LBB0_9:
	ldp	w13, w12, [x0]
	str	w12, [x8, #24]
	add	x10, x10, x11, lsl #5
	ldr	w11, [x10, #12]
	stp	w13, w11, [x8, #16]
	add	x0, x10, #8
Lloh7:
	adrp	x10, _DESC_NXT_DV_REUSE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _DESC_NXT_DV_REUSE@GOTPAGEOFF]
Lloh9:
	adrp	x11, _DESC_NXT_SV_REFRESH@GOTPAGE
Lloh10:
	ldr	x11, [x11, _DESC_NXT_SV_REFRESH@GOTPAGEOFF]
LBB0_10:
	ldr	w12, [x0]
	ldr	w11, [x11]
	orr	w9, w11, w9
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh11:
	adrp	x10, _DESC_NTYPE_TYPE2@GOTPAGE
Lloh12:
	ldr	x10, [x10, _DESC_NTYPE_TYPE2@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	stp	w9, w12, [x8, #8]
LBB0_11:
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CICR_BLOCK_IE,4,2              ; @CICR_BLOCK_IE
	.comm	_DESC_NXT_DV_REFRESH,4,2        ; @DESC_NXT_DV_REFRESH
	.comm	_DESC_NXT_SV_REUSE,4,2          ; @DESC_NXT_SV_REUSE
	.comm	_DESC_NXT_SV_REFRESH,4,2        ; @DESC_NXT_SV_REFRESH
	.comm	_DESC_NXT_DV_REUSE,4,2          ; @DESC_NXT_DV_REUSE
	.comm	_DESC_NTYPE_TYPE2,4,2           ; @DESC_NTYPE_TYPE2
	.no_dead_strip	_omap_dma_fill_type2_desc
.subsections_via_symbols
