	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function its_irq_domain_alloc
_its_irq_domain_alloc:                  ## @its_irq_domain_alloc
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %r12d
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	8(%rcx), %rax
	movq	(%rax), %r13
	movq	8(%r13), %r15
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_its_alloc_device_irq
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movl	(%rbx), %ebx
	movq	%r13, %rdi
	callq	*(%r15)
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_iommu_dma_prepare_msi
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.3:
	movl	%r12d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r15,%r12), %rbx
	movq	-48(%rbp), %rdx
	addq	%r12, %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_its_irq_gic_domain_alloc
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdx
	addq	%r12, %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	_its_irq_chip@GOTPCREL(%rip), %rcx
	movq	%r13, %r8
	callq	_irq_domain_set_hwirq_and_chip
	movl	%ebx, %edi
	callq	_irq_to_desc
	movl	%eax, %edi
	callq	_irq_desc_get_irq_data
	movl	%eax, %edi
	callq	_irqd_set_single_target
	movl	-48(%rbp), %edx
	movl	%r12d, %esi
	subl	(%r13), %esi
	addl	%edx, %esi
	addl	%r12d, %edx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %ecx
	callq	_pr_debug
	incq	%r12
	cmpq	%r12, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_4
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_its_irq_chip,4,2               ## @its_irq_chip
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ID:%d pID:%d vID:%d\n"

	.no_dead_strip	_its_irq_domain_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function its_irq_domain_alloc
_its_irq_domain_alloc:                  ; @its_irq_domain_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x3, #8]
	ldr	x20, [x8]
	ldr	x24, [x20, #8]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_its_alloc_device_irq
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	w23, [x23]
	ldr	x8, [x24]
	mov	x0, x20
	blr	x8
	mov	x1, x0
	mov	x0, x23
	bl	_iommu_dma_prepare_msi
	cbnz	w0, LBB0_7
; %bb.2:
	cbz	w21, LBB0_6
; %bb.3:
	mov	x24, #0
	mov	w25, w21
Lloh0:
	adrp	x21, _its_irq_chip@GOTPAGE
Lloh1:
	ldr	x21, [x21, _its_irq_chip@GOTPAGEOFF]
	mov	w26, w22
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x26, x24
	ldr	x8, [sp, #8]
	add	x2, x24, x8
	mov	x0, x19
	mov	x1, x23
	bl	_its_irq_gic_domain_alloc
	cbnz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]
	add	x2, x24, x8
	mov	x0, x19
	mov	x1, x23
	mov	x3, x21
	mov	x4, x20
	bl	_irq_domain_set_hwirq_and_chip
	mov	x0, x23
	bl	_irq_to_desc
	bl	_irq_desc_get_irq_data
	bl	_irqd_set_single_target
	ldr	w8, [sp, #8]
	ldr	w9, [x20]
	sub	w9, w24, w9
	add	w1, w9, w8
	add	w2, w24, w8
	mov	x0, x22
	mov	x3, x23
	bl	_pr_debug
	add	x24, x24, #1
	cmp	x25, x24
	b.ne	LBB0_4
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_its_irq_chip,4,2               ; @its_irq_chip
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ID:%d pID:%d vID:%d\n"

	.no_dead_strip	_its_irq_domain_alloc
.subsections_via_symbols
