	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tps65910_sleepinit
_tps65910_sleepinit:                    ## @tps65910_sleepinit
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	cmpl	$0, 24(%rsi)
	je	LBB0_13
## %bb.1:
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	(%rdi), %r15
	movq	_TPS65910_DEVCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DEVCTRL_DEV_SLP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_tps65910_reg_set_bits
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	cmpq	$0, 16(%r13)
	je	LBB0_6
## %bb.4:
	movq	_TPS65910_SLEEP_KEEP_RES_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SLEEP_KEEP_RES_ON_THERM_KEEPON_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_tps65910_reg_set_bits
	testl	%eax, %eax
	js	LBB0_5
LBB0_6:
	cmpq	$0, 8(%r13)
	je	LBB0_9
## %bb.7:
	movq	_TPS65910_SLEEP_KEEP_RES_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SLEEP_KEEP_RES_ON_CLKOUT32K_KEEPON_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_tps65910_reg_set_bits
	testl	%eax, %eax
	js	LBB0_8
LBB0_9:
	cmpq	$0, (%r13)
	je	LBB0_13
## %bb.10:
	movq	_TPS65910_SLEEP_KEEP_RES_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SLEEP_KEEP_RES_ON_I2CHS_KEEPON_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_tps65910_reg_set_bits
	testl	%eax, %eax
	jns	LBB0_13
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_12
LBB0_2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	%ebx, %r14d
	jmp	LBB0_13
LBB0_5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_12
LBB0_8:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_12:
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	movl	%ebx, %r14d
	movq	_TPS65910_DEVCTRL@GOTPCREL(%rip), %rax
	movq	_DEVCTRL_DEV_SLP_MASK@GOTPCREL(%rip), %rcx
	movl	(%rax), %esi
	movl	(%rcx), %edx
	movq	%r12, %rdi
	callq	_tps65910_reg_clear_bits
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TPS65910_DEVCTRL,4,2           ## @TPS65910_DEVCTRL
	.comm	_DEVCTRL_DEV_SLP_MASK,4,2       ## @DEVCTRL_DEV_SLP_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set dev_slp failed: %d\n"

	.comm	_TPS65910_SLEEP_KEEP_RES_ON,4,2 ## @TPS65910_SLEEP_KEEP_RES_ON
	.comm	_SLEEP_KEEP_RES_ON_THERM_KEEPON_MASK,4,2 ## @SLEEP_KEEP_RES_ON_THERM_KEEPON_MASK
L_.str.1:                               ## @.str.1
	.asciz	"set therm_keepon failed: %d\n"

	.comm	_SLEEP_KEEP_RES_ON_CLKOUT32K_KEEPON_MASK,4,2 ## @SLEEP_KEEP_RES_ON_CLKOUT32K_KEEPON_MASK
L_.str.2:                               ## @.str.2
	.asciz	"set clkout32k_keepon failed: %d\n"

	.comm	_SLEEP_KEEP_RES_ON_I2CHS_KEEPON_MASK,4,2 ## @SLEEP_KEEP_RES_ON_I2CHS_KEEPON_MASK
L_.str.3:                               ## @.str.3
	.asciz	"set i2chs_keepon failed: %d\n"

	.no_dead_strip	_tps65910_sleepinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tps65910_sleepinit
_tps65910_sleepinit:                    ; @tps65910_sleepinit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x1, #24]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x22, x1
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x23, _TPS65910_DEVCTRL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TPS65910_DEVCTRL@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x24, _DEVCTRL_DEV_SLP_MASK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DEVCTRL_DEV_SLP_MASK@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_tps65910_reg_set_bits
	tbnz	w0, #31, LBB0_9
; %bb.2:
	ldr	x8, [x22, #16]
Lloh4:
	adrp	x25, _TPS65910_SLEEP_KEEP_RES_ON@GOTPAGE
Lloh5:
	ldr	x25, [x25, _TPS65910_SLEEP_KEEP_RES_ON@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x25]
Lloh6:
	adrp	x8, _SLEEP_KEEP_RES_ON_THERM_KEEPON_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SLEEP_KEEP_RES_ON_THERM_KEEPON_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tps65910_reg_set_bits
	tbnz	w0, #31, LBB0_10
LBB0_4:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w1, [x25]
Lloh9:
	adrp	x8, _SLEEP_KEEP_RES_ON_CLKOUT32K_KEEPON_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SLEEP_KEEP_RES_ON_CLKOUT32K_KEEPON_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tps65910_reg_set_bits
	tbnz	w0, #31, LBB0_11
LBB0_6:
	ldr	x8, [x22]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w1, [x25]
Lloh12:
	adrp	x8, _SLEEP_KEEP_RES_ON_I2CHS_KEEPON_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SLEEP_KEEP_RES_ON_I2CHS_KEEPON_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tps65910_reg_set_bits
	tbnz	w0, #31, LBB0_12
LBB0_8:
	mov	w21, #0
	b	LBB0_14
LBB0_9:
	mov	x21, x0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
	b	LBB0_14
LBB0_10:
	mov	x21, x0
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_11:
	mov	x21, x0
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_12:
	mov	x21, x0
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_13:
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_tps65910_reg_clear_bits
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_TPS65910_DEVCTRL,4,2           ; @TPS65910_DEVCTRL
	.comm	_DEVCTRL_DEV_SLP_MASK,4,2       ; @DEVCTRL_DEV_SLP_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set dev_slp failed: %d\n"

	.comm	_TPS65910_SLEEP_KEEP_RES_ON,4,2 ; @TPS65910_SLEEP_KEEP_RES_ON
	.comm	_SLEEP_KEEP_RES_ON_THERM_KEEPON_MASK,4,2 ; @SLEEP_KEEP_RES_ON_THERM_KEEPON_MASK
l_.str.1:                               ; @.str.1
	.asciz	"set therm_keepon failed: %d\n"

	.comm	_SLEEP_KEEP_RES_ON_CLKOUT32K_KEEPON_MASK,4,2 ; @SLEEP_KEEP_RES_ON_CLKOUT32K_KEEPON_MASK
l_.str.2:                               ; @.str.2
	.asciz	"set clkout32k_keepon failed: %d\n"

	.comm	_SLEEP_KEEP_RES_ON_I2CHS_KEEPON_MASK,4,2 ; @SLEEP_KEEP_RES_ON_I2CHS_KEEPON_MASK
l_.str.3:                               ; @.str.3
	.asciz	"set i2chs_keepon failed: %d\n"

	.no_dead_strip	_tps65910_sleepinit
.subsections_via_symbols
