	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks_pcie_config_msi_irq
_ks_pcie_config_msi_irq:                ## @ks_pcie_config_msi_irq
	.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, %r13
	movq	16(%rdi), %r15
	movq	24(%rdi), %rax
	movq	(%rax), %r14
	movq	_CONFIG_PCI_MSI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_get_child_by_name
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_of_irq_count
	testl	%eax, %eax
	je	LBB0_13
## %bb.5:
	jle	LBB0_12
## %bb.6:
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rax), %eax
	movl	%eax, (%r13)
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_ks_pcie_msi_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movq	%r13, %rdx
	callq	_irq_set_chained_handler_and_data
	incl	%ebx
	cmpl	%ebx, %r12d
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_irq_of_parse_and_map
	testl	%eax, %eax
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %r14d
	cmpl	$0, (%r13)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%r14d, %edi
	callq	_irq_get_irq_data
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_14
LBB0_2:
	cmpq	$0, 8(%r13)
	jne	LBB0_15
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_12:
	movq	%r15, %rdi
	callq	_of_node_put
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_13:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_of_node_put
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_PCI_MSI,4,2             ## @CONFIG_PCI_MSI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"msi-interrupt-controller"

L_.str.1:                               ## @.str.1
	.asciz	"msi-interrupt-controller node is absent\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"No IRQ entries in msi-interrupt-controller\n"

	.comm	_ks_pcie_msi_irq_handler,4,2    ## @ks_pcie_msi_irq_handler
	.no_dead_strip	_ks_pcie_config_msi_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks_pcie_config_msi_irq
_ks_pcie_config_msi_irq:                ; @ks_pcie_config_msi_irq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldp	x20, x8, [x0, #16]
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _CONFIG_PCI_MSI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_PCI_MSI@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_11
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_of_get_child_by_name
	cbz	x0, LBB0_10
; %bb.2:
	mov	x20, x0
	bl	_of_irq_count
	cbz	w0, LBB0_13
; %bb.3:
	mov	x21, x0
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.4:
	mov	w22, #0
Lloh5:
	adrp	x24, _ks_pcie_msi_irq_handler@GOTPAGE
Lloh6:
	ldr	x24, [x24, _ks_pcie_msi_irq_handler@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x0]
	str	w8, [x19]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x24]
	mov	x0, x23
	mov	x2, x19
	bl	_irq_set_chained_handler_and_data
	add	w22, w22, #1
	cmp	w21, w22
	b.eq	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_irq_of_parse_and_map
	cbz	w0, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x23, x0
	ldr	w8, [x19]
	cbnz	w8, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_irq_get_irq_data
	cbnz	x0, LBB0_5
	b	LBB0_14
LBB0_10:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_15
LBB0_11:
	mov	w19, #0
	b	LBB0_16
LBB0_12:
	mov	x0, x20
	bl	_of_node_put
	mov	w19, #0
	b	LBB0_16
LBB0_13:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_dev_err
LBB0_14:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w19, w8
	mov	x0, x20
	bl	_of_node_put
	b	LBB0_16
LBB0_15:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_warn
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_PCI_MSI,4,2             ; @CONFIG_PCI_MSI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"msi-interrupt-controller"

l_.str.1:                               ; @.str.1
	.asciz	"msi-interrupt-controller node is absent\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"No IRQ entries in msi-interrupt-controller\n"

	.comm	_ks_pcie_msi_irq_handler,4,2    ; @ks_pcie_msi_irq_handler
	.no_dead_strip	_ks_pcie_config_msi_irq
.subsections_via_symbols
