	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar934x_nfc_write_buf
_ar934x_nfc_write_buf:                  ## @ar934x_nfc_write_buf
	.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, %r15d
	movq	%rsi, %r14
	callq	_mtd_to_ar934x_nfc
	movq	%rax, %rbx
	movl	(%rax), %eax
	addl	%r15d, %eax
	xorl	%edi, %edi
	cmpl	4(%rbx), %eax
	setg	%dil
	callq	_WARN_ON
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.1:
	testl	%r15d, %r15d
	jle	LBB0_16
## %bb.2:
	movq	8(%rbx), %rax
	movl	%r15d, %r8d
	movl	(%rbx), %edx
	cmpl	$1, %r15d
	jne	LBB0_7
## %bb.3:
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_4:
	testl	%r15d, %r15d
	jle	LBB0_16
## %bb.5:
	movq	8(%rbx), %rax
	movl	%r15d, %r8d
	movl	(%rbx), %edx
	cmpl	$1, %r15d
	jne	LBB0_11
## %bb.6:
	xorl	%esi, %esi
	jmp	LBB0_13
LBB0_7:
	movl	%r8d, %edi
	andl	$-2, %edi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rsi,4), %ecx
	xorl	$3, %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movslq	(%rbx), %rcx
	incq	%rcx
	movl	%ecx, (%rbx)
	movl	4(%r14,%rsi,4), %edx
	xorq	$3, %rcx
	movl	%edx, (%rax,%rcx,4)
	movl	(%rbx), %edx
	incl	%edx
	movl	%edx, (%rbx)
	addq	$2, %rsi
	cmpq	%rsi, %rdi
	jne	LBB0_8
LBB0_9:
	testb	$1, %r8b
	je	LBB0_16
## %bb.10:
	movl	(%r14,%rsi,4), %ecx
	xorl	$3, %edx
	jmp	LBB0_15
LBB0_11:
	movl	%r8d, %edi
	andl	$-2, %edi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rsi,4), %ecx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movslq	(%rbx), %rcx
	leaq	1(%rcx), %rdx
	movl	%edx, (%rbx)
	movl	4(%r14,%rsi,4), %edx
	movl	%edx, 4(%rax,%rcx,4)
	movl	(%rbx), %edx
	incl	%edx
	movl	%edx, (%rbx)
	addq	$2, %rsi
	cmpq	%rsi, %rdi
	jne	LBB0_12
LBB0_13:
	testb	$1, %r8b
	je	LBB0_16
## %bb.14:
	movl	(%r14,%rsi,4), %ecx
LBB0_15:
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	incl	(%rbx)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ar934x_nfc_write_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar934x_nfc_write_buf
_ar934x_nfc_write_buf:                  ; @ar934x_nfc_write_buf
	.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	x19, x1
	bl	_mtd_to_ar934x_nfc
	mov	x20, x0
	ldp	w8, w9, [x0]
	add	w8, w8, w21
	cmp	w8, w9
	cset	w0, gt
	bl	_WARN_ON
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.1:
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.2:
	ldr	x8, [x20, #8]
	mov	w9, w21
	ldr	w10, [x20]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x19], #4
	eor	w10, w10, #0x3
	str	w11, [x8, w10, sxtw #2]
	ldr	w10, [x20]
	add	w10, w10, #1
	str	w10, [x20]
	subs	x9, x9, #1
	b.ne	LBB0_3
	b	LBB0_7
LBB0_4:
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.5:
	ldr	x8, [x20, #8]
	mov	w9, w21
	ldr	w10, [x20]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x19], #4
	str	w11, [x8, w10, sxtw #2]
	ldr	w10, [x20]
	add	w10, w10, #1
	str	w10, [x20]
	subs	x9, x9, #1
	b.ne	LBB0_6
LBB0_7:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ar934x_nfc_write_buf
.subsections_via_symbols
