	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kxcjk1013_chip_update_thresholds
_kxcjk1013_chip_update_thresholds:      ## @kxcjk1013_chip_update_thresholds
	.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
	movq	8(%rdi), %rdi
	movq	_KXCJK1013_REG_WAKE_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%r14), %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_KXTF9@GOTPCREL(%rip), %rax
	movq	(%r14), %rcx
	movq	8(%r14), %rdi
	cmpq	(%rax), %rcx
	jne	LBB0_3
## %bb.4:
	movq	_KXTF9_REG_WAKE_THRESH@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
LBB0_3:
	movq	_KXCJK1013_REG_WAKE_THRES@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movl	16(%r14), %edx
	callq	_i2c_smbus_write_byte_data
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_8
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %ebx
LBB0_7:
	movq	8(%r14), %rdi
	callq	_dev_err
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KXCJK1013_REG_WAKE_TIMER,4,2   ## @KXCJK1013_REG_WAKE_TIMER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error writing reg_wake_timer\n"

	.comm	_KXTF9,8,3                      ## @KXTF9
	.comm	_KXTF9_REG_WAKE_THRESH,4,2      ## @KXTF9_REG_WAKE_THRESH
	.comm	_KXCJK1013_REG_WAKE_THRES,4,2   ## @KXCJK1013_REG_WAKE_THRES
L_.str.1:                               ## @.str.1
	.asciz	"Error writing reg_wake_thres\n"

	.no_dead_strip	_kxcjk1013_chip_update_thresholds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kxcjk1013_chip_update_thresholds
_kxcjk1013_chip_update_thresholds:      ; @kxcjk1013_chip_update_thresholds
	.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
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _KXCJK1013_REG_WAKE_TIMER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KXCJK1013_REG_WAKE_TIMER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19, #20]
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _KXTF9@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KXTF9@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _KXTF9_REG_WAKE_THRESH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KXTF9_REG_WAKE_THRESH@GOTPAGEOFF]
Lloh8:
	adrp	x10, _KXCJK1013_REG_WAKE_THRES@GOTPAGE
Lloh9:
	ldr	x10, [x10, _KXCJK1013_REG_WAKE_THRES@GOTPAGEOFF]
	ldp	x11, x0, [x19]
	cmp	x11, x8
	csel	x8, x9, x10, eq
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w20, #0
	b	LBB0_6
LBB0_3:
	mov	x20, x0
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	mov	x20, x0
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	ldr	x0, [x19, #8]
	bl	_dev_err
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_KXCJK1013_REG_WAKE_TIMER,4,2   ; @KXCJK1013_REG_WAKE_TIMER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error writing reg_wake_timer\n"

	.comm	_KXTF9,8,3                      ; @KXTF9
	.comm	_KXTF9_REG_WAKE_THRESH,4,2      ; @KXTF9_REG_WAKE_THRESH
	.comm	_KXCJK1013_REG_WAKE_THRES,4,2   ; @KXCJK1013_REG_WAKE_THRES
l_.str.1:                               ; @.str.1
	.asciz	"Error writing reg_wake_thres\n"

	.no_dead_strip	_kxcjk1013_chip_update_thresholds
.subsections_via_symbols
