	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kxcjk1013_setup_new_data_interrupt
_kxcjk1013_setup_new_data_interrupt:    ## @kxcjk1013_setup_new_data_interrupt
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	leaq	-36(%rbp), %rsi
	callq	_kxcjk1013_get_mode
	testl	%eax, %eax
	js	LBB0_15
## %bb.1:
	movq	_STANDBY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kxcjk1013_set_mode
	testl	%eax, %eax
	js	LBB0_15
## %bb.2:
	movq	(%r14), %rdi
	movq	_KXCJK1013_REG_INT_CTRL1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.3:
	movq	_KXCJK1013_REG_INT_CTRL1_BIT_IEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %eax
	orl	%ebx, %eax
	notl	%edx
	andl	%ebx, %edx
	testl	%r15d, %r15d
	cmovnel	%eax, %edx
	movq	(%r14), %rdi
	movl	(%r12), %esi
	callq	_i2c_smbus_write_byte_data
	movq	(%r14), %rdi
	testl	%eax, %eax
	js	LBB0_12
## %bb.4:
	movq	_KXCJK1013_REG_CTRL1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_13
## %bb.5:
	movq	_KXCJK1013_REG_CTRL1_BIT_DRDY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %eax
	orl	%ebx, %eax
	notl	%edx
	andl	%ebx, %edx
	testl	%r15d, %r15d
	cmovnel	%eax, %edx
	movq	(%r14), %rdi
	movl	(%r12), %esi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_14
## %bb.6:
	movl	-36(%rbp), %esi
	movq	_OPERATION@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_kxcjk1013_set_mode
	testl	%eax, %eax
	js	LBB0_15
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_15:
	movl	%eax, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_16
LBB0_12:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_16
LBB0_13:
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_16
LBB0_14:
	movl	%eax, %ebx
	movq	(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_STANDBY,4,2                    ## @STANDBY
	.comm	_KXCJK1013_REG_INT_CTRL1,4,2    ## @KXCJK1013_REG_INT_CTRL1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading reg_int_ctrl1\n"

	.comm	_KXCJK1013_REG_INT_CTRL1_BIT_IEN,4,2 ## @KXCJK1013_REG_INT_CTRL1_BIT_IEN
L_.str.1:                               ## @.str.1
	.asciz	"Error writing reg_int_ctrl1\n"

	.comm	_KXCJK1013_REG_CTRL1,4,2        ## @KXCJK1013_REG_CTRL1
L_.str.2:                               ## @.str.2
	.asciz	"Error reading reg_ctrl1\n"

	.comm	_KXCJK1013_REG_CTRL1_BIT_DRDY,4,2 ## @KXCJK1013_REG_CTRL1_BIT_DRDY
L_.str.3:                               ## @.str.3
	.asciz	"Error writing reg_ctrl1\n"

	.comm	_OPERATION,4,2                  ## @OPERATION
	.no_dead_strip	_kxcjk1013_setup_new_data_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kxcjk1013_setup_new_data_interrupt
_kxcjk1013_setup_new_data_interrupt:    ; @kxcjk1013_setup_new_data_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x19, x0
	add	x1, sp, #12
	bl	_kxcjk1013_get_mode
	tbnz	w0, #31, LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _STANDBY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STANDBY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kxcjk1013_set_mode
	tbnz	w0, #31, LBB0_9
; %bb.2:
	ldr	x0, [x19]
Lloh3:
	adrp	x22, _KXCJK1013_REG_INT_CTRL1@GOTPAGE
Lloh4:
	ldr	x22, [x22, _KXCJK1013_REG_INT_CTRL1@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_11
; %bb.3:
Lloh5:
	adrp	x8, _KXCJK1013_REG_INT_CTRL1_BIT_IEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KXCJK1013_REG_INT_CTRL1_BIT_IEN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w9, w8, w20
	bic	w8, w20, w8
	cmp	w21, #0
	csel	w2, w8, w9, eq
	ldr	x0, [x19]
	ldr	w1, [x22]
	bl	_i2c_smbus_write_byte_data
	mov	x20, x0
	ldr	x0, [x19]
	tbnz	w20, #31, LBB0_12
; %bb.4:
Lloh8:
	adrp	x22, _KXCJK1013_REG_CTRL1@GOTPAGE
Lloh9:
	ldr	x22, [x22, _KXCJK1013_REG_CTRL1@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_13
; %bb.5:
Lloh10:
	adrp	x8, _KXCJK1013_REG_CTRL1_BIT_DRDY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KXCJK1013_REG_CTRL1_BIT_DRDY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w9, w8, w20
	bic	w8, w20, w8
	cmp	w21, #0
	csel	w2, w8, w9, eq
	ldr	x0, [x19]
	ldr	w1, [x22]
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_14
; %bb.6:
	ldr	w1, [sp, #12]
Lloh13:
	adrp	x8, _OPERATION@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OPERATION@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_kxcjk1013_set_mode
	tbnz	w0, #31, LBB0_9
LBB0_8:
	mov	w20, #0
	b	LBB0_10
LBB0_9:
	mov	x20, x0
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
	ldr	x0, [x19]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_10
LBB0_12:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_10
LBB0_13:
	ldr	x0, [x19]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_10
LBB0_14:
	mov	x20, x0
	ldr	x0, [x19]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_STANDBY,4,2                    ; @STANDBY
	.comm	_KXCJK1013_REG_INT_CTRL1,4,2    ; @KXCJK1013_REG_INT_CTRL1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading reg_int_ctrl1\n"

	.comm	_KXCJK1013_REG_INT_CTRL1_BIT_IEN,4,2 ; @KXCJK1013_REG_INT_CTRL1_BIT_IEN
l_.str.1:                               ; @.str.1
	.asciz	"Error writing reg_int_ctrl1\n"

	.comm	_KXCJK1013_REG_CTRL1,4,2        ; @KXCJK1013_REG_CTRL1
l_.str.2:                               ; @.str.2
	.asciz	"Error reading reg_ctrl1\n"

	.comm	_KXCJK1013_REG_CTRL1_BIT_DRDY,4,2 ; @KXCJK1013_REG_CTRL1_BIT_DRDY
l_.str.3:                               ; @.str.3
	.asciz	"Error writing reg_ctrl1\n"

	.comm	_OPERATION,4,2                  ; @OPERATION
	.no_dead_strip	_kxcjk1013_setup_new_data_interrupt
.subsections_via_symbols
