	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function inv_x_store
_inv_x_store:                           ## @inv_x_store
	.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
	movq	%rcx, %r14
	movq	%rdx, %rbx
	callq	_to_i2c_client
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r12
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_kstrtouint
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	(%r12), %rdi
	callq	_mutex_lock_interruptible
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	cmpl	$0, -36(%rbp)
	movq	_INV_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	je	LBB0_4
## %bb.3:
	orl	8(%r12), %edx
	jmp	LBB0_5
LBB0_4:
	notl	%edx
	andl	8(%r12), %edx
LBB0_5:
	movl	%edx, 8(%r12)
	cmpq	$0, 16(%r12)
	je	LBB0_6
## %bb.7:
	movl	12(%r12), %edi
	movq	_COMMON_SETUP2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %r15d
	movq	(%r12), %rdi
	callq	_mutex_unlock
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.8:
	movl	%r15d, %r14d
	jmp	LBB0_9
LBB0_6:
	movq	(%r12), %rdi
	callq	_mutex_unlock
LBB0_9:
	movl	%r14d, %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INV_X,4,2                      ## @INV_X
	.comm	_COMMON_SETUP2,4,2              ## @COMMON_SETUP2
	.no_dead_strip	_inv_x_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function inv_x_store
_inv_x_store:                           ; @inv_x_store
	.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	x19, x3
	mov	x21, x2
	bl	_to_i2c_client
	bl	_i2c_get_clientdata
	mov	x20, x0
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #0
	bl	_kstrtouint
	cbnz	w0, LBB0_10
; %bb.1:
	ldr	x0, [x20]
	bl	_mutex_lock_interruptible
	cbnz	w0, LBB0_10
; %bb.2:
	ldr	w9, [sp, #12]
Lloh0:
	adrp	x8, _INV_X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INV_X@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w9, LBB0_4
; %bb.3:
	ldr	w9, [x20, #8]
	orr	w2, w9, w8
	b	LBB0_5
LBB0_4:
	ldr	w9, [x20, #8]
	bic	w2, w9, w8
LBB0_5:
	str	w2, [x20, #8]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	w0, [x20, #12]
Lloh3:
	adrp	x8, _COMMON_SETUP2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COMMON_SETUP2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_i2c_smbus_write_byte_data
	mov	x21, x0
	ldr	x0, [x20]
	bl	_mutex_unlock
	cbz	w21, LBB0_9
; %bb.7:
	mov	w19, w21
	b	LBB0_9
LBB0_8:
	ldr	x0, [x20]
	bl	_mutex_unlock
LBB0_9:
	mov	x0, x19
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INV_X,4,2                      ; @INV_X
	.comm	_COMMON_SETUP2,4,2              ; @COMMON_SETUP2
	.no_dead_strip	_inv_x_store
.subsections_via_symbols
