	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gicv2m_compose_msi_msg
_gicv2m_compose_msi_msg:                ## @gicv2m_compose_msi_msg
	.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
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %r15
	movq	(%r14), %rsi
	movq	%rax, %rdi
	callq	_gicv2m_get_msi_addr
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_upper_32_bits
	movl	%eax, 12(%r12)
	movl	%ebx, %edi
	callq	_lower_32_bits
	movl	%eax, 8(%r12)
	movl	(%r15), %ecx
	movq	_GICV2M_GRAVITON_ADDRESS_ONLY@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movq	(%r14), %rax
LBB0_3:
	movq	%rax, (%r12)
	movq	_GICV2M_NEEDS_SPI_OFFSET@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_5
## %bb.4:
	subq	8(%r15), %rax
	movq	%rax, (%r12)
LBB0_5:
	movq	%r14, %rdi
	callq	_irq_data_get_msi_desc
	movl	%eax, %edi
	movq	%r12, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iommu_dma_compose_msi_msg      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GICV2M_GRAVITON_ADDRESS_ONLY,4,2 ## @GICV2M_GRAVITON_ADDRESS_ONLY
	.comm	_GICV2M_NEEDS_SPI_OFFSET,4,2    ## @GICV2M_NEEDS_SPI_OFFSET
	.no_dead_strip	_gicv2m_compose_msi_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gicv2m_compose_msi_msg
_gicv2m_compose_msi_msg:                ; @gicv2m_compose_msi_msg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_irq_data_get_irq_chip_data
	mov	x21, x0
	ldr	x1, [x20]
	bl	_gicv2m_get_msi_addr
	mov	x22, x0
	bl	_upper_32_bits
	str	w0, [x19, #12]
	mov	x0, x22
	bl	_lower_32_bits
	str	w0, [x19, #8]
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _GICV2M_GRAVITON_ADDRESS_ONLY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GICV2M_GRAVITON_ADDRESS_ONLY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x9, #0
	b	LBB0_3
LBB0_2:
	ldr	x9, [x20]
LBB0_3:
	str	x9, [x19]
Lloh3:
	adrp	x10, _GICV2M_NEEDS_SPI_OFFSET@GOTPAGE
Lloh4:
	ldr	x10, [x10, _GICV2M_NEEDS_SPI_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x21, #8]
	sub	x8, x9, x8
	str	x8, [x19]
LBB0_5:
	mov	x0, x20
	bl	_irq_data_get_msi_desc
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_iommu_dma_compose_msi_msg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GICV2M_GRAVITON_ADDRESS_ONLY,4,2 ; @GICV2M_GRAVITON_ADDRESS_ONLY
	.comm	_GICV2M_NEEDS_SPI_OFFSET,4,2    ; @GICV2M_NEEDS_SPI_OFFSET
	.no_dead_strip	_gicv2m_compose_msi_msg
.subsections_via_symbols
