	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_ir_set_vcpu_affinity
_intel_ir_set_vcpu_affinity:            ## @intel_ir_set_vcpu_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	leaq	8(%r15), %rsi
	movq	%r14, %rdi
	callq	_dmar_copy_shared_irte
	movl	$1, -48(%rbp)
	movq	$0, -32(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -36(%rbp)
	movl	(%rbx), %edx
	movq	_PDA_LOW_BIT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movl	%eax, %ecx
	negb	%cl
	sarl	%cl, %edx
	movq	$-1, %rsi
	movl	%eax, %ecx
	shlq	%cl, %rsi
	notl	%esi
	andl	%edx, %esi
	movl	%esi, -44(%rbp)
	movq	%r15, %rdi
	movq	%r14, %rsi
	jmp	LBB0_3
LBB0_1:
	leaq	8(%r15), %rsi
	movq	%r15, %rdi
LBB0_3:
	callq	_modify_irte
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PDA_LOW_BIT,4,2                ## @PDA_LOW_BIT
	.comm	_PDA_HIGH_BIT,8,3               ## @PDA_HIGH_BIT
	.no_dead_strip	_intel_ir_set_vcpu_affinity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_ir_set_vcpu_affinity
_intel_ir_set_vcpu_affinity:            ; @intel_ir_set_vcpu_affinity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	ldr	x19, [x0]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x20, x1
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	add	x1, x19, #8
	add	x0, sp, #8
	bl	_dmar_copy_shared_irte
	mov	w8, #1
	str	xzr, [sp, #24]
	ldp	w10, w9, [x20]
	str	w9, [sp, #20]
Lloh0:
	adrp	x9, _PDA_LOW_BIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PDA_LOW_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	neg	w11, w9
	asr	w10, w10, w11
	mov	x11, #-1
	lsl	x9, x11, x9
	bic	w9, w10, w9
	stp	w8, w9, [sp, #8]
	add	x1, sp, #8
	b	LBB0_3
LBB0_2:
	add	x1, x19, #8
LBB0_3:
	mov	x0, x19
	bl	_modify_irte
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PDA_LOW_BIT,4,2                ; @PDA_LOW_BIT
	.comm	_PDA_HIGH_BIT,8,3               ; @PDA_HIGH_BIT
	.no_dead_strip	_intel_ir_set_vcpu_affinity
.subsections_via_symbols
