	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function api_cmd_chain_hw_clean
_api_cmd_chain_hw_clean:                ## @api_cmd_chain_hw_clean
	.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	8(%rdi), %r14
	movl	(%rdi), %edi
	callq	_HINIC_CSR_API_CMD_CHAIN_CTRL_ADDR
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_hinic_hwif_read_reg
	movl	%eax, %r13d
	movq	_RESTART_WB_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_HINIC_API_CMD_CHAIN_CTRL_CLEAR
	movl	%eax, %r12d
	movq	_XOR_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_HINIC_API_CMD_CHAIN_CTRL_CLEAR
	andl	%eax, %r12d
	movq	_AEQE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_HINIC_API_CMD_CHAIN_CTRL_CLEAR
	movl	%eax, %ebx
	movq	_XOR_CHK_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_HINIC_API_CMD_CHAIN_CTRL_CLEAR
	andl	%eax, %ebx
	andl	%r12d, %ebx
	movq	_CELL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_HINIC_API_CMD_CHAIN_CTRL_CLEAR
	andl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hinic_hwif_write_reg           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RESTART_WB_STAT,4,2            ## @RESTART_WB_STAT
	.comm	_XOR_ERR,4,2                    ## @XOR_ERR
	.comm	_AEQE_EN,4,2                    ## @AEQE_EN
	.comm	_XOR_CHK_EN,4,2                 ## @XOR_CHK_EN
	.comm	_CELL_SIZE,4,2                  ## @CELL_SIZE
	.no_dead_strip	_api_cmd_chain_hw_clean
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function api_cmd_chain_hw_clean
_api_cmd_chain_hw_clean:                ; @api_cmd_chain_hw_clean
	.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
	ldr	x19, [x0, #8]
	ldr	w0, [x0]
	bl	_HINIC_CSR_API_CMD_CHAIN_CTRL_ADDR
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_hinic_hwif_read_reg
	mov	x21, x0
Lloh0:
	adrp	x8, _RESTART_WB_STAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RESTART_WB_STAT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_HINIC_API_CMD_CHAIN_CTRL_CLEAR
	mov	x22, x0
Lloh3:
	adrp	x8, _XOR_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XOR_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_HINIC_API_CMD_CHAIN_CTRL_CLEAR
	and	w22, w0, w22
Lloh6:
	adrp	x8, _AEQE_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AEQE_EN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_HINIC_API_CMD_CHAIN_CTRL_CLEAR
	and	w22, w22, w0
Lloh9:
	adrp	x8, _XOR_CHK_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XOR_CHK_EN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_HINIC_API_CMD_CHAIN_CTRL_CLEAR
	and	w22, w22, w0
Lloh12:
	adrp	x8, _CELL_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CELL_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_HINIC_API_CMD_CHAIN_CTRL_CLEAR
	and	w2, w22, w0
	mov	x0, x19
	mov	x1, 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
	b	_hinic_hwif_write_reg
	.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	_RESTART_WB_STAT,4,2            ; @RESTART_WB_STAT
	.comm	_XOR_ERR,4,2                    ; @XOR_ERR
	.comm	_AEQE_EN,4,2                    ; @AEQE_EN
	.comm	_XOR_CHK_EN,4,2                 ; @XOR_CHK_EN
	.comm	_CELL_SIZE,4,2                  ; @CELL_SIZE
	.no_dead_strip	_api_cmd_chain_hw_clean
.subsections_via_symbols
