	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpi_write_config
_lpi_write_config:                      ## @lpi_write_config
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_irqd_is_forwarded_to_vcpu
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_its_get_event_id
	movq	%rax, %r15
	movq	8(%r12), %rax
	movl	(%rax), %edi
	callq	_page_address
	movq	(%r12), %rcx
	movl	(%rcx,%r15,8), %edx
	notl	%ebx
	movl	4(%rcx,%r15,8), %esi
	andl	%ebx, %esi
	movl	%esi, 4(%rcx,%r15,8)
	movq	_LPI_PROP_GROUP1@GOTPCREL(%rip), %rdi
	orl	%r14d, %esi
	orl	(%rdi), %esi
	movl	%esi, 4(%rcx,%r15,8)
	movq	_gic_rdists@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	_gic_rdists@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rcx), %rax
	movl	(%r15), %edx
	notl	%ebx
LBB0_3:
	movslq	%edx, %rdx
	andl	-8192(%rax,%rdx), %ebx
	movl	%ebx, -8192(%rax,%rdx)
	movq	_LPI_PROP_GROUP1@GOTPCREL(%rip), %rsi
	orl	%r14d, %ebx
	orl	(%rsi), %ebx
	movl	%ebx, -8192(%rax,%rdx)
	movq	_RDIST_FLAGS_PROPBASE_NEEDS_FLUSHING@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rcx)
	je	LBB0_5
## %bb.4:
	leaq	(%rax,%rdx), %rdi
	addq	$-8192, %rdi                    ## imm = 0xE000
	movl	$4, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gic_flush_dcache_to_poc        ## TAILCALL
LBB0_5:
	movq	_ishst@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dsb                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LPI_PROP_GROUP1,4,2            ## @LPI_PROP_GROUP1
	.comm	_gic_rdists,8,3                 ## @gic_rdists
	.comm	_RDIST_FLAGS_PROPBASE_NEEDS_FLUSHING,4,2 ## @RDIST_FLAGS_PROPBASE_NEEDS_FLUSHING
	.comm	_ishst,4,2                      ## @ishst
	.no_dead_strip	_lpi_write_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpi_write_config
_lpi_write_config:                      ; @lpi_write_config
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_irqd_is_forwarded_to_vcpu
Lloh0:
	adrp	x23, _LPI_PROP_GROUP1@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LPI_PROP_GROUP1@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_irq_data_get_irq_chip_data
	mov	x22, x0
	mov	x0, x21
	bl	_its_get_event_id
	mov	x21, x0
	ldr	x8, [x22, #8]
	ldr	w0, [x8]
	bl	_page_address
	ldr	x8, [x22]
	add	x8, x8, x21, lsl #3
	mvn	w9, w20
	ldp	w10, w11, [x8]
	bic	w11, w11, w20
	str	w11, [x8, #4]
	ldr	w12, [x23]
	orr	w11, w11, w19
	orr	w11, w11, w12
	str	w11, [x8, #4]
Lloh2:
	adrp	x8, _gic_rdists@GOTPAGE
Lloh3:
	ldr	x8, [x8, _gic_rdists@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _gic_rdists@GOTPAGE
Lloh6:
	ldr	x8, [x8, _gic_rdists@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x0, [x8, #8]
	ldr	w10, [x21]
	mvn	w9, w20
LBB0_3:
	add	x10, x0, w10, sxtw
	sub	x0, x10, #2, lsl #12            ; =8192
	ldr	w10, [x0]
	and	w9, w10, w9
	str	w9, [x0]
	ldr	w10, [x23]
	orr	w9, w9, w19
	orr	w9, w9, w10
	str	w9, [x0]
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _RDIST_FLAGS_PROPBASE_NEEDS_FLUSHING@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RDIST_FLAGS_PROPBASE_NEEDS_FLUSHING@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	w1, #4
	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
	b	_gic_flush_dcache_to_poc
LBB0_5:
Lloh11:
	adrp	x8, _ishst@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ishst@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	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
	b	_dsb
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_LPI_PROP_GROUP1,4,2            ; @LPI_PROP_GROUP1
	.comm	_gic_rdists,8,3                 ; @gic_rdists
	.comm	_RDIST_FLAGS_PROPBASE_NEEDS_FLUSHING,4,2 ; @RDIST_FLAGS_PROPBASE_NEEDS_FLUSHING
	.comm	_ishst,4,2                      ; @ishst
	.no_dead_strip	_lpi_write_config
.subsections_via_symbols
