	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function its_irq_domain_activate
_its_irq_domain_activate:               ## @its_irq_domain_activate
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_its_get_event_id
	movq	%rax, %r15
	movq	_cpu_online_mask@GOTPCREL(%rip), %r12
	movq	8(%r14), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	js	LBB0_1
## %bb.2:
	callq	_cpumask_of_node
	movq	%rax, %rdi
	movq	(%r12), %rsi
	jmp	LBB0_3
LBB0_1:
	movq	(%r12), %rsi
	movq	%rsi, %rdi
LBB0_3:
	callq	_cpumask_first_and
	movq	_nr_cpu_ids@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_7
## %bb.4:
	movq	8(%r14), %rax
	movq	_ITS_FLAGS_WORKAROUND_CAVIUM_23144@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_6
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_6:
	movq	(%r12), %rdi
	callq	_cpumask_first
LBB0_7:
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%r15,4)
	movl	%eax, %edi
	callq	_cpumask_of
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_irq_data_update_effective_affinity
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_its_send_mapti
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_online_mask,8,3            ## @cpu_online_mask
	.comm	_nr_cpu_ids,4,2                 ## @nr_cpu_ids
	.comm	_ITS_FLAGS_WORKAROUND_CAVIUM_23144,4,2 ## @ITS_FLAGS_WORKAROUND_CAVIUM_23144
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_its_irq_domain_activate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function its_irq_domain_activate
_its_irq_domain_activate:               ; @its_irq_domain_activate
	.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, x1
	mov	x0, x1
	bl	_irq_data_get_irq_chip_data
	mov	x20, x0
	mov	x0, x19
	bl	_its_get_event_id
	mov	x21, x0
Lloh0:
	adrp	x22, _cpu_online_mask@GOTPAGE
Lloh1:
	ldr	x22, [x22, _cpu_online_mask@GOTPAGEOFF]
	ldr	x8, [x20, #8]
	ldr	x0, [x8]
	tbnz	x0, #63, LBB0_2
; %bb.1:
	bl	_cpumask_of_node
	ldr	x1, [x22]
	b	LBB0_3
LBB0_2:
	ldr	x1, [x22]
	mov	x0, x1
LBB0_3:
	bl	_cpumask_first_and
Lloh2:
	adrp	x8, _nr_cpu_ids@GOTPAGE
Lloh3:
	ldr	x8, [x8, _nr_cpu_ids@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.lt	LBB0_7
; %bb.4:
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #8]
Lloh5:
	adrp	x9, _ITS_FLAGS_WORKAROUND_CAVIUM_23144@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ITS_FLAGS_WORKAROUND_CAVIUM_23144@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
	ldr	x0, [x22]
	bl	_cpumask_first
LBB0_7:
	ldr	x8, [x20]
	str	w0, [x8, x21, lsl #2]
	bl	_cpumask_of
	mov	x1, x0
	mov	x0, x19
	bl	_irq_data_update_effective_affinity
	ldr	w1, [x19]
	mov	x0, x20
	mov	x2, x21
	bl	_its_send_mapti
	mov	w0, #0
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_online_mask,8,3            ; @cpu_online_mask
	.comm	_nr_cpu_ids,4,2                 ; @nr_cpu_ids
	.comm	_ITS_FLAGS_WORKAROUND_CAVIUM_23144,4,2 ; @ITS_FLAGS_WORKAROUND_CAVIUM_23144
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_its_irq_domain_activate
.subsections_via_symbols
