	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function its_set_affinity
_its_set_affinity:                      ## @its_set_affinity
	.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	%rsi, %r12
	movq	%rdi, %rbx
	movq	_cpu_online_mask@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_its_get_event_id
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_irqd_is_forwarded_to_vcpu
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	8(%r14), %rax
	movq	_ITS_FLAGS_WORKAROUND_CAVIUM_23144@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.3:
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	js	LBB0_5
## %bb.4:
	callq	_cpumask_of_node
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_cpumask_intersects
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_cpumask_any_and
	movl	%eax, %r12d
	movq	_nr_cpu_ids@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jae	LBB0_1
## %bb.6:
	movq	(%r14), %rax
	cmpl	(%rax,%r15,4), %r12d
	je	LBB0_8
## %bb.7:
	movq	8(%r14), %rax
	movl	%r12d, %esi
	shlq	$2, %rsi
	addq	16(%rax), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_its_send_movi
	movq	(%r14), %rax
	movl	%r12d, (%rax,%r15,4)
	movl	%r12d, %edi
	callq	_cpumask_of
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_irq_data_update_effective_affinity
LBB0_8:
	movq	_IRQ_SET_MASK_OK_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_online_mask,8,3            ## @cpu_online_mask
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ITS_FLAGS_WORKAROUND_CAVIUM_23144,4,2 ## @ITS_FLAGS_WORKAROUND_CAVIUM_23144
	.comm	_nr_cpu_ids,4,2                 ## @nr_cpu_ids
	.comm	_IRQ_SET_MASK_OK_DONE,4,2       ## @IRQ_SET_MASK_OK_DONE
	.no_dead_strip	_its_set_affinity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function its_set_affinity
_its_set_affinity:                      ; @its_set_affinity
	.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	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _cpu_online_mask@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpu_online_mask@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	bl	_irq_data_get_irq_chip_data
	mov	x20, x0
	mov	x0, x19
	bl	_its_get_event_id
	mov	x21, x0
	mov	x0, x19
	bl	_irqd_is_forwarded_to_vcpu
	cbz	x0, LBB0_3
LBB0_1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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
LBB0_3:
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
Lloh6:
	adrp	x10, _ITS_FLAGS_WORKAROUND_CAVIUM_23144@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ITS_FLAGS_WORKAROUND_CAVIUM_23144@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.4:
	ldr	x0, [x8, #8]
	tbnz	x0, #63, LBB0_6
; %bb.5:
	bl	_cpumask_of_node
	mov	x23, x0
	mov	x0, x22
	mov	x1, x23
	bl	_cpumask_intersects
	cbz	w0, LBB0_1
LBB0_6:
	mov	x0, x22
	mov	x1, x23
	bl	_cpumask_any_and
Lloh9:
	adrp	x8, _nr_cpu_ids@GOTPAGE
Lloh10:
	ldr	x8, [x8, _nr_cpu_ids@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.hs	LBB0_1
; %bb.7:
	mov	x22, x0
	ldr	x8, [x20]
	ldr	w8, [x8, x21, lsl #2]
	cmp	w0, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #16]
	add	x1, x8, w22, uxtw #2
	mov	x0, x20
	mov	x2, x21
	bl	_its_send_movi
	ldr	x8, [x20]
	str	w22, [x8, x21, lsl #2]
	mov	x0, x22
	bl	_cpumask_of
	mov	x1, x0
	mov	x0, x19
	bl	_irq_data_update_effective_affinity
LBB0_9:
Lloh12:
	adrp	x8, _IRQ_SET_MASK_OK_DONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_SET_MASK_OK_DONE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_online_mask,8,3            ; @cpu_online_mask
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ITS_FLAGS_WORKAROUND_CAVIUM_23144,4,2 ; @ITS_FLAGS_WORKAROUND_CAVIUM_23144
	.comm	_nr_cpu_ids,4,2                 ; @nr_cpu_ids
	.comm	_IRQ_SET_MASK_OK_DONE,4,2       ; @IRQ_SET_MASK_OK_DONE
	.no_dead_strip	_its_set_affinity
.subsections_via_symbols
