	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slimpro_i2c_pcc_tx_prepare
_slimpro_i2c_pcc_tx_prepare:            ## @slimpro_i2c_pcc_tx_prepare
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	8(%rdi), %r12
	movl	(%r12), %r14d
	movq	_PCC_SIGNATURE@GOTPCREL(%rip), %rax
	movl	(%rdi), %edi
	orl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_WRITE_ONCE
	movl	4(%r12), %r14d
	movl	(%r15), %edi
	callq	_SLIMPRO_MSG_TYPE
	movq	_PCC_CMD_GENERATE_DB_INT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %edi
	callq	_cpu_to_le16
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_WRITE_ONCE
	movl	8(%r12), %edi
	callq	_READ_ONCE
	movl	%eax, %edi
	callq	_le16_to_cpu
	movq	_PCC_STS_CMD_COMPLETE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movl	8(%r12), %r14d
	callq	_cpu_to_le16
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_WRITE_ONCE
	movq	_SLIMPRO_IIC_MSG_DWORD_COUNT@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%r12,%rbx,4), %r13d
	movl	(%r15,%rbx,4), %edi
	callq	_cpu_to_le32
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_WRITE_ONCE
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCC_SIGNATURE,4,2              ## @PCC_SIGNATURE
	.comm	_PCC_CMD_GENERATE_DB_INT,4,2    ## @PCC_CMD_GENERATE_DB_INT
	.comm	_PCC_STS_CMD_COMPLETE,4,2       ## @PCC_STS_CMD_COMPLETE
	.comm	_SLIMPRO_IIC_MSG_DWORD_COUNT,4,2 ## @SLIMPRO_IIC_MSG_DWORD_COUNT
	.no_dead_strip	_slimpro_i2c_pcc_tx_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slimpro_i2c_pcc_tx_prepare
_slimpro_i2c_pcc_tx_prepare:            ; @slimpro_i2c_pcc_tx_prepare
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	ldr	x21, [x0, #8]
	ldr	w20, [x21]
Lloh0:
	adrp	x8, _PCC_SIGNATURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCC_SIGNATURE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w0, w9, w8
	bl	_cpu_to_le32
	mov	x1, x0
	mov	x0, x20
	bl	_WRITE_ONCE
	ldr	w20, [x21, #4]
	ldr	w0, [x19]
	bl	_SLIMPRO_MSG_TYPE
Lloh3:
	adrp	x8, _PCC_CMD_GENERATE_DB_INT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCC_CMD_GENERATE_DB_INT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w0, w8, w0
	bl	_cpu_to_le16
	mov	x1, x0
	mov	x0, x20
	bl	_WRITE_ONCE
	ldr	w0, [x21, #8]
	bl	_READ_ONCE
	bl	_le16_to_cpu
Lloh6:
	adrp	x8, _PCC_STS_CMD_COMPLETE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCC_STS_CMD_COMPLETE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	w20, [x21, #8]
	bl	_cpu_to_le16
	mov	x1, x0
	mov	x0, x20
	bl	_WRITE_ONCE
Lloh9:
	adrp	x22, _SLIMPRO_IIC_MSG_DWORD_COUNT@GOTPAGE
Lloh10:
	ldr	x22, [x22, _SLIMPRO_IIC_MSG_DWORD_COUNT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
	add	x21, x21, #12
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x8, x23, #2
	ldr	w20, [x21, x8]
	ldr	w0, [x19, x8]
	bl	_cpu_to_le32
	mov	x1, x0
	mov	x0, x20
	bl	_WRITE_ONCE
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCC_SIGNATURE,4,2              ; @PCC_SIGNATURE
	.comm	_PCC_CMD_GENERATE_DB_INT,4,2    ; @PCC_CMD_GENERATE_DB_INT
	.comm	_PCC_STS_CMD_COMPLETE,4,2       ; @PCC_STS_CMD_COMPLETE
	.comm	_SLIMPRO_IIC_MSG_DWORD_COUNT,4,2 ; @SLIMPRO_IIC_MSG_DWORD_COUNT
	.no_dead_strip	_slimpro_i2c_pcc_tx_prepare
.subsections_via_symbols
