	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function doc_set_reliable_mode
_doc_set_reliable_mode:                 ## @doc_set_reliable_mode
	.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
	leaq	_reltable.doc_set_reliable_mode(%rip), %rcx
	movslq	(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	leaq	L_.str.4(%rip), %rdi
	callq	_doc_dbg
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	cmpq	$2, %rax
	je	LBB0_5
## %bb.2:
	cmpq	$1, %rax
	jne	LBB0_6
## %bb.3:
	movq	_DOC_SEQ_SET_FASTMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_doc_flash_sequence
	movq	_DOC_CMD_FAST_MODE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	_DOC_SEQ_SET_RELIABLEMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_doc_flash_sequence
	movq	_DOC_CMD_FAST_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_doc_flash_command
	movq	_DOC_CMD_RELIABLE_MODE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_doc_flash_command
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.5(%rip), %rdi
	callq	_doc_err
LBB0_7:
	movq	%rbx, %rdi
	movl	$2, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_doc_delay                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.doc_set_reliable_mode
_reltable.doc_set_reliable_mode:
	.long	L_.str-_reltable.doc_set_reliable_mode
	.long	L_.str.1-_reltable.doc_set_reliable_mode
	.long	L_.str.2-_reltable.doc_set_reliable_mode
	.long	L_.str.3-_reltable.doc_set_reliable_mode

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"normal"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"invalid"

L_.str.4:                               ## @.str.4
	.asciz	"doc_set_reliable_mode(%s)\n"

	.comm	_DOC_SEQ_SET_FASTMODE,4,2       ## @DOC_SEQ_SET_FASTMODE
	.comm	_DOC_CMD_FAST_MODE,4,2          ## @DOC_CMD_FAST_MODE
	.comm	_DOC_SEQ_SET_RELIABLEMODE,4,2   ## @DOC_SEQ_SET_RELIABLEMODE
	.comm	_DOC_CMD_RELIABLE_MODE,4,2      ## @DOC_CMD_RELIABLE_MODE
L_.str.5:                               ## @.str.5
	.asciz	"doc_set_reliable_mode(): invalid mode\n"

	.no_dead_strip	_doc_set_reliable_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function doc_set_reliable_mode
_doc_set_reliable_mode:                 ; @doc_set_reliable_mode
	.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]
Lloh0:
	adrp	x9, _doc_set_reliable_mode.strmode@PAGE
Lloh1:
	add	x9, x9, _doc_set_reliable_mode.strmode@PAGEOFF
	ldr	x1, [x9, x8, lsl #3]
Lloh2:
	adrp	x0, l_.str.4@PAGE
Lloh3:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_doc_dbg
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.1:
	cmp	x8, #2
	b.eq	LBB0_4
; %bb.2:
	cmp	x8, #1
	b.ne	LBB0_6
; %bb.3:
Lloh4:
	adrp	x8, _DOC_SEQ_SET_FASTMODE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DOC_SEQ_SET_FASTMODE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_doc_flash_sequence
Lloh7:
	adrp	x8, _DOC_CMD_FAST_MODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DOC_CMD_FAST_MODE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _DOC_SEQ_SET_RELIABLEMODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DOC_SEQ_SET_RELIABLEMODE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_doc_flash_sequence
Lloh12:
	adrp	x8, _DOC_CMD_FAST_MODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DOC_CMD_FAST_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_doc_flash_command
Lloh15:
	adrp	x8, _DOC_CMD_RELIABLE_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DOC_CMD_RELIABLE_MODE@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_doc_flash_command
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x0, l_.str.5@PAGE
Lloh18:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_doc_err
LBB0_7:
	mov	x0, x19
	mov	w1, #2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_doc_delay
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @doc_set_reliable_mode.strmode
_doc_set_reliable_mode.strmode:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"normal"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"invalid"

l_.str.4:                               ; @.str.4
	.asciz	"doc_set_reliable_mode(%s)\n"

	.comm	_DOC_SEQ_SET_FASTMODE,4,2       ; @DOC_SEQ_SET_FASTMODE
	.comm	_DOC_CMD_FAST_MODE,4,2          ; @DOC_CMD_FAST_MODE
	.comm	_DOC_SEQ_SET_RELIABLEMODE,4,2   ; @DOC_SEQ_SET_RELIABLEMODE
	.comm	_DOC_CMD_RELIABLE_MODE,4,2      ; @DOC_CMD_RELIABLE_MODE
l_.str.5:                               ; @.str.5
	.asciz	"doc_set_reliable_mode(): invalid mode\n"

	.no_dead_strip	_doc_set_reliable_mode
.subsections_via_symbols
