	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hisi_nfc_send_cmd_pageprog
_hisi_nfc_send_cmd_pageprog:            ## @hisi_nfc_send_cmd_pageprog
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movzwl	2(%rax), %esi
	shll	$16, %esi
	movl	%esi, (%rax)
	movq	_HINFC504_ADDRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_hinfc_write
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movq	_HINFC504_ADDRH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hinfc_write
	movq	_NAND_CMD_PAGEPROG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$8, %esi
	movq	_NAND_CMD_SEQIN@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_HINFC504_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hinfc_write
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_hisi_nfc_dma_transfer
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HINFC504_ADDRL,4,2             ## @HINFC504_ADDRL
	.comm	_HINFC504_ADDRH,4,2             ## @HINFC504_ADDRH
	.comm	_NAND_CMD_PAGEPROG,4,2          ## @NAND_CMD_PAGEPROG
	.comm	_NAND_CMD_SEQIN,4,2             ## @NAND_CMD_SEQIN
	.comm	_HINFC504_CMD,4,2               ## @HINFC504_CMD
	.no_dead_strip	_hisi_nfc_send_cmd_pageprog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hisi_nfc_send_cmd_pageprog
_hisi_nfc_send_cmd_pageprog:            ; @hisi_nfc_send_cmd_pageprog
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	ldrh	w9, [x8, #2]
	lsl	w1, w9, #16
	str	w1, [x8]
Lloh0:
	adrp	x8, _HINFC504_ADDRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HINFC504_ADDRL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_hinfc_write
	ldr	x8, [x19]
	ldr	w1, [x8, #4]
Lloh3:
	adrp	x8, _HINFC504_ADDRH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HINFC504_ADDRH@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hinfc_write
Lloh6:
	adrp	x8, _NAND_CMD_PAGEPROG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NAND_CMD_PAGEPROG@GOTPAGEOFF]
Lloh8:
	adrp	x9, _NAND_CMD_SEQIN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NAND_CMD_SEQIN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w8, lsl #8
Lloh12:
	adrp	x8, _HINFC504_CMD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HINFC504_CMD@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hinfc_write
	mov	x0, x19
	mov	w1, #1
	bl	_hisi_nfc_dma_transfer
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HINFC504_ADDRL,4,2             ; @HINFC504_ADDRL
	.comm	_HINFC504_ADDRH,4,2             ; @HINFC504_ADDRH
	.comm	_NAND_CMD_PAGEPROG,4,2          ; @NAND_CMD_PAGEPROG
	.comm	_NAND_CMD_SEQIN,4,2             ; @NAND_CMD_SEQIN
	.comm	_HINFC504_CMD,4,2               ; @HINFC504_CMD
	.no_dead_strip	_hisi_nfc_send_cmd_pageprog
.subsections_via_symbols
