	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iommu_dma_compose_msi_msg      ## -- Begin function iommu_dma_compose_msi_msg
	.p2align	4, 0x90
_iommu_dma_compose_msi_msg:             ## @iommu_dma_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, %r14
	movq	%rdi, %rbx
	callq	_msi_desc_to_dev
	movq	%rax, %rdi
	callq	_iommu_get_domain_for_dev
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_msi_desc_get_iommu_cookie
	testq	%r12, %r12
	je	LBB0_4
## %bb.1:
	cmpl	$0, (%r12)
	je	LBB0_4
## %bb.2:
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	callq	_upper_32_bits
	movl	%eax, 4(%r14)
	movl	(%r12), %edi
	callq	_cookie_msi_granule
	decl	%eax
	andl	%eax, (%r14)
	movl	(%r15), %edi
	callq	_lower_32_bits
	addl	%eax, (%r14)
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iommu_dma_compose_msi_msg      ; -- Begin function iommu_dma_compose_msi_msg
	.p2align	2
_iommu_dma_compose_msi_msg:             ; @iommu_dma_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	_msi_desc_to_dev
	bl	_iommu_get_domain_for_dev
	mov	x21, x0
	mov	x0, x20
	bl	_msi_desc_get_iommu_cookie
	cbz	x21, LBB0_4
; %bb.1:
	ldr	w8, [x21]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x20]
	bl	_upper_32_bits
	str	w0, [x19, #4]
	ldr	w0, [x21]
	bl	_cookie_msi_granule
	sub	w8, w0, #1
	ldr	w9, [x19]
	and	w8, w9, w8
	str	w8, [x19]
	ldr	w0, [x20]
	bl	_lower_32_bits
	ldr	w8, [x19]
	add	w8, w8, w0
	str	w8, [x19]
LBB0_4:
	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
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
