	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_prog_page
_send_prog_page:                        ## @send_prog_page
	.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, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_MTD_DEBUG_LEVEL3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DEBUG
	movq	_NFC_BUF_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	%r15d, %edi
	callq	_writew
	cmpl	$0, 8(%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_NFC_CONFIG1@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_readw
	movq	_NFC_SP_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%edi, %ecx
	orl	%eax, %ecx
	notl	%edi
	andl	%eax, %edi
	testl	%r14d, %r14d
	cmovnel	%ecx, %edi
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	callq	_writew
LBB0_2:
	movq	_NFC_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NFC_CONFIG2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writew
	movq	_TROP_US_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	$1, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wait_op_done                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MTD_DEBUG_LEVEL3,4,2           ## @MTD_DEBUG_LEVEL3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"send_prog_page (%d)\n"

	.comm	_NFC_BUF_ADDR,8,3               ## @NFC_BUF_ADDR
	.comm	_NFC_CONFIG1,8,3                ## @NFC_CONFIG1
	.comm	_NFC_SP_EN,4,2                  ## @NFC_SP_EN
	.comm	_NFC_INPUT,4,2                  ## @NFC_INPUT
	.comm	_NFC_CONFIG2,8,3                ## @NFC_CONFIG2
	.comm	_TROP_US_DELAY,4,2              ## @TROP_US_DELAY
	.no_dead_strip	_send_prog_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_prog_page
_send_prog_page:                        ; @send_prog_page
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MTD_DEBUG_LEVEL3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTD_DEBUG_LEVEL3@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DEBUG
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _NFC_BUF_ADDR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NFC_BUF_ADDR@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writew
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x20]
Lloh8:
	adrp	x21, _NFC_CONFIG1@GOTPAGE
Lloh9:
	ldr	x21, [x21, _NFC_CONFIG1@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readw
Lloh10:
	adrp	x8, _NFC_SP_EN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NFC_SP_EN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w9, w8, w0
	bic	w8, w0, w8
	cmp	w19, #0
	csel	w0, w8, w9, eq
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writew
LBB0_2:
Lloh13:
	adrp	x8, _NFC_INPUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NFC_INPUT@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	x8, [x20]
Lloh16:
	adrp	x9, _NFC_CONFIG2@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NFC_CONFIG2@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writew
Lloh19:
	adrp	x8, _TROP_US_DELAY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TROP_US_DELAY@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	w3, #1
	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	_wait_op_done
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MTD_DEBUG_LEVEL3,4,2           ; @MTD_DEBUG_LEVEL3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"send_prog_page (%d)\n"

	.comm	_NFC_BUF_ADDR,8,3               ; @NFC_BUF_ADDR
	.comm	_NFC_CONFIG1,8,3                ; @NFC_CONFIG1
	.comm	_NFC_SP_EN,4,2                  ; @NFC_SP_EN
	.comm	_NFC_INPUT,4,2                  ; @NFC_INPUT
	.comm	_NFC_CONFIG2,8,3                ; @NFC_CONFIG2
	.comm	_TROP_US_DELAY,4,2              ; @TROP_US_DELAY
	.no_dead_strip	_send_prog_page
.subsections_via_symbols
