	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r8153b_green_en
_r8153b_green_en:                       ## @r8153b_green_en
	.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
	movl	%esi, %r14d
	xorl	%edx, %edx
	testl	%esi, %esi
	movl	$9284, %eax                     ## imm = 0x2444
	cmovel	%eax, %edx
	movl	$4642, %r15d                    ## imm = 0x1222
	cmovel	%eax, %r15d
	movq	%rdi, %rbx
	movl	$34, %r12d
	cmovel	%eax, %r12d
	movl	$32837, %esi                    ## imm = 0x8045
	callq	_sram_write
	movq	%rbx, %rdi
	movl	$32845, %esi                    ## imm = 0x804D
	movl	%r15d, %edx
	callq	_sram_write
	movq	%rbx, %rdi
	movl	$32861, %esi                    ## imm = 0x805D
	movl	%r12d, %edx
	callq	_sram_write
	movq	_SRAM_GREEN_CFG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_sram_read
	movq	_GREEN_ETH_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_sram_write
	movl	%r14d, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SRAM_GREEN_CFG,4,2             ## @SRAM_GREEN_CFG
	.comm	_GREEN_ETH_EN,4,2               ## @GREEN_ETH_EN
	.no_dead_strip	_r8153b_green_en
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r8153b_green_en
_r8153b_green_en:                       ; @r8153b_green_en
	.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, x1
	mov	x20, x0
	mov	w8, #9284
	cmp	w1, #0
	csel	w2, w8, wzr, eq
	mov	w9, #4642
	csel	w21, w8, w9, eq
	mov	w9, #34
	csel	w22, w8, w9, eq
	mov	w1, #32837
	bl	_sram_write
	mov	x0, x20
	mov	w1, #32845
	mov	x2, x21
	bl	_sram_write
	mov	x0, x20
	mov	w1, #32861
	mov	x2, x22
	bl	_sram_write
Lloh0:
	adrp	x21, _SRAM_GREEN_CFG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SRAM_GREEN_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_sram_read
Lloh2:
	adrp	x8, _GREEN_ETH_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GREEN_ETH_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x21]
	mov	x0, x20
	bl	_sram_write
	str	w19, [x20]
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SRAM_GREEN_CFG,4,2             ; @SRAM_GREEN_CFG
	.comm	_GREEN_ETH_EN,4,2               ; @GREEN_ETH_EN
	.no_dead_strip	_r8153b_green_en
.subsections_via_symbols
