	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asic_mode_show
_asic_mode_show:                        ## @asic_mode_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), %r15
	movq	(%r15), %rdi
	callq	_mutex_lock
	movq	_DOC_ASICMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_doc_register_readb
	movl	%eax, %ebx
	movq	(%r15), %rdi
	callq	_mutex_unlock
	movq	_DOC_ASICMODE_RAM_WE@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%ebx, %eax
	setne	%cl
	movq	_DOC_ASICMODE_RSTIN_RESET@GOTPCREL(%rip), %rax
	xorl	%r8d, %r8d
	movl	(%rax), %eax
	andl	%ebx, %eax
	setne	%r8b
	movq	_DOC_ASICMODE_BDETCT_RESET@GOTPCREL(%rip), %rax
	xorl	%r9d, %r9d
	movl	(%rax), %eax
	andl	%ebx, %eax
	setne	%r9b
	movq	_DOC_ASICMODE_MDWREN@GOTPCREL(%rip), %rdx
	xorl	%r10d, %r10d
	movl	(%rdx), %edx
	andl	%ebx, %edx
	setne	%r10b
	xorl	%r11d, %r11d
	testb	$-127, %bl
	setne	%r11b
	movl	%ebx, %eax
	shrl	%eax
	andl	$1, %eax
	movl	%ebx, %r15d
	andl	$1, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	pushq	%r15
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_seq_printf
	addq	$32, %rsp
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_seq_puts
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DOC_ASICMODE,4,2               ## @DOC_ASICMODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%04x : RAM_WE=%d,RSTIN_RESET=%d,BDETCT_RESET=%d,WRITE_ENABLE=%d,POWERDOWN=%d,MODE=%d%d ("

	.comm	_DOC_ASICMODE_RAM_WE,4,2        ## @DOC_ASICMODE_RAM_WE
	.comm	_DOC_ASICMODE_RSTIN_RESET,4,2   ## @DOC_ASICMODE_RSTIN_RESET
	.comm	_DOC_ASICMODE_BDETCT_RESET,4,2  ## @DOC_ASICMODE_BDETCT_RESET
	.comm	_DOC_ASICMODE_MDWREN,4,2        ## @DOC_ASICMODE_MDWREN
L_.str.4:                               ## @.str.4
	.asciz	")\n"

	.no_dead_strip	_asic_mode_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asic_mode_show
_asic_mode_show:                        ; @asic_mode_show
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x20, [x0]
	ldr	x0, [x20]
	bl	_mutex_lock
Lloh0:
	adrp	x8, _DOC_ASICMODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DOC_ASICMODE@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_ASICMODE_RAM_WE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DOC_ASICMODE_RAM_WE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	cset	w3, ne
Lloh6:
	adrp	x8, _DOC_ASICMODE_RSTIN_RESET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DOC_ASICMODE_RSTIN_RESET@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w21
	cset	w4, ne
Lloh9:
	adrp	x8, _DOC_ASICMODE_BDETCT_RESET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DOC_ASICMODE_BDETCT_RESET@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w21
	cset	w5, ne
Lloh12:
	adrp	x8, _DOC_ASICMODE_MDWREN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DOC_ASICMODE_MDWREN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w21
	cset	w6, ne
	mov	w8, #129
	tst	w21, w8
	cset	w7, ne
	ubfx	w8, w21, #1, #1
	and	w9, w21, #0x1
	stp	w8, w9, [sp]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_seq_printf
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_seq_puts
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DOC_ASICMODE,4,2               ; @DOC_ASICMODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%04x : RAM_WE=%d,RSTIN_RESET=%d,BDETCT_RESET=%d,WRITE_ENABLE=%d,POWERDOWN=%d,MODE=%d%d ("

	.comm	_DOC_ASICMODE_RAM_WE,4,2        ; @DOC_ASICMODE_RAM_WE
	.comm	_DOC_ASICMODE_RSTIN_RESET,4,2   ; @DOC_ASICMODE_RSTIN_RESET
	.comm	_DOC_ASICMODE_BDETCT_RESET,4,2  ; @DOC_ASICMODE_BDETCT_RESET
	.comm	_DOC_ASICMODE_MDWREN,4,2        ; @DOC_ASICMODE_MDWREN
l_.str.4:                               ; @.str.4
	.asciz	")\n"

	.no_dead_strip	_asic_mode_show
.subsections_via_symbols
