	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flashcontrol_show
_flashcontrol_show:                     ## @flashcontrol_show
	.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
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	(%rbx), %rdi
	callq	_mutex_lock
	movq	_DOC_FLASHCONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_doc_register_readb
	movl	%eax, %r15d
	movq	(%rbx), %rdi
	callq	_mutex_unlock
	movq	_DOC_CTRL_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	_DOC_CTRL_CE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%r15d, %edx
	leaq	L_.str.4(%rip), %rdx
	leaq	L_.str.3(%rip), %r8
	cmoveq	%rdx, %r8
	movq	_DOC_CTRL_PROTECTION_ERROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%r15d, %edx
	leaq	L_.str.5(%rip), %r9
	cmoveq	%rax, %r9
	movq	_DOC_CTRL_SEQUENCE_ERROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%r15d, %edx
	leaq	L_.str.6(%rip), %rbx
	cmoveq	%rax, %rbx
	movq	_DOC_CTRL_FLASHREADY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	leaq	L_.str.8(%rip), %rdx
	leaq	L_.str.7(%rip), %rax
	cmoveq	%rdx, %rax
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	pushq	%rax
	pushq	%rbx
	callq	_seq_printf
	addq	$16, %rsp
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DOC_FLASHCONTROL,4,2           ## @DOC_FLASHCONTROL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FlashControl : 0x%02x (%s,CE# %s,%s,%s,flash %s)\n"

	.comm	_DOC_CTRL_VIOLATION,4,2         ## @DOC_CTRL_VIOLATION
L_.str.1:                               ## @.str.1
	.asciz	"protocol violation"

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

	.comm	_DOC_CTRL_CE,4,2                ## @DOC_CTRL_CE
L_.str.3:                               ## @.str.3
	.asciz	"active"

L_.str.4:                               ## @.str.4
	.asciz	"inactive"

	.comm	_DOC_CTRL_PROTECTION_ERROR,4,2  ## @DOC_CTRL_PROTECTION_ERROR
L_.str.5:                               ## @.str.5
	.asciz	"protection error"

	.comm	_DOC_CTRL_SEQUENCE_ERROR,4,2    ## @DOC_CTRL_SEQUENCE_ERROR
L_.str.6:                               ## @.str.6
	.asciz	"sequence error"

	.comm	_DOC_CTRL_FLASHREADY,4,2        ## @DOC_CTRL_FLASHREADY
L_.str.7:                               ## @.str.7
	.asciz	"ready"

L_.str.8:                               ## @.str.8
	.asciz	"not ready"

	.no_dead_strip	_flashcontrol_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flashcontrol_show
_flashcontrol_show:                     ; @flashcontrol_show
	.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, x0
	ldr	x20, [x0]
	ldr	x0, [x20]
	bl	_mutex_lock
Lloh0:
	adrp	x8, _DOC_FLASHCONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DOC_FLASHCONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_doc_register_readb
	mov	x21, x0
	ldr	x0, [x20]
	bl	_mutex_unlock
Lloh3:
	adrp	x8, _DOC_CTRL_VIOLATION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DOC_CTRL_VIOLATION@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, l_.str.1@PAGE
Lloh7:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh8:
	adrp	x10, l_.str.2@PAGE
Lloh9:
	add	x10, x10, l_.str.2@PAGEOFF
	tst	w8, w21
	csel	x3, x10, x9, eq
Lloh10:
	adrp	x8, _DOC_CTRL_CE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DOC_CTRL_CE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, l_.str.3@PAGE
Lloh14:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh15:
	adrp	x11, l_.str.4@PAGE
Lloh16:
	add	x11, x11, l_.str.4@PAGEOFF
	tst	w8, w21
	csel	x4, x11, x9, eq
Lloh17:
	adrp	x8, _DOC_CTRL_PROTECTION_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DOC_CTRL_PROTECTION_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, l_.str.5@PAGE
Lloh21:
	add	x9, x9, l_.str.5@PAGEOFF
	tst	w8, w21
	csel	x5, x10, x9, eq
Lloh22:
	adrp	x8, _DOC_CTRL_SEQUENCE_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DOC_CTRL_SEQUENCE_ERROR@GOTPAGEOFF]
Lloh24:
	adrp	x9, l_.str.6@PAGE
Lloh25:
	add	x9, x9, l_.str.6@PAGEOFF
Lloh26:
	ldr	w8, [x8]
	tst	w8, w21
	csel	x6, x10, x9, eq
Lloh27:
	adrp	x8, _DOC_CTRL_FLASHREADY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DOC_CTRL_FLASHREADY@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, l_.str.7@PAGE
Lloh31:
	add	x9, x9, l_.str.7@PAGEOFF
Lloh32:
	adrp	x10, l_.str.8@PAGE
Lloh33:
	add	x10, x10, l_.str.8@PAGEOFF
	tst	w8, w21
	csel	x7, x10, x9, eq
Lloh34:
	adrp	x1, l_.str@PAGE
Lloh35:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_seq_printf
	mov	w0, #0
	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
	ret
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DOC_FLASHCONTROL,4,2           ; @DOC_FLASHCONTROL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FlashControl : 0x%02x (%s,CE# %s,%s,%s,flash %s)\n"

	.comm	_DOC_CTRL_VIOLATION,4,2         ; @DOC_CTRL_VIOLATION
l_.str.1:                               ; @.str.1
	.asciz	"protocol violation"

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

	.comm	_DOC_CTRL_CE,4,2                ; @DOC_CTRL_CE
l_.str.3:                               ; @.str.3
	.asciz	"active"

l_.str.4:                               ; @.str.4
	.asciz	"inactive"

	.comm	_DOC_CTRL_PROTECTION_ERROR,4,2  ; @DOC_CTRL_PROTECTION_ERROR
l_.str.5:                               ; @.str.5
	.asciz	"protection error"

	.comm	_DOC_CTRL_SEQUENCE_ERROR,4,2    ; @DOC_CTRL_SEQUENCE_ERROR
l_.str.6:                               ; @.str.6
	.asciz	"sequence error"

	.comm	_DOC_CTRL_FLASHREADY,4,2        ; @DOC_CTRL_FLASHREADY
l_.str.7:                               ; @.str.7
	.asciz	"ready"

l_.str.8:                               ; @.str.8
	.asciz	"not ready"

	.no_dead_strip	_flashcontrol_show
.subsections_via_symbols
