	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_ctrl0
_set_ctrl0:                             ## @set_ctrl0
	.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_3
## %bb.1:
	movl	8(%r12), %edi
	callq	_HINIC_CSR_AEQ_CTRL_0_ADDR
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r12), %edi
	movl	%eax, %esi
	callq	_hinic_hwif_read_reg
	movl	%eax, %ebx
	movq	_INT_IDX@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_HINIC_AEQ_CTRL_0_CLEAR
	movl	%eax, %r13d
	movq	_DMA_ATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_HINIC_AEQ_CTRL_0_CLEAR
	andl	%eax, %r13d
	movq	_PCI_INTF_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_HINIC_AEQ_CTRL_0_CLEAR
	movl	%eax, %r15d
	movq	_INT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_HINIC_AEQ_CTRL_0_CLEAR
	andl	%eax, %r15d
	andl	%r13d, %r15d
	movl	12(%r12), %edi
	movl	(%r14), %esi
	callq	_HINIC_AEQ_CTRL_0_SET
	movl	%eax, %r13d
	movq	_DMA_ATTR_AEQ_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DMA_ATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_AEQ_CTRL_0_SET
	movl	%eax, %ebx
	movl	4(%r12), %edi
	callq	_HINIC_HWIF_PCI_INTF
	movq	_PCI_INTF_IDX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_HINIC_AEQ_CTRL_0_SET
	movl	%eax, %r14d
	movq	_EQ_INT_MODE_ARMED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_INT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_AEQ_CTRL_0_SET
	orl	%r13d, %ebx
	orl	%r14d, %ebx
	jmp	LBB0_2
LBB0_3:
	movq	_HINIC_CEQ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	movl	8(%r12), %edi
	callq	_HINIC_CSR_CEQ_CTRL_0_ADDR
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r12), %edi
	movl	%eax, %esi
	callq	_hinic_hwif_read_reg
	movl	%eax, %ebx
	movq	_INTR_IDX@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_HINIC_CEQ_CTRL_0_CLEAR
	movl	%eax, %r13d
	movq	_DMA_ATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_HINIC_CEQ_CTRL_0_CLEAR
	andl	%eax, %r13d
	movq	_KICK_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_HINIC_CEQ_CTRL_0_CLEAR
	movl	%eax, %r15d
	movq	_PCI_INTF_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_HINIC_CEQ_CTRL_0_CLEAR
	andl	%eax, %r15d
	andl	%r13d, %r15d
	movq	_INTR_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_HINIC_CEQ_CTRL_0_CLEAR
	andl	%eax, %r15d
	movl	12(%r12), %edi
	movl	(%r14), %esi
	callq	_HINIC_CEQ_CTRL_0_SET
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_DMA_ATTR_CEQ_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DMA_ATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_CEQ_CTRL_0_SET
	movl	%eax, %ebx
	movq	_THRESH_CEQ_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_KICK_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_CEQ_CTRL_0_SET
	movl	%eax, %r14d
	movl	4(%r12), %edi
	callq	_HINIC_HWIF_PCI_INTF
	movq	_PCI_INTF_IDX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_HINIC_CEQ_CTRL_0_SET
	movl	%eax, %r13d
	movq	_EQ_INT_MODE_ARMED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_INTR_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_CEQ_CTRL_0_SET
	orl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	%r14d, %ebx
	orl	%r13d, %ebx
LBB0_2:
	orl	%r15d, %ebx
	orl	%eax, %ebx
	movl	4(%r12), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	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	_INT_IDX,4,2                    ## @INT_IDX
	.comm	_DMA_ATTR,4,2                   ## @DMA_ATTR
	.comm	_PCI_INTF_IDX,4,2               ## @PCI_INTF_IDX
	.comm	_INT_MODE,4,2                   ## @INT_MODE
	.comm	_DMA_ATTR_AEQ_DEFAULT,4,2       ## @DMA_ATTR_AEQ_DEFAULT
	.comm	_EQ_INT_MODE_ARMED,4,2          ## @EQ_INT_MODE_ARMED
	.comm	_HINIC_CEQ,4,2                  ## @HINIC_CEQ
	.comm	_INTR_IDX,4,2                   ## @INTR_IDX
	.comm	_KICK_THRESH,4,2                ## @KICK_THRESH
	.comm	_INTR_MODE,4,2                  ## @INTR_MODE
	.comm	_DMA_ATTR_CEQ_DEFAULT,4,2       ## @DMA_ATTR_CEQ_DEFAULT
	.comm	_THRESH_CEQ_DEFAULT,4,2         ## @THRESH_CEQ_DEFAULT
	.no_dead_strip	_set_ctrl0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_ctrl0
_set_ctrl0:                             ; @set_ctrl0
	.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, #8]
	bl	_HINIC_CSR_AEQ_CTRL_0_ADDR
	mov	x20, x0
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_hinic_hwif_read_reg
	mov	x21, x0
Lloh3:
	adrp	x23, _INT_IDX@GOTPAGE
Lloh4:
	ldr	x23, [x23, _INT_IDX@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_HINIC_AEQ_CTRL_0_CLEAR
	mov	x22, x0
Lloh5:
	adrp	x24, _DMA_ATTR@GOTPAGE
Lloh6:
	ldr	x24, [x24, _DMA_ATTR@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x21
	bl	_HINIC_AEQ_CTRL_0_CLEAR
	and	w22, w0, w22
Lloh7:
	adrp	x25, _PCI_INTF_IDX@GOTPAGE
Lloh8:
	ldr	x25, [x25, _PCI_INTF_IDX@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x21
	bl	_HINIC_AEQ_CTRL_0_CLEAR
	and	w22, w22, w0
Lloh9:
	adrp	x26, _INT_MODE@GOTPAGE
Lloh10:
	ldr	x26, [x26, _INT_MODE@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x21
	bl	_HINIC_AEQ_CTRL_0_CLEAR
	and	w27, w22, w0
	ldr	w0, [x19, #12]
	ldr	w1, [x23]
	bl	_HINIC_AEQ_CTRL_0_SET
	mov	x21, x0
Lloh11:
	adrp	x8, _DMA_ATTR_AEQ_DEFAULT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DMA_ATTR_AEQ_DEFAULT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [x24]
	bl	_HINIC_AEQ_CTRL_0_SET
	mov	x22, x0
	ldr	w0, [x19, #4]
	bl	_HINIC_HWIF_PCI_INTF
	ldr	w1, [x25]
	bl	_HINIC_AEQ_CTRL_0_SET
	mov	x23, x0
Lloh14:
	adrp	x8, _EQ_INT_MODE_ARMED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EQ_INT_MODE_ARMED@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w1, [x26]
	bl	_HINIC_AEQ_CTRL_0_SET
	orr	w8, w21, w27
	orr	w8, w8, w22
	orr	w8, w8, w23
	b	LBB0_4
LBB0_2:
Lloh17:
	adrp	x9, _HINIC_CEQ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HINIC_CEQ@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.3:
	ldr	w0, [x19, #8]
	bl	_HINIC_CSR_CEQ_CTRL_0_ADDR
	mov	x20, x0
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_hinic_hwif_read_reg
	mov	x21, x0
Lloh20:
	adrp	x23, _INTR_IDX@GOTPAGE
Lloh21:
	ldr	x23, [x23, _INTR_IDX@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_HINIC_CEQ_CTRL_0_CLEAR
	mov	x22, x0
Lloh22:
	adrp	x24, _DMA_ATTR@GOTPAGE
Lloh23:
	ldr	x24, [x24, _DMA_ATTR@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x21
	bl	_HINIC_CEQ_CTRL_0_CLEAR
	and	w22, w0, w22
Lloh24:
	adrp	x25, _KICK_THRESH@GOTPAGE
Lloh25:
	ldr	x25, [x25, _KICK_THRESH@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x21
	bl	_HINIC_CEQ_CTRL_0_CLEAR
	and	w22, w22, w0
Lloh26:
	adrp	x26, _PCI_INTF_IDX@GOTPAGE
Lloh27:
	ldr	x26, [x26, _PCI_INTF_IDX@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x21
	bl	_HINIC_CEQ_CTRL_0_CLEAR
	and	w22, w22, w0
Lloh28:
	adrp	x27, _INTR_MODE@GOTPAGE
Lloh29:
	ldr	x27, [x27, _INTR_MODE@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x21
	bl	_HINIC_CEQ_CTRL_0_CLEAR
	and	w28, w22, w0
	ldr	w0, [x19, #12]
	ldr	w1, [x23]
	bl	_HINIC_CEQ_CTRL_0_SET
	mov	x21, x0
Lloh30:
	adrp	x8, _DMA_ATTR_CEQ_DEFAULT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DMA_ATTR_CEQ_DEFAULT@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	w1, [x24]
	bl	_HINIC_CEQ_CTRL_0_SET
	mov	x22, x0
Lloh33:
	adrp	x8, _THRESH_CEQ_DEFAULT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _THRESH_CEQ_DEFAULT@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	w1, [x25]
	bl	_HINIC_CEQ_CTRL_0_SET
	mov	x23, x0
	ldr	w0, [x19, #4]
	bl	_HINIC_HWIF_PCI_INTF
	ldr	w1, [x26]
	bl	_HINIC_CEQ_CTRL_0_SET
	mov	x24, x0
Lloh36:
	adrp	x8, _EQ_INT_MODE_ARMED@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EQ_INT_MODE_ARMED@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldr	w1, [x27]
	bl	_HINIC_CEQ_CTRL_0_SET
	orr	w8, w21, w28
	orr	w8, w8, w22
	orr	w8, w8, w23
	orr	w8, w8, w24
LBB0_4:
	orr	w2, w8, w0
	ldr	w0, [x19, #4]
	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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_HINIC_AEQ,4,2                  ; @HINIC_AEQ
	.comm	_INT_IDX,4,2                    ; @INT_IDX
	.comm	_DMA_ATTR,4,2                   ; @DMA_ATTR
	.comm	_PCI_INTF_IDX,4,2               ; @PCI_INTF_IDX
	.comm	_INT_MODE,4,2                   ; @INT_MODE
	.comm	_DMA_ATTR_AEQ_DEFAULT,4,2       ; @DMA_ATTR_AEQ_DEFAULT
	.comm	_EQ_INT_MODE_ARMED,4,2          ; @EQ_INT_MODE_ARMED
	.comm	_HINIC_CEQ,4,2                  ; @HINIC_CEQ
	.comm	_INTR_IDX,4,2                   ; @INTR_IDX
	.comm	_KICK_THRESH,4,2                ; @KICK_THRESH
	.comm	_INTR_MODE,4,2                  ; @INTR_MODE
	.comm	_DMA_ATTR_CEQ_DEFAULT,4,2       ; @DMA_ATTR_CEQ_DEFAULT
	.comm	_THRESH_CEQ_DEFAULT,4,2         ; @THRESH_CEQ_DEFAULT
	.no_dead_strip	_set_ctrl0
.subsections_via_symbols
