	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmnand_fill_dma_desc
_brcmnand_fill_dma_desc:                ## @brcmnand_fill_dma_desc
	.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	%r9d, %r14d
	movq	%r8, %r12
	movl	%ecx, %r13d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	32(%rbp), %r15d
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movl	%r15d, %edi
	callq	_lower_32_bits
	movq	%rax, 72(%rbx)
	movl	%r15d, %edi
	callq	_upper_32_bits
	shll	$24, %r14d
	xorl	%ecx, %ecx
	movl	24(%rbp), %edx
	testl	%edx, %edx
	setne	%cl
	movq	%rax, 64(%rbx)
	movl	$768, %eax                      ## imm = 0x300
	cmovel	%edx, %eax
	orl	%r14d, %eax
	xorl	%edx, %edx
	cmpl	$0, 16(%rbp)
	setne	%dl
	orl	%eax, %edx
	addl	%ecx, %ecx
	orl	%edx, %ecx
	movl	%ecx, (%rbx)
	movl	%r13d, %edi
	callq	_lower_32_bits
	movq	%rax, 56(%rbx)
	movl	%r13d, %edi
	callq	_upper_32_bits
	movq	%rax, 48(%rbx)
	movq	%r12, 40(%rbx)
	movq	%r12, 32(%rbx)
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_lower_32_bits
	movq	%rax, 24(%rbx)
	movl	%r14d, %edi
	callq	_upper_32_bits
	movq	%rax, 16(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	$1, 4(%rbx)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_brcmnand_fill_dma_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmnand_fill_dma_desc
_brcmnand_fill_dma_desc:                ; @brcmnand_fill_dma_desc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x7
	mov	x22, x6
	mov	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x26, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w27, [x29, #16]
	mov	x0, x1
	mov	w1, #0
	mov	w2, #80
	bl	_memset
	mov	x0, x27
	bl	_lower_32_bits
	str	x0, [x19, #72]
	mov	x0, x27
	bl	_upper_32_bits
	mov	w8, #768
	cmp	w21, #0
	csel	w8, wzr, w8, eq
	cset	w9, ne
	str	x0, [x19, #64]
	bfi	w8, w23, #24, #8
	cmp	w22, #0
	cset	w10, ne
	orr	w8, w8, w10
	bfi	w8, w9, #1, #1
	str	w8, [x19]
	mov	x0, x25
	bl	_lower_32_bits
	str	x0, [x19, #56]
	mov	x0, x25
	bl	_upper_32_bits
	stp	x24, x0, [x19, #40]
	str	x24, [x19, #32]
	mov	x0, x26
	bl	_lower_32_bits
	str	x0, [x19, #24]
	mov	x0, x26
	bl	_upper_32_bits
	str	x0, [x19, #16]
	ldr	w8, [x20]
	mov	w9, #1
	stp	w9, w8, [x19, #4]
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_brcmnand_fill_dma_desc
.subsections_via_symbols
