	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_ctrl1
_set_ctrl1:                             ## @set_ctrl1
	.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	%rdi, %r12
	movl	(%rdi), %eax
	movq	_HINIC_AEQ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movl	12(%r12), %edi
	callq	_HINIC_CSR_AEQ_CTRL_1_ADDR
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_EQ_SET_HW_PAGE_SIZE_VAL
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_EQ_SET_HW_ELEM_SIZE_VAL
	movl	%eax, %ebx
	movl	8(%r12), %edi
	movl	%r14d, %esi
	callq	_hinic_hwif_read_reg
	movl	%eax, %r15d
	movq	_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_HINIC_AEQ_CTRL_1_CLEAR
	movl	%eax, %r13d
	movq	_ELEM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_HINIC_AEQ_CTRL_1_CLEAR
	andl	%eax, %r13d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_HINIC_AEQ_CTRL_1_CLEAR
	andl	%eax, %r13d
	movl	4(%r12), %edi
	movq	_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_AEQ_CTRL_1_SET
	movl	%eax, %r15d
	movq	_ELEM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_HINIC_AEQ_CTRL_1_SET
	movl	%eax, %ebx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_HINIC_AEQ_CTRL_1_SET
	orl	%r15d, %ebx
	jmp	LBB0_4
LBB0_2:
	movq	_HINIC_CEQ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.3:
	movl	12(%r12), %edi
	callq	_HINIC_CSR_CEQ_CTRL_1_ADDR
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_EQ_SET_HW_PAGE_SIZE_VAL
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r12), %edi
	movl	%r14d, %esi
	callq	_hinic_hwif_read_reg
	movl	%eax, %ebx
	movq	_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_HINIC_CEQ_CTRL_1_CLEAR
	movl	%eax, %r13d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%ebx, %edi
	callq	_HINIC_CEQ_CTRL_1_CLEAR
	andl	%eax, %r13d
	movl	4(%r12), %edi
	movq	_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_CEQ_CTRL_1_SET
	movl	%eax, %ebx
	movl	(%r15), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_HINIC_CEQ_CTRL_1_SET
LBB0_4:
	orl	%eax, %ebx
	orl	%r13d, %ebx
	movl	8(%r12), %edi
	movl	%r14d, %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
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HINIC_AEQ,4,2                  ## @HINIC_AEQ
	.comm	_LEN,4,2                        ## @LEN
	.comm	_ELEM_SIZE,4,2                  ## @ELEM_SIZE
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_HINIC_CEQ,4,2                  ## @HINIC_CEQ
	.no_dead_strip	_set_ctrl1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_ctrl1
_set_ctrl1:                             ; @set_ctrl1
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _HINIC_AEQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HINIC_AEQ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19, #12]
	bl	_HINIC_CSR_AEQ_CTRL_1_ADDR
	mov	x20, x0
	mov	x0, x19
	bl	_EQ_SET_HW_PAGE_SIZE_VAL
	mov	x21, x0
	mov	x0, x19
	bl	_EQ_SET_HW_ELEM_SIZE_VAL
	mov	x22, x0
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_hinic_hwif_read_reg
	mov	x23, x0
Lloh3:
	adrp	x25, _LEN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _LEN@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_HINIC_AEQ_CTRL_1_CLEAR
	mov	x24, x0
Lloh5:
	adrp	x26, _ELEM_SIZE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _ELEM_SIZE@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x23
	bl	_HINIC_AEQ_CTRL_1_CLEAR
	and	w24, w0, w24
Lloh7:
	adrp	x27, _PAGE_SIZE@GOTPAGE
Lloh8:
	ldr	x27, [x27, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x23
	bl	_HINIC_AEQ_CTRL_1_CLEAR
	and	w24, w24, w0
	ldr	w0, [x19, #4]
	ldr	w1, [x25]
	bl	_HINIC_AEQ_CTRL_1_SET
	mov	x23, x0
	ldr	w1, [x26]
	mov	x0, x22
	bl	_HINIC_AEQ_CTRL_1_SET
	mov	x22, x0
	ldr	w1, [x27]
	mov	x0, x21
	bl	_HINIC_AEQ_CTRL_1_SET
	orr	w8, w23, w24
	orr	w8, w8, w22
	b	LBB0_4
LBB0_2:
Lloh9:
	adrp	x9, _HINIC_CEQ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HINIC_CEQ@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.3:
	ldr	w0, [x19, #12]
	bl	_HINIC_CSR_CEQ_CTRL_1_ADDR
	mov	x20, x0
	mov	x0, x19
	bl	_EQ_SET_HW_PAGE_SIZE_VAL
	mov	x21, x0
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_hinic_hwif_read_reg
	mov	x22, x0
Lloh12:
	adrp	x24, _LEN@GOTPAGE
Lloh13:
	ldr	x24, [x24, _LEN@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_HINIC_CEQ_CTRL_1_CLEAR
	mov	x23, x0
Lloh14:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh15:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x22
	bl	_HINIC_CEQ_CTRL_1_CLEAR
	and	w23, w0, w23
	ldr	w0, [x19, #4]
	ldr	w1, [x24]
	bl	_HINIC_CEQ_CTRL_1_SET
	mov	x22, x0
	ldr	w1, [x25]
	mov	x0, x21
	bl	_HINIC_CEQ_CTRL_1_SET
	orr	w8, w22, w23
LBB0_4:
	orr	w2, w8, w0
	ldr	w0, [x19, #8]
	mov	x1, 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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_hinic_hwif_write_reg
LBB0_5:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HINIC_AEQ,4,2                  ; @HINIC_AEQ
	.comm	_LEN,4,2                        ; @LEN
	.comm	_ELEM_SIZE,4,2                  ; @ELEM_SIZE
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_HINIC_CEQ,4,2                  ; @HINIC_CEQ
	.no_dead_strip	_set_ctrl1
.subsections_via_symbols
