	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function its_vlpi_map
_its_vlpi_map:                          ## @its_vlpi_map
	.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, %r13
	movq	%rdi, %rbx
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_its_get_event_id
	cmpq	$0, (%r13)
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r12, %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	(%r13), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.8:
	movq	16(%r12), %rax
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_3:
	movl	24(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%r13), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, (%r12)
	movq	%rax, 16(%r12)
LBB0_9:
	movq	%r15, %rdx
	shlq	$4, %rdx
	movups	(%rcx), %xmm0
	movups	%xmm0, (%rax,%rdx)
	movq	%rbx, %rdi
	callq	_irqd_is_forwarded_to_vcpu
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_its_send_vmovi
	jmp	LBB0_12
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_11:
	movl	32(%r12), %edi
	movq	(%r13), %rax
	movq	(%rax), %rsi
	callq	_its_map_vm
	movq	%rbx, %rdi
	callq	_irqd_set_forwarded_to_vcpu
	movq	(%r13), %rax
	movl	8(%rax), %edx
	movq	%rbx, %rdi
	movl	$255, %esi
	callq	_lpi_write_config
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_its_send_discard
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_its_send_vmapti
	incl	12(%r12)
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_its_vlpi_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function its_vlpi_map
_its_vlpi_map:                          ; @its_vlpi_map
	.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	x23, x1
	mov	x22, x0
	bl	_irq_data_get_irq_chip_data
	mov	x20, x0
	mov	x0, x22
	bl	_its_get_event_id
	ldr	x8, [x23]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x21, x0
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x9, [x20]
	cbz	x9, LBB0_5
; %bb.2:
	ldr	x8, [x23]
	ldr	x10, [x8]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.3:
	ldr	x0, [x20, #16]
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_5:
	ldr	w0, [x20, #24]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #16
	bl	_kcalloc
	cbz	x0, LBB0_11
; %bb.6:
	ldr	x8, [x23]
	ldr	x9, [x8]
	str	x9, [x20]
	str	x0, [x20, #16]
LBB0_7:
	ldr	q0, [x8]
	str	q0, [x0, x21, lsl #4]
	mov	x0, x22
	bl	_irqd_is_forwarded_to_vcpu
	cbz	x0, LBB0_10
; %bb.8:
	mov	x0, x20
	mov	x1, x21
	bl	_its_send_vmovi
	mov	w21, #0
	b	LBB0_13
LBB0_9:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	ldr	w0, [x20, #32]
	ldr	x8, [x23]
	ldr	x1, [x8]
	bl	_its_map_vm
	mov	x0, x22
	bl	_irqd_set_forwarded_to_vcpu
	ldr	x8, [x23]
	ldr	w2, [x8, #8]
	mov	x0, x22
	mov	w1, #255
	bl	_lpi_write_config
	mov	x0, x20
	mov	x1, x21
	bl	_its_send_discard
	mov	x0, x20
	mov	x1, x21
	bl	_its_send_vmapti
	mov	w21, #0
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
	b	LBB0_13
LBB0_11:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_13:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_14:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_its_vlpi_map
.subsections_via_symbols
