	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r8153_teredo_off
_r8153_teredo_off:                      ## @r8153_teredo_off
	.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
	movl	(%rdi), %eax
	leal	-130(%rax), %ecx
	cmpl	$7, %ecx
	jae	LBB0_1
## %bb.4:
	movq	_MCU_TYPE_PLA@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_PLA_TEREDO_CFG@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_ocp_read_word
	movq	_TEREDO_SEL@GOTPCREL(%rip), %rdx
	movq	_TEREDO_RS_EVENT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_OOB_TEREDO_EN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_ocp_write_word
	jmp	LBB0_3
LBB0_1:
	addl	$-128, %eax
	cmpl	$2, %eax
	jae	LBB0_3
## %bb.2:
	movq	_MCU_TYPE_PLA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PLA_TEREDO_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$255, %ecx
	callq	_ocp_write_byte
LBB0_3:
	movq	_MCU_TYPE_PLA@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_PLA_WDT6_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_WDT6_SET_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_ocp_write_word
	movl	(%r14), %esi
	movq	_PLA_REALWOW_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_ocp_write_word
	movl	(%r14), %esi
	movq	_PLA_TEREDO_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ocp_write_dword                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MCU_TYPE_PLA,4,2               ## @MCU_TYPE_PLA
	.comm	_PLA_TEREDO_CFG,4,2             ## @PLA_TEREDO_CFG
	.comm	_TEREDO_SEL,4,2                 ## @TEREDO_SEL
	.comm	_TEREDO_RS_EVENT_MASK,4,2       ## @TEREDO_RS_EVENT_MASK
	.comm	_OOB_TEREDO_EN,4,2              ## @OOB_TEREDO_EN
	.comm	_PLA_WDT6_CTRL,4,2              ## @PLA_WDT6_CTRL
	.comm	_WDT6_SET_MODE,4,2              ## @WDT6_SET_MODE
	.comm	_PLA_REALWOW_TIMER,4,2          ## @PLA_REALWOW_TIMER
	.comm	_PLA_TEREDO_TIMER,4,2           ## @PLA_TEREDO_TIMER
	.no_dead_strip	_r8153_teredo_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r8153_teredo_off
_r8153_teredo_off:                      ; @r8153_teredo_off
	.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	w8, [x0]
	sub	w9, w8, #130
Lloh0:
	adrp	x20, _MCU_TYPE_PLA@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MCU_TYPE_PLA@GOTPAGEOFF]
	cmp	w9, #7
	b.hs	LBB0_2
; %bb.1:
	ldr	w1, [x20]
Lloh2:
	adrp	x21, _PLA_TEREDO_CFG@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PLA_TEREDO_CFG@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ocp_read_word
Lloh4:
	adrp	x8, _TEREDO_SEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TEREDO_SEL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _TEREDO_RS_EVENT_MASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TEREDO_RS_EVENT_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _OOB_TEREDO_EN@GOTPAGE
Lloh11:
	ldr	x10, [x10, _OOB_TEREDO_EN@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh12:
	ldr	w9, [x10]
	orr	w8, w8, w9
	bic	w3, w0, w8
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ocp_write_word
	b	LBB0_4
LBB0_2:
	sub	w8, w8, #128
	cmp	w8, #2
	b.hs	LBB0_4
; %bb.3:
	ldr	w1, [x20]
Lloh13:
	adrp	x8, _PLA_TEREDO_CFG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PLA_TEREDO_CFG@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #255
	bl	_ocp_write_byte
LBB0_4:
	ldr	w1, [x20]
Lloh16:
	adrp	x8, _PLA_WDT6_CTRL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PLA_WDT6_CTRL@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x8, _WDT6_SET_MODE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WDT6_SET_MODE@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_ocp_write_word
	ldr	w1, [x20]
Lloh22:
	adrp	x8, _PLA_REALWOW_TIMER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PLA_REALWOW_TIMER@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_ocp_write_word
Lloh25:
	adrp	x8, _PLA_TEREDO_TIMER@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PLA_TEREDO_TIMER@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #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
	b	_ocp_write_dword
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MCU_TYPE_PLA,4,2               ; @MCU_TYPE_PLA
	.comm	_PLA_TEREDO_CFG,4,2             ; @PLA_TEREDO_CFG
	.comm	_TEREDO_SEL,4,2                 ; @TEREDO_SEL
	.comm	_TEREDO_RS_EVENT_MASK,4,2       ; @TEREDO_RS_EVENT_MASK
	.comm	_OOB_TEREDO_EN,4,2              ; @OOB_TEREDO_EN
	.comm	_PLA_WDT6_CTRL,4,2              ; @PLA_WDT6_CTRL
	.comm	_WDT6_SET_MODE,4,2              ; @WDT6_SET_MODE
	.comm	_PLA_REALWOW_TIMER,4,2          ; @PLA_REALWOW_TIMER
	.comm	_PLA_TEREDO_TIMER,4,2           ; @PLA_TEREDO_TIMER
	.no_dead_strip	_r8153_teredo_off
.subsections_via_symbols
