	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_cell_ctrl
_prepare_cell_ctrl:                     ## @prepare_cell_ctrl
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_SIZE_8BYTES
	movq	_DATA_SZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_HINIC_API_CMD_CELL_CTRL_SET
	movl	%eax, %r15d
	movq	_RD_DMA_ATTR_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RD_DMA_ATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_API_CMD_CELL_CTRL_SET
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movq	_WR_DMA_ATTR_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WR_DMA_ATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_API_CMD_CELL_CTRL_SET
	orl	%ebx, %eax
	movl	%eax, -28(%rbp)
	leaq	-28(%rbp), %rdi
	callq	_xor_chksum_set
	movq	_XOR_CHKSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_HINIC_API_CMD_CELL_CTRL_SET
	orl	-28(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	%eax, %edi
	callq	_cpu_to_be64
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA_SZ,4,2                    ## @DATA_SZ
	.comm	_RD_DMA_ATTR_DEFAULT,4,2        ## @RD_DMA_ATTR_DEFAULT
	.comm	_RD_DMA_ATTR,4,2                ## @RD_DMA_ATTR
	.comm	_WR_DMA_ATTR_DEFAULT,4,2        ## @WR_DMA_ATTR_DEFAULT
	.comm	_WR_DMA_ATTR,4,2                ## @WR_DMA_ATTR
	.comm	_XOR_CHKSUM,4,2                 ## @XOR_CHKSUM
	.no_dead_strip	_prepare_cell_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_cell_ctrl
_prepare_cell_ctrl:                     ; @prepare_cell_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	mov	x0, x1
	bl	_SIZE_8BYTES
Lloh0:
	adrp	x8, _DATA_SZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DATA_SZ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_HINIC_API_CMD_CELL_CTRL_SET
	mov	x20, x0
Lloh3:
	adrp	x8, _RD_DMA_ATTR_DEFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RD_DMA_ATTR_DEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _RD_DMA_ATTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RD_DMA_ATTR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_HINIC_API_CMD_CELL_CTRL_SET
	orr	w20, w0, w20
Lloh9:
	adrp	x8, _WR_DMA_ATTR_DEFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WR_DMA_ATTR_DEFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _WR_DMA_ATTR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WR_DMA_ATTR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_HINIC_API_CMD_CELL_CTRL_SET
	orr	w8, w20, w0
	str	w8, [sp, #12]
	add	x0, sp, #12
	bl	_xor_chksum_set
Lloh15:
	adrp	x8, _XOR_CHKSUM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _XOR_CHKSUM@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_HINIC_API_CMD_CELL_CTRL_SET
	ldr	w8, [sp, #12]
	orr	w0, w8, w0
	str	w0, [sp, #12]
	bl	_cpu_to_be64
	str	w0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA_SZ,4,2                    ; @DATA_SZ
	.comm	_RD_DMA_ATTR_DEFAULT,4,2        ; @RD_DMA_ATTR_DEFAULT
	.comm	_RD_DMA_ATTR,4,2                ; @RD_DMA_ATTR
	.comm	_WR_DMA_ATTR_DEFAULT,4,2        ; @WR_DMA_ATTR_DEFAULT
	.comm	_WR_DMA_ATTR,4,2                ; @WR_DMA_ATTR
	.comm	_XOR_CHKSUM,4,2                 ; @XOR_CHKSUM
	.no_dead_strip	_prepare_cell_ctrl
.subsections_via_symbols
