	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar934x_nfc_read_buf
_ar934x_nfc_read_buf:                   ## @ar934x_nfc_read_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, %rbx
	callq	_mtd_to_ar934x_nfc
	movq	%rax, %r14
	movl	(%rax), %eax
	addl	%r15d, %eax
	xorl	%edi, %edi
	cmpl	4(%r14), %eax
	setg	%dil
	callq	_WARN_ON
	movl	(%r14), %eax
	cmpq	$0, 24(%r14)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, 16(%r14)
	je	LBB0_10
LBB0_2:
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.3:
	movq	8(%r14), %rcx
	movl	%r15d, %r8d
	cmpl	$1, %r15d
	jne	LBB0_5
## %bb.4:
	xorl	%esi, %esi
	testb	$1, %r8b
	jne	LBB0_8
	jmp	LBB0_9
LBB0_5:
	movl	%r8d, %edi
	andl	$-2, %edi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rax,%rsi), %edx
	xorl	$3, %edx
	movslq	%edx, %rdx
	movl	(%rcx,%rdx,4), %edx
	movl	%edx, (%rbx,%rsi,4)
	leal	(%rax,%rsi), %edx
	incl	%edx
	xorl	$3, %edx
	movslq	%edx, %rdx
	movl	(%rcx,%rdx,4), %edx
	movl	%edx, 4(%rbx,%rsi,4)
	addq	$2, %rsi
	cmpq	%rsi, %rdi
	jne	LBB0_6
## %bb.7:
	addl	%esi, %eax
	testb	$1, %r8b
	je	LBB0_9
LBB0_8:
	movl	%eax, %edx
	xorl	$3, %edx
	movslq	%edx, %rdx
	movl	(%rcx,%rdx,4), %ecx
	movl	%ecx, (%rbx,%rsi,4)
	incl	%eax
LBB0_9:
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.11:
	cltq
	movq	8(%r14), %r10
	movl	%r15d, %r9d
	cmpl	$8, %r15d
	jb	LBB0_12
## %bb.13:
	leaq	(%r10,%rax,4), %rcx
	movq	%rbx, %rdx
	subq	%rcx, %rdx
	cmpq	$32, %rdx
	jae	LBB0_15
LBB0_12:
	xorl	%esi, %esi
LBB0_23:
	movq	%rsi, %rcx
	notq	%rcx
	addq	%r9, %rcx
	movq	%r9, %rdx
	andq	$3, %rdx
	je	LBB0_25
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rax,4), %edi
	movl	%edi, (%rbx,%rsi,4)
	incq	%rax
	incq	%rsi
	decq	%rdx
	jne	LBB0_24
LBB0_25:
	cmpq	$3, %rcx
	jb	LBB0_9
## %bb.26:
	leaq	(%r10,%rax,4), %rcx
	addq	$12, %rcx
	subq	%rsi, %r9
	leaq	(%rbx,%rsi,4), %rsi
	addq	$12, %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movl	-12(%rcx,%rdx,4), %edi
	movl	%edi, -12(%rsi,%rdx,4)
	movl	-8(%rcx,%rdx,4), %edi
	movl	%edi, -8(%rsi,%rdx,4)
	movl	-4(%rcx,%rdx,4), %edi
	movl	%edi, -4(%rsi,%rdx,4)
	movl	(%rcx,%rdx,4), %edi
	movl	%edi, (%rsi,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %r9
	jne	LBB0_27
## %bb.28:
	addq	%rdx, %rax
	jmp	LBB0_9
LBB0_15:
	movl	%r9d, %esi
	andl	$-8, %esi
	leaq	-8(%rsi), %rcx
	movq	%rcx, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r8d
	andl	$3, %r8d
	cmpq	$24, %rcx
	jae	LBB0_17
## %bb.16:
	xorl	%ecx, %ecx
	jmp	LBB0_19
LBB0_17:
	andq	$-4, %rdi
	leaq	(%r10,%rax,4), %rdx
	addq	$112, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movups	-112(%rdx,%rcx,4), %xmm0
	movups	-96(%rdx,%rcx,4), %xmm1
	movups	%xmm0, (%rbx,%rcx,4)
	movups	%xmm1, 16(%rbx,%rcx,4)
	movups	-80(%rdx,%rcx,4), %xmm0
	movups	-64(%rdx,%rcx,4), %xmm1
	movups	%xmm0, 32(%rbx,%rcx,4)
	movups	%xmm1, 48(%rbx,%rcx,4)
	movups	-48(%rdx,%rcx,4), %xmm0
	movups	-32(%rdx,%rcx,4), %xmm1
	movups	%xmm0, 64(%rbx,%rcx,4)
	movups	%xmm1, 80(%rbx,%rcx,4)
	movups	-16(%rdx,%rcx,4), %xmm0
	movups	(%rdx,%rcx,4), %xmm1
	movups	%xmm0, 96(%rbx,%rcx,4)
	movups	%xmm1, 112(%rbx,%rcx,4)
	addq	$32, %rcx
	addq	$-4, %rdi
	jne	LBB0_18
LBB0_19:
	testq	%r8, %r8
	je	LBB0_22
## %bb.20:
	leaq	(%rbx,%rcx,4), %rdx
	addq	$16, %rdx
	addq	%rax, %rcx
	leaq	(%r10,%rcx,4), %rcx
	addq	$16, %rcx
	shlq	$5, %r8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rcx,%rdi), %xmm0
	movups	(%rcx,%rdi), %xmm1
	movups	%xmm0, -16(%rdx,%rdi)
	movups	%xmm1, (%rdx,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_21
LBB0_22:
	addq	%rsi, %rax
	cmpq	%r9, %rsi
	je	LBB0_9
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ar934x_nfc_read_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_read_buf
_ar934x_nfc_read_buf:                   ; @ar934x_nfc_read_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	x20, x1
	bl	_mtd_to_ar934x_nfc
	mov	x19, x0
	ldp	w8, w9, [x0]
	add	w8, w8, w21
	cmp	w8, w9
	cset	w0, gt
	bl	_WARN_ON
	ldr	w8, [x19]
	ldr	x9, [x19, #24]
	cbnz	x9, LBB0_2
; %bb.1:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_6
LBB0_2:
	cmp	w21, #1
	b.lt	LBB0_5
; %bb.3:
	ldr	x9, [x19, #8]
	mov	w10, w21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	eor	w11, w8, #0x3
	ldr	w11, [x9, w11, sxtw #2]
	str	w11, [x20], #4
	add	w8, w8, #1
	subs	x10, x10, #1
	b.ne	LBB0_4
LBB0_5:
	str	w8, [x19]
	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
LBB0_6:
	cmp	w21, #1
	b.lt	LBB0_5
; %bb.7:
	sxtw	x8, w8
	ldr	x9, [x19, #8]
	mov	w10, w21
	cmp	w21, #16
	b.lo	LBB0_9
; %bb.8:
	add	x12, x9, x8, lsl #2
	sub	x11, x20, x12
	cmp	x11, #64
	b.hs	LBB0_13
LBB0_9:
	mov	x11, #0
LBB0_10:
	add	x12, x20, x11, lsl #2
	sub	x10, x10, x11
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9, x8, lsl #2]
	str	w11, [x12], #4
	add	x8, x8, #1
	subs	x10, x10, #1
	b.ne	LBB0_11
LBB0_12:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	b	LBB0_5
LBB0_13:
	and	x11, x10, #0xfffffff0
	add	x8, x11, x8
	add	x12, x12, #32
	add	x13, x20, #32
	mov	x14, x11
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	subs	x14, x14, #16
	b.ne	LBB0_14
; %bb.15:
	cmp	x11, x10
	b.eq	LBB0_12
	b	LBB0_10
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ar934x_nfc_read_buf
.subsections_via_symbols
