	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function doc_set_asic_mode
_doc_set_asic_mode:                     ## @doc_set_asic_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_DOC_IOSPACE_IPL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_doc_readb
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_doc_readb
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_doc_readb
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_doc_readb
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_doc_readb
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_doc_readb
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_doc_readb
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_doc_readb
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_doc_readb
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_doc_readb
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_doc_readb
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_doc_readb
	movq	_DOC_ASICMODE_MDWREN@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_doc_dbg
	movq	_DOC_ASICMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_doc_writeb
	notl	%r14d
	movq	_DOC_ASICMODECONFIRM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_doc_writeb
	movq	%rbx, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_doc_delay                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DOC_IOSPACE_IPL,4,2            ## @DOC_IOSPACE_IPL
	.comm	_DOC_ASICMODE_MDWREN,4,2        ## @DOC_ASICMODE_MDWREN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"doc_set_asic_mode(%02x)\n"

	.comm	_DOC_ASICMODE,4,2               ## @DOC_ASICMODE
	.comm	_DOC_ASICMODECONFIRM,4,2        ## @DOC_ASICMODECONFIRM
	.no_dead_strip	_doc_set_asic_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_asic_mode
_doc_set_asic_mode:                     ; @doc_set_asic_mode
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _DOC_IOSPACE_IPL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DOC_IOSPACE_IPL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_doc_readb
	ldr	w1, [x21]
	mov	x0, x19
	bl	_doc_readb
	ldr	w1, [x21]
	mov	x0, x19
	bl	_doc_readb
	ldr	w1, [x21]
	mov	x0, x19
	bl	_doc_readb
	ldr	w1, [x21]
	mov	x0, x19
	bl	_doc_readb
	ldr	w1, [x21]
	mov	x0, x19
	bl	_doc_readb
	ldr	w1, [x21]
	mov	x0, x19
	bl	_doc_readb
	ldr	w1, [x21]
	mov	x0, x19
	bl	_doc_readb
	ldr	w1, [x21]
	mov	x0, x19
	bl	_doc_readb
	ldr	w1, [x21]
	mov	x0, x19
	bl	_doc_readb
	ldr	w1, [x21]
	mov	x0, x19
	bl	_doc_readb
	ldr	w1, [x21]
	mov	x0, x19
	bl	_doc_readb
Lloh2:
	adrp	x8, _DOC_ASICMODE_MDWREN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DOC_ASICMODE_MDWREN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w20, w8, w20
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_doc_dbg
Lloh7:
	adrp	x8, _DOC_ASICMODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DOC_ASICMODE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_doc_writeb
	mvn	w1, w20
Lloh10:
	adrp	x8, _DOC_ASICMODECONFIRM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DOC_ASICMODECONFIRM@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_doc_writeb
	mov	x0, x19
	mov	w1, #1
	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
	b	_doc_delay
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DOC_IOSPACE_IPL,4,2            ; @DOC_IOSPACE_IPL
	.comm	_DOC_ASICMODE_MDWREN,4,2        ; @DOC_ASICMODE_MDWREN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"doc_set_asic_mode(%02x)\n"

	.comm	_DOC_ASICMODE,4,2               ; @DOC_ASICMODE
	.comm	_DOC_ASICMODECONFIRM,4,2        ; @DOC_ASICMODECONFIRM
	.no_dead_strip	_doc_set_asic_mode
.subsections_via_symbols
