	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kxtj9_device_power_off
_kxtj9_device_power_off:                ## @kxtj9_device_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_PC1_OFF@GOTPCREL(%rip), %rax
	movl	16(%rdi), %edx
	andl	(%rax), %edx
	movl	%edx, 16(%rdi)
	movq	8(%rdi), %rdi
	movq	_CTRL_REG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_2:
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PC1_OFF,4,2                    ## @PC1_OFF
	.comm	_CTRL_REG1,4,2                  ## @CTRL_REG1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"soft power off failed\n"

	.no_dead_strip	_kxtj9_device_power_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kxtj9_device_power_off
_kxtj9_device_power_off:                ; @kxtj9_device_power_off
	.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
Lloh0:
	adrp	x8, _PC1_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PC1_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0, #16]
	and	w2, w9, w8
	str	w2, [x0, #16]
	ldr	x0, [x0, #8]
Lloh3:
	adrp	x8, _CTRL_REG1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTRL_REG1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x0, [x19]
	cbz	x0, LBB0_4
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x0
LBB0_3:
	ldr	x0, [x19, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19]
	cbnz	x0, LBB0_2
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PC1_OFF,4,2                    ; @PC1_OFF
	.comm	_CTRL_REG1,4,2                  ; @CTRL_REG1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"soft power off failed\n"

	.no_dead_strip	_kxtj9_device_power_off
.subsections_via_symbols
