	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rohm_ts_power_off
_rohm_ts_power_off:                     ## @rohm_ts_power_off
	.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
	movq	%rdi, %r14
	movq	_SYSTEM@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_ANALOG_POWER_ON@GOTPCREL(%rip), %rax
	movq	_CPU_POWER_OFF@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	(%rax), %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_2:
	movl	(%r15), %esi
	movq	_ANALOG_POWER_OFF@GOTPCREL(%rip), %rax
	movl	(%r12), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_SYSTEM,4,2                     ## @SYSTEM
	.comm	_ANALOG_POWER_ON,4,2            ## @ANALOG_POWER_ON
	.comm	_CPU_POWER_OFF,4,2              ## @CPU_POWER_OFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to power off device CPU: %d\n"

	.comm	_ANALOG_POWER_OFF,4,2           ## @ANALOG_POWER_OFF
L_.str.1:                               ## @.str.1
	.asciz	"failed to power off the device: %d\n"

	.no_dead_strip	_rohm_ts_power_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rohm_ts_power_off
_rohm_ts_power_off:                     ; @rohm_ts_power_off
	.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, x0
Lloh0:
	adrp	x21, _SYSTEM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SYSTEM@GOTPAGEOFF]
Lloh2:
	adrp	x8, _ANALOG_POWER_ON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ANALOG_POWER_ON@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x22, _CPU_POWER_OFF@GOTPAGE
Lloh6:
	ldr	x22, [x22, _CPU_POWER_OFF@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w2, w9, w8
	bl	_i2c_smbus_write_byte_data
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	w1, [x21]
Lloh9:
	adrp	x8, _ANALOG_POWER_OFF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ANALOG_POWER_OFF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.3:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_5:
	mov	x0, 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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SYSTEM,4,2                     ; @SYSTEM
	.comm	_ANALOG_POWER_ON,4,2            ; @ANALOG_POWER_ON
	.comm	_CPU_POWER_OFF,4,2              ; @CPU_POWER_OFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to power off device CPU: %d\n"

	.comm	_ANALOG_POWER_OFF,4,2           ; @ANALOG_POWER_OFF
l_.str.1:                               ; @.str.1
	.asciz	"failed to power off the device: %d\n"

	.no_dead_strip	_rohm_ts_power_off
.subsections_via_symbols
