	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function orinoco_nortel_cor_reset
_orinoco_nortel_cor_reset:              ## @orinoco_nortel_cor_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	(%rbx), %rsi
	addq	$2, %rsi
	movl	$8, %edi
	callq	_iowrite16
	movq	_COR_OFFSET@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_ioread16
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	movl	$128, %edi
	callq	_iowrite16
	movl	$1, %edi
	callq	_mdelay
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_iowrite16
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_iowrite16
	movl	$1, %edi
	callq	_mdelay
	movq	_COR_VALUE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	callq	_iowrite16
	movl	(%r15), %edi
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	callq	_iowrite16
	movl	$1, %edi
	callq	_mdelay
	movq	(%rbx), %rsi
	addq	$2, %rsi
	movl	$552, %edi                      ## imm = 0x228
	callq	_iowrite16
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COR_OFFSET,8,3                 ## @COR_OFFSET
	.comm	_COR_VALUE,4,2                  ## @COR_VALUE
	.no_dead_strip	_orinoco_nortel_cor_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function orinoco_nortel_cor_reset
_orinoco_nortel_cor_reset:              ; @orinoco_nortel_cor_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
	ldr	x19, [x0]
	ldr	x8, [x19]
	add	x1, x8, #2
	mov	w0, #8
	bl	_iowrite16
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x20, _COR_OFFSET@GOTPAGE
Lloh1:
	ldr	x20, [x20, _COR_OFFSET@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_ioread16
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #128
	bl	_iowrite16
	mov	w0, #1
	bl	_mdelay
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #0
	bl	_iowrite16
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #0
	bl	_iowrite16
	mov	w0, #1
	bl	_mdelay
Lloh2:
	adrp	x21, _COR_VALUE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _COR_VALUE@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_iowrite16
	ldr	w0, [x21]
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_iowrite16
	mov	w0, #1
	bl	_mdelay
	ldr	x8, [x19]
	add	x1, x8, #2
	mov	w0, #552
	bl	_iowrite16
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_COR_OFFSET,8,3                 ; @COR_OFFSET
	.comm	_COR_VALUE,4,2                  ; @COR_VALUE
	.no_dead_strip	_orinoco_nortel_cor_reset
.subsections_via_symbols
