	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kxcjk1013_get_mode
_kxcjk1013_get_mode:                    ## @kxcjk1013_get_mode
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	movq	_KXCJK1013_REG_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_KXCJK1013_REG_CTRL1_BIT_PC1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	jne	LBB0_3
## %bb.4:
	movq	_STANDBY@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_6
LBB0_3:
	movq	_OPERATION@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KXCJK1013_REG_CTRL1,4,2        ## @KXCJK1013_REG_CTRL1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading reg_ctrl1\n"

	.comm	_KXCJK1013_REG_CTRL1_BIT_PC1,4,2 ## @KXCJK1013_REG_CTRL1_BIT_PC1
	.comm	_OPERATION,4,2                  ## @OPERATION
	.comm	_STANDBY,4,2                    ## @STANDBY
	.no_dead_strip	_kxcjk1013_get_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kxcjk1013_get_mode
_kxcjk1013_get_mode:                    ; @kxcjk1013_get_mode
	.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	x20, x1
	mov	x21, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _KXCJK1013_REG_CTRL1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KXCJK1013_REG_CTRL1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	mov	x19, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _KXCJK1013_REG_CTRL1_BIT_PC1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KXCJK1013_REG_CTRL1_BIT_PC1@GOTPAGEOFF]
Lloh5:
	adrp	x9, _STANDBY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _STANDBY@GOTPAGEOFF]
Lloh7:
	adrp	x10, _OPERATION@GOTPAGE
Lloh8:
	ldr	x10, [x10, _OPERATION@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w19
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x20]
	mov	w19, #0
	b	LBB0_3
LBB0_2:
	ldr	x0, [x21]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_3:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_KXCJK1013_REG_CTRL1,4,2        ; @KXCJK1013_REG_CTRL1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading reg_ctrl1\n"

	.comm	_KXCJK1013_REG_CTRL1_BIT_PC1,4,2 ; @KXCJK1013_REG_CTRL1_BIT_PC1
	.comm	_OPERATION,4,2                  ; @OPERATION
	.comm	_STANDBY,4,2                    ; @STANDBY
	.no_dead_strip	_kxcjk1013_get_mode
.subsections_via_symbols
