	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda1997x_power_mode
_tda1997x_power_mode:                   ## @tda1997x_power_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_REG_PON_OVR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PON_DIS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_io_write
	movq	_REG_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PON_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_io_write
	movq	_REG_DEEP_PLL7_BYP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_io_write
	movq	_REG_OF@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_io_read
	movq	_OF_VP_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	jmp	LBB0_3
LBB0_2:
	movq	_REG_OF@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_io_read
	movq	_OF_VP_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_io_write
	movq	_REG_DEEP_PLL7_BYP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PON_EN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_io_write
	movq	_REG_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PON_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_io_write
	movl	(%rbx), %edx
	movq	_REG_PON_OVR_EN@GOTPCREL(%rip), %rbx
LBB0_3:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_io_write                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_PON_OVR_EN,4,2             ## @REG_PON_OVR_EN
	.comm	_PON_DIS,4,2                    ## @PON_DIS
	.comm	_REG_CFG1,4,2                   ## @REG_CFG1
	.comm	_PON_EN,4,2                     ## @PON_EN
	.comm	_REG_DEEP_PLL7_BYP,4,2          ## @REG_DEEP_PLL7_BYP
	.comm	_REG_OF,4,2                     ## @REG_OF
	.comm	_OF_VP_ENABLE,4,2               ## @OF_VP_ENABLE
	.no_dead_strip	_tda1997x_power_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda1997x_power_mode
_tda1997x_power_mode:                   ; @tda1997x_power_mode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cbz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _REG_PON_OVR_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_PON_OVR_EN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x20, _PON_DIS@GOTPAGE
Lloh4:
	ldr	x20, [x20, _PON_DIS@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_io_write
Lloh5:
	adrp	x8, _REG_CFG1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_CFG1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _PON_EN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PON_EN@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_io_write
Lloh11:
	adrp	x8, _REG_DEEP_PLL7_BYP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_DEEP_PLL7_BYP@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_io_write
Lloh14:
	adrp	x20, _REG_OF@GOTPAGE
Lloh15:
	ldr	x20, [x20, _REG_OF@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_io_read
Lloh16:
	adrp	x8, _OF_VP_ENABLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OF_VP_ENABLE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	bic	w2, w0, w8
	b	LBB0_3
LBB0_2:
Lloh19:
	adrp	x20, _REG_OF@GOTPAGE
Lloh20:
	ldr	x20, [x20, _REG_OF@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_io_read
Lloh21:
	adrp	x8, _OF_VP_ENABLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _OF_VP_ENABLE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x20]
	mov	x0, x19
	bl	_io_write
Lloh24:
	adrp	x8, _REG_DEEP_PLL7_BYP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _REG_DEEP_PLL7_BYP@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x20, _PON_EN@GOTPAGE
Lloh28:
	ldr	x20, [x20, _PON_EN@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_io_write
Lloh29:
	adrp	x8, _REG_CFG1@GOTPAGE
Lloh30:
	ldr	x8, [x8, _REG_CFG1@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _PON_DIS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PON_DIS@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_io_write
	ldr	w2, [x20]
Lloh35:
	adrp	x20, _REG_PON_OVR_EN@GOTPAGE
Lloh36:
	ldr	x20, [x20, _REG_PON_OVR_EN@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_io_write
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_PON_OVR_EN,4,2             ; @REG_PON_OVR_EN
	.comm	_PON_DIS,4,2                    ; @PON_DIS
	.comm	_REG_CFG1,4,2                   ; @REG_CFG1
	.comm	_PON_EN,4,2                     ; @PON_EN
	.comm	_REG_DEEP_PLL7_BYP,4,2          ; @REG_DEEP_PLL7_BYP
	.comm	_REG_OF,4,2                     ; @REG_OF
	.comm	_OF_VP_ENABLE,4,2               ; @OF_VP_ENABLE
	.no_dead_strip	_tda1997x_power_mode
.subsections_via_symbols
