	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hideep_program_page
_hideep_program_page:                   ## @hideep_program_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	%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
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_hideep_check_status
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_HIDEEP_NVM_PAGE_SIZE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	andl	%r14d, %r13d
	xorl	%edi, %edi
	callq	_SET_FLASH_PIO
	movl	$1, %edi
	callq	_SET_FLASH_PIO
	movq	_HIDEEP_PERASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	%r13d, %edi
	movl	$-1, %esi
	callq	_SET_PIO_SIG
	xorl	%edi, %edi
	callq	_SET_FLASH_PIO
	movq	%r15, %rdi
	callq	_hideep_check_status
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	$1, %edi
	callq	_SET_FLASH_PIO
	movl	(%r12), %edi
	callq	_be32_to_cpu
	movq	_HIDEEP_WRONLY@GOTPCREL(%rip), %rbx
	orl	(%rbx), %r13d
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_SET_PIO_SIG
	movq	_HIDEEP_FLASH_PIO_SIG@GOTPCREL(%rip), %rax
	movl	(%rbx), %esi
	orl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_hideep_pgm_w_mem
	movl	-4(%r12,%rbx,4), %edi
	callq	_be32_to_cpu
	movl	$124, %edi
	movl	%eax, %esi
	callq	_SET_PIO_SIG
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_SET_FLASH_PIO
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$1100, %esi                     ## imm = 0x44C
	callq	_usleep_range
	movq	%r15, %rdi
	callq	_hideep_check_status
	testl	%eax, %eax
	je	LBB0_7
LBB0_4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	callq	_SET_FLASH_HWCONTROL
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_HIDEEP_NVM_PAGE_SIZE,4,2       ## @HIDEEP_NVM_PAGE_SIZE
	.comm	_HIDEEP_PERASE,4,2              ## @HIDEEP_PERASE
	.comm	_HIDEEP_WRONLY,4,2              ## @HIDEEP_WRONLY
	.comm	_HIDEEP_FLASH_PIO_SIG,4,2       ## @HIDEEP_FLASH_PIO_SIG
	.no_dead_strip	_hideep_program_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hideep_program_page
_hideep_program_page:                   ; @hideep_program_page
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_hideep_check_status
	cbnz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _HIDEEP_NVM_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HIDEEP_NVM_PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
	and	w22, w8, w22
	bl	_SET_FLASH_PIO
	mov	w0, #1
	bl	_SET_FLASH_PIO
Lloh3:
	adrp	x8, _HIDEEP_PERASE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HIDEEP_PERASE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w0, w8, w22
	mov	w1, #-1
	bl	_SET_PIO_SIG
	mov	w0, #0
	bl	_SET_FLASH_PIO
	mov	x0, x19
	bl	_hideep_check_status
	cbnz	w0, LBB0_3
; %bb.2:
	mov	w0, #1
	bl	_SET_FLASH_PIO
	ldr	w0, [x21]
	bl	_be32_to_cpu
	mov	x1, x0
Lloh6:
	adrp	x23, _HIDEEP_WRONLY@GOTPAGE
Lloh7:
	ldr	x23, [x23, _HIDEEP_WRONLY@GOTPAGEOFF]
	ldr	w8, [x23]
	orr	w0, w8, w22
	bl	_SET_PIO_SIG
Lloh8:
	adrp	x8, _HIDEEP_FLASH_PIO_SIG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HIDEEP_FLASH_PIO_SIG@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x23]
	orr	w1, w9, w8
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	bl	_hideep_pgm_w_mem
	add	x8, x21, x20, lsl #2
	ldur	w0, [x8, #-4]
	bl	_be32_to_cpu
	mov	x1, x0
	mov	w0, #124
	bl	_SET_PIO_SIG
	mov	w0, #0
	bl	_SET_FLASH_PIO
	mov	w0, #1000
	mov	w1, #1100
	bl	_usleep_range
	mov	x0, x19
	bl	_hideep_check_status
	cbz	w0, LBB0_5
LBB0_3:
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	ret
LBB0_5:
	bl	_SET_FLASH_HWCONTROL
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_HIDEEP_NVM_PAGE_SIZE,4,2       ; @HIDEEP_NVM_PAGE_SIZE
	.comm	_HIDEEP_PERASE,4,2              ; @HIDEEP_PERASE
	.comm	_HIDEEP_WRONLY,4,2              ; @HIDEEP_WRONLY
	.comm	_HIDEEP_FLASH_PIO_SIG,4,2       ; @HIDEEP_FLASH_PIO_SIG
	.no_dead_strip	_hideep_program_page
.subsections_via_symbols
