	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_chan_xfer_request
_xgene_chan_xfer_request:               ## @xgene_chan_xfer_request
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	leaq	(,%rax,4), %rdi
	addq	32(%rbx), %rdi
	incq	%rax
	xorl	%ecx, %ecx
	cmpq	16(%rbx), %rax
	cmovneq	%rax, %rcx
	movq	%rcx, 8(%rbx)
	addq	$8, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	(%r14), %eax
	movq	_XGENE_DMA_FLAG_64B_DESC@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rax
	leaq	(,%rax,4), %rdi
	addq	32(%rbx), %rdi
	incq	%rax
	xorl	%ecx, %ecx
	cmpq	16(%rbx), %rax
	cmovneq	%rax, %rcx
	movq	%rcx, 8(%rbx)
	leaq	4(%r14), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	(%r14), %eax
	movl	(%r15), %ecx
	andl	%eax, %ecx
	cmpl	$1, %ecx
	movl	$2, %ecx
	sbbl	$0, %ecx
	jmp	LBB0_3
LBB0_1:
	movl	$1, %ecx
LBB0_3:
	addl	%ecx, (%rbx)
	andl	(%r15), %eax
	cmpl	$1, %eax
	movl	$2, %edi
	sbbl	$0, %edi
	movl	24(%rbx), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iowrite32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XGENE_DMA_FLAG_64B_DESC,4,2    ## @XGENE_DMA_FLAG_64B_DESC
	.no_dead_strip	_xgene_chan_xfer_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_chan_xfer_request
_xgene_chan_xfer_request:               ; @xgene_chan_xfer_request
	.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
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldp	x9, x10, [x0, #8]
	add	x0, x8, x9, lsl #2
	add	x8, x9, #1
	cmp	x8, x10
	csinc	x8, xzr, x9, eq
	str	x8, [x19, #8]
	add	x1, x1, #8
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x20]
Lloh0:
	adrp	x21, _XGENE_DMA_FLAG_64B_DESC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _XGENE_DMA_FLAG_64B_DESC@GOTPAGEOFF]
	ldr	w9, [x21]
	mov	w22, #1
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #32]
	ldp	x9, x10, [x19, #8]
	add	x0, x8, x9, lsl #2
	add	x8, x9, #1
	cmp	x8, x10
	csinc	x8, xzr, x9, eq
	str	x8, [x19, #8]
	add	x1, x20, #4
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x20]
	ldr	w9, [x21]
	tst	w9, w8
	cinc	w9, w22, ne
	b	LBB0_3
LBB0_2:
	mov	w9, #1
LBB0_3:
	ldr	w10, [x19]
	add	w9, w9, w10
	str	w9, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	cinc	w0, w22, ne
	ldr	w1, [x19, #24]
	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
	b	_iowrite32
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_XGENE_DMA_FLAG_64B_DESC,4,2    ; @XGENE_DMA_FLAG_64B_DESC
	.no_dead_strip	_xgene_chan_xfer_request
.subsections_via_symbols
