	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wanxl_reset
_wanxl_reset:                           ## @wanxl_reset
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_PLX_CONTROL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_PLX_CTL_RESET@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	_PLX_MAILBOX_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	$128, %edi
	callq	_writel
	movl	(%r12), %edi
	orl	%ebx, %edi
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	callq	_writel
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movl	$1, %edi
	callq	_udelay
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_readl                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PLX_CONTROL,8,3                ## @PLX_CONTROL
	.comm	_PLX_CTL_RESET,4,2              ## @PLX_CTL_RESET
	.comm	_PLX_MAILBOX_0,8,3              ## @PLX_MAILBOX_0
	.no_dead_strip	_wanxl_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wanxl_reset
_wanxl_reset:                           ; @wanxl_reset
	.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	x8, [x0]
Lloh0:
	adrp	x21, _PLX_CONTROL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PLX_CONTROL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x22, _PLX_CTL_RESET@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PLX_CTL_RESET@GOTPAGEOFF]
	ldr	w8, [x22]
	bic	w20, w0, w8
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _PLX_MAILBOX_0@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PLX_MAILBOX_0@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #128
	bl	_writel
	ldr	w8, [x22]
	orr	w0, w8, w20
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x0, x9, x8
	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	_readl
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PLX_CONTROL,8,3                ; @PLX_CONTROL
	.comm	_PLX_CTL_RESET,4,2              ; @PLX_CTL_RESET
	.comm	_PLX_MAILBOX_0,8,3              ; @PLX_MAILBOX_0
	.no_dead_strip	_wanxl_reset
.subsections_via_symbols
