	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iproc_msi_enable
_iproc_msi_enable:                      ## @iproc_msi_enable
	.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, %r14
	cmpl	$0, (%rdi)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_IPROC_MSI_EQ_PAGE_UPPER@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_EQ_MEM_REGION_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %r15
	movslq	%ebx, %rbx
	imulq	%rbx, %r15
	addq	32(%r14), %r15
	movq	_IPROC_MSI_EQ_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_lower_32_bits
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_iproc_msi_write_reg
	movl	(%r13), %r12d
	movq	%r15, %rdi
	callq	_upper_32_bits
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_iproc_msi_write_reg
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_2
LBB0_3:
	cmpl	$0, 4(%r14)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	movq	_IPROC_MSI_PAGE_UPPER@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MSI_MEM_REGION_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %r15
	movslq	%ebx, %rbx
	imulq	%rbx, %r15
	addq	24(%r14), %r15
	movq	_IPROC_MSI_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_lower_32_bits
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_iproc_msi_write_reg
	movl	(%r13), %r12d
	movq	%r15, %rdi
	callq	_upper_32_bits
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_iproc_msi_write_reg
	incl	%ebx
	cmpl	4(%r14), %ebx
	jl	LBB0_5
LBB0_6:
	cmpl	$0, 8(%r14)
	jle	LBB0_11
## %bb.7:
	xorl	%ebx, %ebx
	movq	_IPROC_MSI_CTRL@GOTPCREL(%rip), %r13
	movq	_IPROC_MSI_INTS_EN@GOTPCREL(%rip), %r12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	cmpl	8(%r14), %ebx
	jge	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_IPROC_MSI_INT_N_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IPROC_MSI_INTR_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_IPROC_MSI_EQ_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_iproc_msi_write_reg
	cmpq	$0, 16(%r14)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_iproc_msi_read_reg
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_BIT
	orl	%eax, %r15d
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_iproc_msi_write_reg
	jmp	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EQ_MEM_REGION_SIZE,4,2         ## @EQ_MEM_REGION_SIZE
	.comm	_IPROC_MSI_EQ_PAGE,4,2          ## @IPROC_MSI_EQ_PAGE
	.comm	_IPROC_MSI_EQ_PAGE_UPPER,4,2    ## @IPROC_MSI_EQ_PAGE_UPPER
	.comm	_MSI_MEM_REGION_SIZE,4,2        ## @MSI_MEM_REGION_SIZE
	.comm	_IPROC_MSI_PAGE,4,2             ## @IPROC_MSI_PAGE
	.comm	_IPROC_MSI_PAGE_UPPER,4,2       ## @IPROC_MSI_PAGE_UPPER
	.comm	_IPROC_MSI_INTR_EN,4,2          ## @IPROC_MSI_INTR_EN
	.comm	_IPROC_MSI_INT_N_EVENT,4,2      ## @IPROC_MSI_INT_N_EVENT
	.comm	_IPROC_MSI_EQ_EN,4,2            ## @IPROC_MSI_EQ_EN
	.comm	_IPROC_MSI_CTRL,4,2             ## @IPROC_MSI_CTRL
	.comm	_IPROC_MSI_INTS_EN,4,2          ## @IPROC_MSI_INTS_EN
	.no_dead_strip	_iproc_msi_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iproc_msi_enable
_iproc_msi_enable:                      ; @iproc_msi_enable
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #0
Lloh0:
	adrp	x23, _EQ_MEM_REGION_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EQ_MEM_REGION_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x24, _IPROC_MSI_EQ_PAGE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _IPROC_MSI_EQ_PAGE@GOTPAGEOFF]
Lloh4:
	adrp	x25, _IPROC_MSI_EQ_PAGE_UPPER@GOTPAGE
Lloh5:
	ldr	x25, [x25, _IPROC_MSI_EQ_PAGE_UPPER@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldrsw	x9, [x23]
	sxtw	x10, w20
	madd	x21, x9, x10, x8
	ldr	w22, [x24]
	mov	x0, x21
	bl	_lower_32_bits
	mov	x3, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_iproc_msi_write_reg
	ldr	w22, [x25]
	mov	x0, x21
	bl	_upper_32_bits
	mov	x3, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_iproc_msi_write_reg
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_3:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w20, #0
Lloh6:
	adrp	x23, _MSI_MEM_REGION_SIZE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MSI_MEM_REGION_SIZE@GOTPAGEOFF]
Lloh8:
	adrp	x24, _IPROC_MSI_PAGE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _IPROC_MSI_PAGE@GOTPAGEOFF]
Lloh10:
	adrp	x25, _IPROC_MSI_PAGE_UPPER@GOTPAGE
Lloh11:
	ldr	x25, [x25, _IPROC_MSI_PAGE_UPPER@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldrsw	x9, [x23]
	sxtw	x10, w20
	madd	x21, x9, x10, x8
	ldr	w22, [x24]
	mov	x0, x21
	bl	_lower_32_bits
	mov	x3, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_iproc_msi_write_reg
	ldr	w22, [x25]
	mov	x0, x21
	bl	_upper_32_bits
	mov	x3, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_iproc_msi_write_reg
	add	w20, w20, #1
	ldr	w8, [x19, #4]
	cmp	w20, w8
	b.lt	LBB0_5
LBB0_6:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.7:
	mov	w20, #0
Lloh12:
	adrp	x22, _IPROC_MSI_INTR_EN@GOTPAGE
Lloh13:
	ldr	x22, [x22, _IPROC_MSI_INTR_EN@GOTPAGEOFF]
Lloh14:
	adrp	x23, _IPROC_MSI_INT_N_EVENT@GOTPAGE
Lloh15:
	ldr	x23, [x23, _IPROC_MSI_INT_N_EVENT@GOTPAGEOFF]
Lloh16:
	adrp	x24, _IPROC_MSI_EQ_EN@GOTPAGE
Lloh17:
	ldr	x24, [x24, _IPROC_MSI_EQ_EN@GOTPAGEOFF]
Lloh18:
	adrp	x25, _IPROC_MSI_CTRL@GOTPAGE
Lloh19:
	ldr	x25, [x25, _IPROC_MSI_CTRL@GOTPAGEOFF]
Lloh20:
	adrp	x26, _IPROC_MSI_INTS_EN@GOTPAGE
Lloh21:
	ldr	x26, [x26, _IPROC_MSI_INTS_EN@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w20, w20, #1
	ldr	w8, [x19, #8]
	cmp	w20, w8
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w3, w8, w9
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x20
	bl	_iproc_msi_write_reg
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x20
	bl	_iproc_msi_read_reg
	mov	x21, x0
	mov	x0, x20
	bl	_BIT
	orr	w3, w0, w21
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x20
	bl	_iproc_msi_write_reg
	b	LBB0_8
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EQ_MEM_REGION_SIZE,4,2         ; @EQ_MEM_REGION_SIZE
	.comm	_IPROC_MSI_EQ_PAGE,4,2          ; @IPROC_MSI_EQ_PAGE
	.comm	_IPROC_MSI_EQ_PAGE_UPPER,4,2    ; @IPROC_MSI_EQ_PAGE_UPPER
	.comm	_MSI_MEM_REGION_SIZE,4,2        ; @MSI_MEM_REGION_SIZE
	.comm	_IPROC_MSI_PAGE,4,2             ; @IPROC_MSI_PAGE
	.comm	_IPROC_MSI_PAGE_UPPER,4,2       ; @IPROC_MSI_PAGE_UPPER
	.comm	_IPROC_MSI_INTR_EN,4,2          ; @IPROC_MSI_INTR_EN
	.comm	_IPROC_MSI_INT_N_EVENT,4,2      ; @IPROC_MSI_INT_N_EVENT
	.comm	_IPROC_MSI_EQ_EN,4,2            ; @IPROC_MSI_EQ_EN
	.comm	_IPROC_MSI_CTRL,4,2             ; @IPROC_MSI_CTRL
	.comm	_IPROC_MSI_INTS_EN,4,2          ; @IPROC_MSI_INTS_EN
	.no_dead_strip	_iproc_msi_enable
.subsections_via_symbols
