	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_VISWS_APIC_irqs           ## -- Begin function init_VISWS_APIC_irqs
	.p2align	4, 0x90
_init_VISWS_APIC_irqs:                  ## @init_VISWS_APIC_irqs
	.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	_CO_IRQ_APIC0@GOTPCREL(%rip), %r15
	movq	_CO_APIC_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	(%r15), %eax
	js	LBB0_10
## %bb.1:
	xorl	%edi, %edi
	callq	_irq_to_desc
	movq	_IRQ_DISABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	$0, 16(%rax)
	movl	$1, (%rax)
	movq	_cobalt_irq_type@GOTPCREL(%rip), %r12
	movq	%r12, 8(%rax)
	movq	_CO_APIC_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	(%r15), %eax
	jle	LBB0_10
## %bb.2:
	movl	$1, %ebx
	movq	_CO_IRQ_IDE0@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_irq_to_desc
	movq	%rax, %r14
	movq	_IRQ_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	$0, 16(%r14)
	movl	$1, (%r14)
	movq	%r12, %rcx
	cmpl	(%r13), %ebx
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rcx
	movq	_CO_IRQ_IDE1@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_piix4_master_irq_type@GOTPCREL(%rip), %rcx
	movq	_CO_IRQ_8259@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_piix4_virtual_irq_type@GOTPCREL(%rip), %rcx
	cmpl	(%r15), %ebx
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_IS_CO_APIC
	movq	%r12, %rcx
	testq	%rax, %rax
	je	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, 8(%r14)
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rbx), %eax
	movq	_CO_APIC_LAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	(%r15), %ecx
	cmpl	%ecx, %ebx
	movl	%eax, %ebx
	jl	LBB0_3
LBB0_10:
	movq	_CO_IRQ_8259@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_master_action@GOTPCREL(%rip), %rsi
	callq	_setup_irq
	movq	_cascade_action@GOTPCREL(%rip), %rsi
	movl	$2, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_setup_irq                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CO_IRQ_APIC0,4,2               ## @CO_IRQ_APIC0
	.comm	_CO_APIC_LAST,4,2               ## @CO_APIC_LAST
	.comm	_IRQ_DISABLED,4,2               ## @IRQ_DISABLED
	.comm	_cobalt_irq_type,4,2            ## @cobalt_irq_type
	.comm	_CO_IRQ_IDE0,4,2                ## @CO_IRQ_IDE0
	.comm	_CO_IRQ_IDE1,4,2                ## @CO_IRQ_IDE1
	.comm	_CO_IRQ_8259,4,2                ## @CO_IRQ_8259
	.comm	_piix4_master_irq_type,4,2      ## @piix4_master_irq_type
	.comm	_piix4_virtual_irq_type,4,2     ## @piix4_virtual_irq_type
	.comm	_master_action,4,2              ## @master_action
	.comm	_cascade_action,4,2             ## @cascade_action
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_VISWS_APIC_irqs           ; -- Begin function init_VISWS_APIC_irqs
	.p2align	2
_init_VISWS_APIC_irqs:                  ; @init_VISWS_APIC_irqs
	.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
Lloh0:
	adrp	x21, _CO_IRQ_APIC0@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CO_IRQ_APIC0@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _CO_APIC_LAST@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CO_APIC_LAST@GOTPAGEOFF]
	ldr	w9, [x22]
	cmn	w9, w8
	b.mi	LBB0_9
; %bb.1:
	mov	w0, #0
	bl	_irq_to_desc
Lloh4:
	adrp	x24, _IRQ_DISABLED@GOTPAGE
Lloh5:
	ldr	x24, [x24, _IRQ_DISABLED@GOTPAGEOFF]
	ldr	w8, [x24]
	str	w8, [x0, #24]
	mov	w25, #1
	str	w25, [x0]
Lloh6:
	adrp	x8, _cobalt_irq_type@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cobalt_irq_type@GOTPAGEOFF]
	stp	x8, xzr, [x0, #8]
	ldr	w8, [x21]
	ldr	w9, [x22]
	add	w8, w9, w8
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
Lloh8:
	adrp	x26, _CO_IRQ_IDE0@GOTPAGE
Lloh9:
	ldr	x26, [x26, _CO_IRQ_IDE0@GOTPAGEOFF]
Lloh10:
	adrp	x27, _CO_IRQ_IDE1@GOTPAGE
Lloh11:
	ldr	x27, [x27, _CO_IRQ_IDE1@GOTPAGEOFF]
Lloh12:
	adrp	x28, _cobalt_irq_type@GOTPAGE
Lloh13:
	ldr	x28, [x28, _cobalt_irq_type@GOTPAGEOFF]
Lloh14:
	adrp	x23, _piix4_master_irq_type@GOTPAGE
Lloh15:
	ldr	x23, [x23, _piix4_master_irq_type@GOTPAGEOFF]
	mov	w19, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_irq_to_desc
	mov	x20, x0
	ldr	w8, [x24]
	str	w8, [x0, #24]
	str	xzr, [x0, #16]
	str	w25, [x0]
	ldr	w8, [x26]
	ldr	w9, [x27]
	cmp	w19, w8
	ccmp	w19, w9, #4, ne
	mov	x8, x28
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh16:
	adrp	x8, _CO_IRQ_8259@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CO_IRQ_8259@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x8]
	mov	x8, x23
	cmp	w19, w9
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x21]
Lloh19:
	adrp	x8, _piix4_virtual_irq_type@GOTPAGE
Lloh20:
	ldr	x8, [x8, _piix4_virtual_irq_type@GOTPAGEOFF]
	cmp	w19, w9
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_IS_CO_APIC
	mov	x8, x28
	cbz	x0, LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x8, [x20, #8]
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x22]
	add	w8, w9, w8
	cmp	w19, w8
	add	w19, w19, #1
	b.lt	LBB0_3
LBB0_9:
Lloh21:
	adrp	x8, _CO_IRQ_8259@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CO_IRQ_8259@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, _master_action@GOTPAGE
Lloh25:
	ldr	x1, [x1, _master_action@GOTPAGEOFF]
	bl	_setup_irq
Lloh26:
	adrp	x1, _cascade_action@GOTPAGE
Lloh27:
	ldr	x1, [x1, _cascade_action@GOTPAGEOFF]
	mov	w0, #2
	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	_setup_irq
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_CO_IRQ_APIC0,4,2               ; @CO_IRQ_APIC0
	.comm	_CO_APIC_LAST,4,2               ; @CO_APIC_LAST
	.comm	_IRQ_DISABLED,4,2               ; @IRQ_DISABLED
	.comm	_cobalt_irq_type,4,2            ; @cobalt_irq_type
	.comm	_CO_IRQ_IDE0,4,2                ; @CO_IRQ_IDE0
	.comm	_CO_IRQ_IDE1,4,2                ; @CO_IRQ_IDE1
	.comm	_CO_IRQ_8259,4,2                ; @CO_IRQ_8259
	.comm	_piix4_master_irq_type,4,2      ; @piix4_master_irq_type
	.comm	_piix4_virtual_irq_type,4,2     ; @piix4_virtual_irq_type
	.comm	_master_action,4,2              ; @master_action
	.comm	_cascade_action,4,2             ; @cascade_action
.subsections_via_symbols
