	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function doc_reset_seq
_doc_reset_seq:                         ## @doc_reset_seq
	.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	_DOC_FLASHCONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_doc_writeb
	movq	_DOC_SEQ_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_doc_flash_sequence
	movq	_DOC_CMD_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_doc_flash_command
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_doc_delay
	movq	%rbx, %rdi
	callq	_doc_wait_ready
	movl	%eax, %ebx
	testl	%eax, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_doc_dbg
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DOC_FLASHCONTROL,4,2           ## @DOC_FLASHCONTROL
	.comm	_DOC_SEQ_RESET,4,2              ## @DOC_SEQ_RESET
	.comm	_DOC_CMD_RESET,4,2              ## @DOC_CMD_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"doc_reset_seq() -> isReady=%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"false"

L_.str.2:                               ## @.str.2
	.asciz	"true"

	.no_dead_strip	_doc_reset_seq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function doc_reset_seq
_doc_reset_seq:                         ; @doc_reset_seq
	.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
Lloh0:
	adrp	x8, _DOC_FLASHCONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DOC_FLASHCONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #16
	bl	_doc_writeb
Lloh3:
	adrp	x8, _DOC_SEQ_RESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DOC_SEQ_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_doc_flash_sequence
Lloh6:
	adrp	x8, _DOC_CMD_RESET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DOC_CMD_RESET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_doc_flash_command
	mov	x0, x19
	mov	w1, #2
	bl	_doc_delay
	mov	x0, x19
	bl	_doc_wait_ready
	mov	x19, x0
Lloh9:
	adrp	x8, l_.str.1@PAGE
Lloh10:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh11:
	adrp	x9, l_.str.2@PAGE
Lloh12:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w0, #0
	csel	x1, x9, x8, eq
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_doc_dbg
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DOC_FLASHCONTROL,4,2           ; @DOC_FLASHCONTROL
	.comm	_DOC_SEQ_RESET,4,2              ; @DOC_SEQ_RESET
	.comm	_DOC_CMD_RESET,4,2              ; @DOC_CMD_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"doc_reset_seq() -> isReady=%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"false"

l_.str.2:                               ; @.str.2
	.asciz	"true"

	.no_dead_strip	_doc_reset_seq
.subsections_via_symbols
