	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raydium_i2c_write_checksum
_raydium_i2c_write_checksum:            ## @raydium_i2c_write_checksum
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rsi, %rax
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -24(%rbp)
	movups	l___const.raydium_i2c_write_checksum.checksum_cmd+12(%rip), %xmm0
	movups	%xmm0, -52(%rbp)
	movaps	l___const.raydium_i2c_write_checksum.checksum_cmd(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	leaq	-52(%rbp), %rsi
	movq	%rax, %rdi
	callq	_put_unaligned_le16
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_put_unaligned_le16
	movq	_RAYDIUM_ACK_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movl	$28, %edx
	callq	_raydium_i2c_write_object
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.raydium_i2c_write_checksum.checksum_cmd
l___const.raydium_i2c_write_checksum.checksum_cmd:
	.long	0                               ## 0x0
	.long	5                               ## 0x5
	.long	109                             ## 0x6d
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.comm	_RAYDIUM_ACK_NULL,4,2           ## @RAYDIUM_ACK_NULL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to write checksum: %d\n"

	.no_dead_strip	_raydium_i2c_write_checksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raydium_i2c_write_checksum
_raydium_i2c_write_checksum:            ; @raydium_i2c_write_checksum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	str	x9, [sp, #40]
Lloh3:
	adrp	x9, l___const.raydium_i2c_write_checksum.checksum_cmd@PAGE
Lloh4:
	add	x9, x9, l___const.raydium_i2c_write_checksum.checksum_cmd@PAGEOFF
	ldr	q0, [x9]
	str	q0, [sp]
	ldur	q0, [x9, #12]
	stur	q0, [sp, #12]
	mov	x21, sp
	orr	x1, x21, #0xc
	mov	x0, x8
	bl	_put_unaligned_le16
	add	x1, x21, #20
	mov	x0, x20
	bl	_put_unaligned_le16
Lloh5:
	adrp	x8, _RAYDIUM_ACK_NULL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RAYDIUM_ACK_NULL@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #28
	bl	_raydium_i2c_write_object
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_2:
	ldr	x8, [sp, #40]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.raydium_i2c_write_checksum.checksum_cmd
l___const.raydium_i2c_write_checksum.checksum_cmd:
	.long	0                               ; 0x0
	.long	5                               ; 0x5
	.long	109                             ; 0x6d
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.comm	_RAYDIUM_ACK_NULL,4,2           ; @RAYDIUM_ACK_NULL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to write checksum: %d\n"

	.no_dead_strip	_raydium_i2c_write_checksum
.subsections_via_symbols
