	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r8153b_power_cut_en
_r8153b_power_cut_en:                   ## @r8153b_power_cut_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
	movq	%rdi, %rbx
	movq	_MCU_TYPE_USB@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_USB_POWER_CUT@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_ocp_read_word
	movq	_PWR_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	_PHASE2_EN@GOTPCREL(%rip), %rdx
	orl	%eax, %ecx
	orl	(%rdx), %ecx
	jmp	LBB0_3
LBB0_2:
	notl	%ecx
	andl	%eax, %ecx
LBB0_3:
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_ocp_write_word
	movl	(%r15), %esi
	movq	_USB_MISC_0@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_ocp_read_word
	movq	_PCUT_STATUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	(%r15), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ocp_write_word                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MCU_TYPE_USB,4,2               ## @MCU_TYPE_USB
	.comm	_USB_POWER_CUT,4,2              ## @USB_POWER_CUT
	.comm	_PWR_EN,4,2                     ## @PWR_EN
	.comm	_PHASE2_EN,4,2                  ## @PHASE2_EN
	.comm	_USB_MISC_0,4,2                 ## @USB_MISC_0
	.comm	_PCUT_STATUS,4,2                ## @PCUT_STATUS
	.no_dead_strip	_r8153b_power_cut_en
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r8153b_power_cut_en
_r8153b_power_cut_en:                   ; @r8153b_power_cut_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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _MCU_TYPE_USB@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MCU_TYPE_USB@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x22, _USB_POWER_CUT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _USB_POWER_CUT@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_ocp_read_word
Lloh4:
	adrp	x8, _PWR_EN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PWR_EN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cbz	w20, LBB0_2
; %bb.1:
Lloh7:
	adrp	x9, _PHASE2_EN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PHASE2_EN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w3, w8, w9
	b	LBB0_3
LBB0_2:
	bic	w3, w0, w8
LBB0_3:
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_ocp_write_word
	ldr	w1, [x21]
Lloh10:
	adrp	x20, _USB_MISC_0@GOTPAGE
Lloh11:
	ldr	x20, [x20, _USB_MISC_0@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_ocp_read_word
Lloh12:
	adrp	x8, _PCUT_STATUS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCUT_STATUS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bic	w3, w0, w8
	ldr	w1, [x21]
	ldr	w2, [x20]
	mov	x0, x19
	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_word
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MCU_TYPE_USB,4,2               ; @MCU_TYPE_USB
	.comm	_USB_POWER_CUT,4,2              ; @USB_POWER_CUT
	.comm	_PWR_EN,4,2                     ; @PWR_EN
	.comm	_PHASE2_EN,4,2                  ; @PHASE2_EN
	.comm	_USB_MISC_0,4,2                 ; @USB_MISC_0
	.comm	_PCUT_STATUS,4,2                ; @PCUT_STATUS
	.no_dead_strip	_r8153b_power_cut_en
.subsections_via_symbols
