	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar934x_nfc_send_write
_ar934x_nfc_send_write:                 ## @ar934x_nfc_send_write
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rsi
	callq	_nfc_dbg
	movl	4(%r13), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %edx
	callq	_nfc_debug_data
	movq	_NAND_CMD_SEQIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_AR934X_NFC_CMD_CMD0_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_AR934X_NFC_CMD_CMD1_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	%eax, %ebx
	movq	_AR934X_NFC_CMD_SEQ_12@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r13), %r9d
	movl	$1, (%rsp)
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	callq	_ar934x_nfc_do_rw_command
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write, column=%d page=%d len=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"[data] "

	.comm	_NAND_CMD_SEQIN,4,2             ## @NAND_CMD_SEQIN
	.comm	_AR934X_NFC_CMD_CMD0_S,4,2      ## @AR934X_NFC_CMD_CMD0_S
	.comm	_AR934X_NFC_CMD_CMD1_S,4,2      ## @AR934X_NFC_CMD_CMD1_S
	.comm	_AR934X_NFC_CMD_SEQ_12,4,2      ## @AR934X_NFC_CMD_SEQ_12
	.no_dead_strip	_ar934x_nfc_send_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar934x_nfc_send_write
_ar934x_nfc_send_write:                 ; @ar934x_nfc_send_write
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nfc_dbg
	ldr	w1, [x23, #4]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_nfc_debug_data
Lloh4:
	adrp	x8, _NAND_CMD_SEQIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NAND_CMD_SEQIN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _AR934X_NFC_CMD_CMD0_S@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AR934X_NFC_CMD_CMD0_S@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh10:
	adrp	x9, _AR934X_NFC_CMD_CMD1_S@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AR934X_NFC_CMD_CMD1_S@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	lsl	w9, w22, w9
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _AR934X_NFC_CMD_SEQ_12@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AR934X_NFC_CMD_SEQ_12@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w4, w8, w9
	ldr	w5, [x23]
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	w6, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ar934x_nfc_do_rw_command
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write, column=%d page=%d len=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"[data] "

	.comm	_NAND_CMD_SEQIN,4,2             ; @NAND_CMD_SEQIN
	.comm	_AR934X_NFC_CMD_CMD0_S,4,2      ; @AR934X_NFC_CMD_CMD0_S
	.comm	_AR934X_NFC_CMD_CMD1_S,4,2      ; @AR934X_NFC_CMD_CMD1_S
	.comm	_AR934X_NFC_CMD_SEQ_12,4,2      ; @AR934X_NFC_CMD_SEQ_12
	.no_dead_strip	_ar934x_nfc_send_write
.subsections_via_symbols
