	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iommu_init_domains
_iommu_init_domains:                    ## @iommu_init_domains
	.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	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	_cap_ndoms
	movl	%eax, %r14d
	movl	16(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	callq	_pr_debug
	movl	%r14d, %edi
	callq	_BITS_TO_LONGS
	movl	%eax, %r15d
	leaq	20(%rbx), %rdi
	callq	_spin_lock_init
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	%r15d, %edi
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movl	%r14d, %edi
	movl	$256, %esi                      ## imm = 0x100
	callq	_ALIGN
	sarl	$8, %eax
	movslq	%eax, %rdi
	shlq	$3, %rdi
	movl	(%r12), %esi
	callq	_kzalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r12), %esi
	movl	$2048, %edi                     ## imm = 0x800
	callq	_kzalloc
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	8(%rbx), %rax
LBB0_5:
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.8:
	movq	(%rbx), %rsi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_set_bit
	movq	%rbx, %rdi
	callq	_sm_supported
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_FLPT_DEFAULT_DID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	callq	_set_bit
	jmp	LBB0_10
LBB0_1:
	movl	16(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_2
LBB0_7:
	movl	16(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_err
	movq	(%rbx), %rdi
	callq	_kfree
	movq	8(%rbx), %rdi
	callq	_kfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Number of Domains supported <%d>\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"%s: Allocating domain id array failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"%s: Allocating domain array failed\n"

	.comm	_FLPT_DEFAULT_DID,4,2           ## @FLPT_DEFAULT_DID
	.no_dead_strip	_iommu_init_domains
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iommu_init_domains
_iommu_init_domains:                    ; @iommu_init_domains
	.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, x0
	ldr	w0, [x0, #24]
	bl	_cap_ndoms
	mov	x20, x0
	ldr	w1, [x19, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_pr_debug
	mov	x0, x20
	bl	_BITS_TO_LONGS
	mov	x21, x0
	add	x0, x19, #20
	bl	_spin_lock_init
Lloh2:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x21
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x0, x20
	mov	w1, #256
	bl	_ALIGN
	asr	w8, w0, #8
	sbfiz	x0, x8, #3, #32
	ldr	w1, [x22]
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w1, [x22]
	mov	w0, #2048
	bl	_kzalloc
	ldr	x8, [x19, #8]
	str	x0, [x8]
	ldr	x0, [x19, #8]
LBB0_3:
	cbz	x0, LBB0_8
; %bb.4:
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	x1, [x19]
	mov	w0, #0
	bl	_set_bit
	mov	x0, x19
	bl	_sm_supported
	cbz	x0, LBB0_10
; %bb.6:
Lloh4:
	adrp	x8, _FLPT_DEFAULT_DID@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FLPT_DEFAULT_DID@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	x1, [x19]
	bl	_set_bit
	mov	w0, #0
	b	LBB0_10
LBB0_7:
	ldr	w1, [x19, #16]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_9
LBB0_8:
	ldr	w1, [x19, #16]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	ldr	x0, [x19]
	bl	_kfree
	ldr	x0, [x19, #8]
	bl	_kfree
	stp	xzr, xzr, [x19]
LBB0_9:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Number of Domains supported <%d>\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"%s: Allocating domain id array failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"%s: Allocating domain array failed\n"

	.comm	_FLPT_DEFAULT_DID,4,2           ; @FLPT_DEFAULT_DID
	.no_dead_strip	_iommu_init_domains
.subsections_via_symbols
