	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raydium_i2c_write_object
_raydium_i2c_write_object:              ## @raydium_i2c_write_object
	.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
	movl	%ecx, %r15d
	movq	%rdx, %rcx
	movq	%rsi, %rdx
	movq	%rdi, %r14
	movq	_RM_CMD_BOOT_WRT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_raydium_i2c_send
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_6
LBB0_2:
	movq	_RM_CMD_BOOT_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_raydium_i2c_send
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r12d, %ebx
	jmp	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_raydium_i2c_bl_chk_state
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r15d, %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RM_CMD_BOOT_WRT,4,2            ## @RM_CMD_BOOT_WRT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WRT obj command failed: %d\n"

	.comm	_RM_CMD_BOOT_ACK,4,2            ## @RM_CMD_BOOT_ACK
L_.str.1:                               ## @.str.1
	.asciz	"Ack obj command failed: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"BL check state failed: %d\n"

	.no_dead_strip	_raydium_i2c_write_object
.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_object
_raydium_i2c_write_object:              ; @raydium_i2c_write_object
	.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	x21, x3
	mov	x3, x2
	mov	x2, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _RM_CMD_BOOT_WRT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RM_CMD_BOOT_WRT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_raydium_i2c_send
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
Lloh5:
	adrp	x8, _RM_CMD_BOOT_ACK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RM_CMD_BOOT_ACK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	bl	_raydium_i2c_send
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	bl	_raydium_i2c_bl_chk_state
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.5:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_7:
	mov	x0, x20
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RM_CMD_BOOT_WRT,4,2            ; @RM_CMD_BOOT_WRT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WRT obj command failed: %d\n"

	.comm	_RM_CMD_BOOT_ACK,4,2            ; @RM_CMD_BOOT_ACK
l_.str.1:                               ; @.str.1
	.asciz	"Ack obj command failed: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"BL check state failed: %d\n"

	.no_dead_strip	_raydium_i2c_write_object
.subsections_via_symbols
