	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arch_enable_uv_irq
_arch_enable_uv_irq:                    ## @arch_enable_uv_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	%edx, %edi
	callq	_cpumask_of
	movq	%rax, %r13
	movl	%ebx, %edi
	callq	_irq_to_desc
	movq	%rax, %r14
	movl	$1, %edi
	callq	_BUILD_BUG_ON
	movl	%ebx, %edi
	callq	_irq_cfg
	movq	%rax, %r12
	movl	%ebx, %edi
	movq	%rax, %rsi
	movq	%r13, %rdx
	callq	_assign_irq_vector
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	%r15, %rcx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	_UV_AFFINITY_CPU@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, (%rax)
	jne	LBB0_2
## %bb.3:
	movq	_IRQ_NO_BALANCING@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_IRQ_MOVE_PCNTXT@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	_handle_percpu_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_uv_irq_chip@GOTPCREL(%rip), %rsi
	movl	%ebx, %edi
	callq	_set_irq_chip_and_handler_name
	movq	_apic@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r13, %rdi
	callq	*(%rax)
	movl	%eax, %r14d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_uv_blade_to_pnode
	movl	%r14d, %edx
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_uv_write_global_mmr64
	cmpq	$0, (%r12)
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_send_cleanup_vector
LBB0_6:
	movl	%ebx, %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UV_AFFINITY_CPU,4,2            ## @UV_AFFINITY_CPU
	.comm	_IRQ_NO_BALANCING,4,2           ## @IRQ_NO_BALANCING
	.comm	_IRQ_MOVE_PCNTXT,4,2            ## @IRQ_MOVE_PCNTXT
	.comm	_uv_irq_chip,4,2                ## @uv_irq_chip
	.comm	_handle_percpu_irq,4,2          ## @handle_percpu_irq
	.comm	_apic,8,3                       ## @apic
	.no_dead_strip	_arch_enable_uv_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arch_enable_uv_irq
_arch_enable_uv_irq:                    ; @arch_enable_uv_irq
	.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	x25, x5
	mov	x20, x4
	mov	x21, x3
	mov	x19, x1
	mov	x24, x0
	mov	x0, x2
	bl	_cpumask_of
	mov	x23, x0
	mov	x0, x19
	bl	_irq_to_desc
	mov	x26, x0
	mov	w0, #1
	bl	_BUILD_BUG_ON
	mov	x0, x19
	bl	_irq_cfg
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_assign_irq_vector
	cbnz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _UV_AFFINITY_CPU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UV_AFFINITY_CPU@GOTPAGEOFF]
Lloh2:
	adrp	x9, _IRQ_NO_BALANCING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IRQ_NO_BALANCING@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x10, _IRQ_MOVE_PCNTXT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _IRQ_MOVE_PCNTXT@GOTPAGEOFF]
	cmp	w8, w25
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	ldr	w9, [x26]
	orr	w8, w9, w8
	str	w8, [x26]
Lloh7:
	adrp	x8, _handle_percpu_irq@GOTPAGE
Lloh8:
	ldr	x8, [x8, _handle_percpu_irq@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x1, _uv_irq_chip@GOTPAGE
Lloh11:
	ldr	x1, [x1, _uv_irq_chip@GOTPAGEOFF]
	mov	x0, x19
	mov	x3, x24
	bl	_set_irq_chip_and_handler_name
Lloh12:
	adrp	x8, _apic@GOTPAGE
Lloh13:
	ldr	x8, [x8, _apic@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x23
	blr	x8
	mov	x23, x0
	mov	x0, x21
	bl	_uv_blade_to_pnode
	mov	w2, w23
	mov	x1, x20
	bl	_uv_write_global_mmr64
	ldr	x8, [x22]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x22
	bl	_send_cleanup_vector
LBB0_3:
	mov	x0, x19
LBB0_4:
	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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_UV_AFFINITY_CPU,4,2            ; @UV_AFFINITY_CPU
	.comm	_IRQ_NO_BALANCING,4,2           ; @IRQ_NO_BALANCING
	.comm	_IRQ_MOVE_PCNTXT,4,2            ; @IRQ_MOVE_PCNTXT
	.comm	_uv_irq_chip,4,2                ; @uv_irq_chip
	.comm	_handle_percpu_irq,4,2          ; @handle_percpu_irq
	.comm	_apic,8,3                       ; @apic
	.no_dead_strip	_arch_enable_uv_irq
.subsections_via_symbols
