	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raydium_i2c_calibrate_store
_raydium_i2c_calibrate_store:           ## @raydium_i2c_calibrate_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	callq	_to_i2c_client
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_mutex_lock_interruptible
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_RAYDIUM_WAIT_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	_raydium_i2c_calibrate_store.cal_cmd(%rip), %rsi
	movq	%rbx, %rdi
	movl	$12, %edx
	callq	_raydium_i2c_write_object
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_dev_err
LBB0_3:
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%r12d, %r12d
	cmovnel	%r12d, %r14d
	movl	%r14d, %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @raydium_i2c_calibrate_store.cal_cmd
_raydium_i2c_calibrate_store.cal_cmd:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	158                             ## 0x9e

	.comm	_RAYDIUM_WAIT_READY,4,2         ## @RAYDIUM_WAIT_READY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"calibrate command failed: %d\n"

	.no_dead_strip	_raydium_i2c_calibrate_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raydium_i2c_calibrate_store
_raydium_i2c_calibrate_store:           ; @raydium_i2c_calibrate_store
	.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	x19, x3
	bl	_to_i2c_client
	mov	x21, x0
	bl	_i2c_get_clientdata
	mov	x20, x0
	bl	_mutex_lock_interruptible
	cbnz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _RAYDIUM_WAIT_READY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RAYDIUM_WAIT_READY@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x1, _raydium_i2c_calibrate_store.cal_cmd@PAGE
Lloh4:
	add	x1, x1, _raydium_i2c_calibrate_store.cal_cmd@PAGEOFF
	mov	x0, x21
	mov	w2, #12
	bl	_raydium_i2c_write_object
	mov	x22, x0
	cbz	w0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_dev_err
LBB0_3:
	mov	x0, x20
	bl	_mutex_unlock
	cmp	w22, #0
	csel	w0, w19, w22, eq
LBB0_4:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @raydium_i2c_calibrate_store.cal_cmd
_raydium_i2c_calibrate_store.cal_cmd:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	158                             ; 0x9e

	.comm	_RAYDIUM_WAIT_READY,4,2         ; @RAYDIUM_WAIT_READY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"calibrate command failed: %d\n"

	.no_dead_strip	_raydium_i2c_calibrate_store
.subsections_via_symbols
