	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function its_vlpi_prop_update
_its_vlpi_prop_update:                  ## @its_vlpi_prop_update
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_irq_data_get_irq_chip_data
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_irqd_is_forwarded_to_vcpu
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	(%r14), %rax
	movq	_PROP_UPDATE_AND_INV_VLPI@GOTPCREL(%rip), %rcx
	movl	8(%r14), %edx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	$255, %esi
	callq	_lpi_update_config
	jmp	LBB0_6
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	movl	$255, %esi
	callq	_lpi_write_config
LBB0_6:
	movq	_LPI_PROP_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	andl	8(%r14), %eax
	setne	%sil
	movq	%rbx, %rdi
	callq	_its_vlpi_set_doorbell
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PROP_UPDATE_AND_INV_VLPI,8,3   ## @PROP_UPDATE_AND_INV_VLPI
	.comm	_LPI_PROP_ENABLED,4,2           ## @LPI_PROP_ENABLED
	.no_dead_strip	_its_vlpi_prop_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function its_vlpi_prop_update
_its_vlpi_prop_update:                  ; @its_vlpi_prop_update
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_irq_data_get_irq_chip_data
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_irqd_is_forwarded_to_vcpu
	cbz	w0, LBB0_4
; %bb.2:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _PROP_UPDATE_AND_INV_VLPI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PROP_UPDATE_AND_INV_VLPI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w2, [x20, #8]
	mov	x0, x19
	mov	w1, #255
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	bl	_lpi_update_config
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	bl	_lpi_write_config
LBB0_6:
	ldr	w8, [x20, #8]
Lloh6:
	adrp	x9, _LPI_PROP_ENABLED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LPI_PROP_ENABLED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w1, ne
	mov	x0, x19
	bl	_its_vlpi_set_doorbell
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PROP_UPDATE_AND_INV_VLPI,8,3   ; @PROP_UPDATE_AND_INV_VLPI
	.comm	_LPI_PROP_ENABLED,4,2           ; @LPI_PROP_ENABLED
	.no_dead_strip	_its_vlpi_prop_update
.subsections_via_symbols
