	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function switchtec_init_isr
_switchtec_init_isr:                    ## @switchtec_init_isr
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_nirqs@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	$3, %edx
	jg	LBB0_2
## %bb.1:
	movl	$4, (%rax)
	movl	$4, %edx
LBB0_2:
	movq	_PCI_IRQ_MSIX@GOTPCREL(%rip), %rax
	movq	_PCI_IRQ_MSI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	(%r14), %rdi
	movq	_PCI_IRQ_VIRTUAL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	$1, %esi
	callq	_pci_alloc_irq_vectors
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	24(%r14), %rdi
	callq	_ioread32
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	cmpl	%ebx, %eax
	jge	LBB0_6
## %bb.7:
	movq	(%r14), %rdi
	movl	%eax, %esi
	callq	_pci_irq_vector
	testl	%eax, %eax
	js	LBB0_13
## %bb.8:
	movq	(%r14), %rdi
	movq	_switchtec_event_isr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %r15
	movl	(%r15), %r8d
	movl	%eax, %esi
	xorl	%ecx, %ecx
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	cmpl	$0, 16(%r14)
	movl	$0, %eax
	je	LBB0_13
## %bb.10:
	movq	8(%r14), %rdi
	callq	_ioread32
	testl	%eax, %eax
	js	LBB0_6
## %bb.11:
	cmpl	%ebx, %eax
	jge	LBB0_6
## %bb.12:
	movq	(%r14), %rdi
	movl	%eax, %esi
	callq	_pci_irq_vector
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	movq	(%r14), %rdi
	movq	_switchtec_dma_mrpc_isr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%r15), %r8d
	movl	%eax, %esi
	xorl	%ecx, %ecx
	movq	%r14, %r9
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_request_irq               ## TAILCALL
LBB0_3:
	movl	%ebx, %eax
	jmp	LBB0_13
LBB0_6:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nirqs,4,2                      ## @nirqs
	.comm	_PCI_IRQ_MSIX,4,2               ## @PCI_IRQ_MSIX
	.comm	_PCI_IRQ_MSI,4,2                ## @PCI_IRQ_MSI
	.comm	_PCI_IRQ_VIRTUAL,4,2            ## @PCI_IRQ_VIRTUAL
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_switchtec_event_isr,4,2        ## @switchtec_event_isr
	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
	.comm	_switchtec_dma_mrpc_isr,4,2     ## @switchtec_dma_mrpc_isr
	.no_dead_strip	_switchtec_init_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function switchtec_init_isr
_switchtec_init_isr:                    ; @switchtec_init_isr
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _nirqs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nirqs@GOTPAGEOFF]
	ldr	w2, [x8]
	cmp	w2, #3
	b.gt	LBB0_2
; %bb.1:
	mov	w2, #4
	str	w2, [x8]
LBB0_2:
	ldr	x0, [x19]
Lloh2:
	adrp	x8, _PCI_IRQ_MSIX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCI_IRQ_MSIX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _PCI_IRQ_MSI@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PCI_IRQ_MSI@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _PCI_IRQ_VIRTUAL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PCI_IRQ_VIRTUAL@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w3, w8, w9
	mov	w1, #1
	bl	_pci_alloc_irq_vectors
	mov	x20, x0
	tbnz	w0, #31, LBB0_12
; %bb.3:
	ldr	x0, [x19, #24]
	bl	_ioread32
	tbnz	w0, #31, LBB0_13
; %bb.4:
	mov	x1, x0
	cmp	w0, w20
	b.ge	LBB0_13
; %bb.5:
	ldr	x0, [x19]
	bl	_pci_irq_vector
	mov	x1, x0
	tbnz	w0, #31, LBB0_14
; %bb.6:
	ldr	x0, [x19]
Lloh11:
	adrp	x8, _switchtec_event_isr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _switchtec_event_isr@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x21, _KBUILD_MODNAME@GOTPAGE
Lloh15:
	ldr	x21, [x21, _KBUILD_MODNAME@GOTPAGEOFF]
	ldr	w4, [x21]
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	mov	x1, x0
	cbnz	w0, LBB0_14
; %bb.7:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_15
; %bb.8:
	ldr	x0, [x19, #8]
	bl	_ioread32
	tbnz	w0, #31, LBB0_13
; %bb.9:
	mov	x1, x0
	cmp	w0, w20
	b.ge	LBB0_13
; %bb.10:
	ldr	x0, [x19]
	bl	_pci_irq_vector
	mov	x1, x0
	tbnz	w0, #31, LBB0_14
; %bb.11:
	ldr	x0, [x19]
Lloh16:
	adrp	x8, _switchtec_dma_mrpc_isr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _switchtec_dma_mrpc_isr@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	ldr	w4, [x21]
	mov	w3, #0
	mov	x5, x19
	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	_devm_request_irq
LBB0_12:
	mov	x1, x20
	b	LBB0_14
LBB0_13:
Lloh19:
	adrp	x8, _EFAULT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w1, w8
LBB0_14:
	mov	x0, x1
	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
	ret
LBB0_15:
	mov	w1, #0
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_nirqs,4,2                      ; @nirqs
	.comm	_PCI_IRQ_MSIX,4,2               ; @PCI_IRQ_MSIX
	.comm	_PCI_IRQ_MSI,4,2                ; @PCI_IRQ_MSI
	.comm	_PCI_IRQ_VIRTUAL,4,2            ; @PCI_IRQ_VIRTUAL
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_switchtec_event_isr,4,2        ; @switchtec_event_isr
	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
	.comm	_switchtec_dma_mrpc_isr,4,2     ; @switchtec_dma_mrpc_isr
	.no_dead_strip	_switchtec_init_isr
.subsections_via_symbols
