	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_soc_decode_win                 ## -- Begin function soc_decode_win
	.p2align	4, 0x90
_soc_decode_win:                        ## @soc_decode_win
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	$0, -4(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-4(%rbp), %rsi
	callq	_TUNABLE_INT_FETCH
	movl	-4(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_2
## %bb.1:
	callq	_pm_disable_device
LBB0_2:
	xorl	%eax, %eax
	callq	_win_cpu_from_dt
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	leaq	-12(%rbp), %rdi
	leaq	-8(%rbp), %rsi
	callq	_soc_id
	movq	_soc_family@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MV_SOC_ARMADA_XP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_decode_win_sdram_fixup
	testl	%eax, %eax
	jne	LBB0_8
LBB0_5:
	xorl	%eax, %eax
	callq	_decode_win_cpu_setup
	movq	_MV_DUMP_WIN@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_soc_dump_decode_win
LBB0_7:
	movq	_eth_port@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_usb_port@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	callq	_fdt_win_setup
LBB0_8:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hw.pm-disable-mask"

	.comm	_soc_family,8,3                 ## @soc_family
	.comm	_MV_SOC_ARMADA_XP,8,3           ## @MV_SOC_ARMADA_XP
	.comm	_MV_DUMP_WIN,8,3                ## @MV_DUMP_WIN
	.comm	_eth_port,8,3                   ## @eth_port
	.comm	_usb_port,8,3                   ## @usb_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_soc_decode_win                 ; -- Begin function soc_decode_win
	.p2align	2
_soc_decode_win:                        ; @soc_decode_win
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	str	wzr, [sp, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #4
	bl	_TUNABLE_INT_FETCH
	ldr	w0, [sp, #4]
	cbz	w0, LBB0_2
; %bb.1:
	bl	_pm_disable_device
LBB0_2:
	bl	_win_cpu_from_dt
	cbnz	w0, LBB0_8
; %bb.3:
	sub	x0, x29, #4
	add	x1, sp, #8
	bl	_soc_id
Lloh2:
	adrp	x8, _soc_family@GOTPAGE
Lloh3:
	ldr	x8, [x8, _soc_family@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _MV_SOC_ARMADA_XP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MV_SOC_ARMADA_XP@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	bl	_decode_win_sdram_fixup
	cbnz	w0, LBB0_8
LBB0_5:
	bl	_decode_win_cpu_setup
Lloh8:
	adrp	x8, _MV_DUMP_WIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MV_DUMP_WIN@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	bl	_soc_dump_decode_win
LBB0_7:
Lloh11:
	adrp	x8, _eth_port@GOTPAGE
Lloh12:
	ldr	x8, [x8, _eth_port@GOTPAGEOFF]
Lloh13:
	str	xzr, [x8]
Lloh14:
	adrp	x8, _usb_port@GOTPAGE
Lloh15:
	ldr	x8, [x8, _usb_port@GOTPAGEOFF]
Lloh16:
	str	xzr, [x8]
	bl	_fdt_win_setup
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hw.pm-disable-mask"

	.comm	_soc_family,8,3                 ; @soc_family
	.comm	_MV_SOC_ARMADA_XP,8,3           ; @MV_SOC_ARMADA_XP
	.comm	_MV_DUMP_WIN,8,3                ; @MV_DUMP_WIN
	.comm	_eth_port,8,3                   ; @eth_port
	.comm	_usb_port,8,3                   ; @usb_port
.subsections_via_symbols
