	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iommu_group_alloc              ## -- Begin function iommu_group_alloc
	.p2align	4, 0x90
_iommu_group_alloc:                     ## @iommu_group_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_iommu_group_kset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	leaq	20(%r15), %rdi
	callq	_mutex_init
	leaq	16(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	12(%r15), %rdi
	callq	_BLOCKING_INIT_NOTIFIER_HEAD
	movl	(%rbx), %ecx
	movq	_iommu_group_ida@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ida_simple_get
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r15, %r14
	addq	$4, %r14
	movl	%ebx, (%r15)
	movq	_iommu_group_ktype@GOTPCREL(%rip), %rsi
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	%ebx, %r8d
	callq	_kobject_init_and_add
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movl	(%r15), %esi
	movq	_iommu_group_ida@GOTPCREL(%rip), %rdi
	callq	_ida_simple_remove
LBB0_3:
	movq	%r15, %rdi
	callq	_kfree
	movl	%ebx, %edi
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_kobject_create_and_add
	movl	%eax, %ebx
	movl	%eax, 8(%r15)
	movq	%r14, %rdi
	callq	_kobject_put
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.7:
	movq	_iommu_group_attr_reserved_regions@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_iommu_group_create_file
	testl	%eax, %eax
	jne	LBB0_8
## %bb.10:
	movq	_iommu_group_attr_type@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_iommu_group_create_file
	testl	%eax, %eax
	je	LBB0_11
LBB0_8:
	movl	%eax, %edi
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_11:
	movl	(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_debug
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_iommu_group_kset,4,2           ## @iommu_group_kset
	.comm	_iommu_group_ida,4,2            ## @iommu_group_ida
	.comm	_iommu_group_ktype,4,2          ## @iommu_group_ktype
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

L_.str.1:                               ## @.str.1
	.asciz	"devices"

	.comm	_iommu_group_attr_reserved_regions,4,2 ## @iommu_group_attr_reserved_regions
	.comm	_iommu_group_attr_type,4,2      ## @iommu_group_attr_type
L_.str.2:                               ## @.str.2
	.asciz	"Allocated group %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iommu_group_alloc              ; -- Begin function iommu_group_alloc
	.p2align	2
_iommu_group_alloc:                     ; @iommu_group_alloc
	.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
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _iommu_group_kset@GOTPAGE
Lloh3:
	ldr	x8, [x8, _iommu_group_kset@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	x20, x0
	str	w8, [x20, #4]!
	add	x0, x20, #16
	bl	_mutex_init
	add	x0, x20, #12
	bl	_INIT_LIST_HEAD
	add	x0, x20, #8
	bl	_BLOCKING_INIT_NOTIFIER_HEAD
	ldr	w3, [x21]
Lloh5:
	adrp	x0, _iommu_group_ida@GOTPAGE
Lloh6:
	ldr	x0, [x0, _iommu_group_ida@GOTPAGEOFF]
	mov	w1, #0
	mov	w2, #0
	bl	_ida_simple_get
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	str	w21, [x19]
Lloh7:
	adrp	x1, _iommu_group_ktype@GOTPAGE
Lloh8:
	ldr	x1, [x1, _iommu_group_ktype@GOTPAGEOFF]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, #0
	mov	x4, x21
	bl	_kobject_init_and_add
	cbz	w0, LBB0_5
; %bb.3:
	mov	x21, x0
	ldr	w1, [x19]
Lloh11:
	adrp	x0, _iommu_group_ida@GOTPAGE
Lloh12:
	ldr	x0, [x0, _iommu_group_ida@GOTPAGEOFF]
	bl	_ida_simple_remove
LBB0_4:
	mov	x0, x19
	bl	_kfree
	mov	x0, x21
	b	LBB0_10
LBB0_5:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_kobject_create_and_add
	mov	x21, x0
	str	w0, [x19, #8]
	mov	x0, x20
	bl	_kobject_put
	cbz	w21, LBB0_9
; %bb.6:
Lloh15:
	adrp	x1, _iommu_group_attr_reserved_regions@GOTPAGE
Lloh16:
	ldr	x1, [x1, _iommu_group_attr_reserved_regions@GOTPAGEOFF]
	mov	x0, x19
	bl	_iommu_group_create_file
	cbnz	w0, LBB0_10
; %bb.7:
Lloh17:
	adrp	x1, _iommu_group_attr_type@GOTPAGE
Lloh18:
	ldr	x1, [x1, _iommu_group_attr_type@GOTPAGEOFF]
	mov	x0, x19
	bl	_iommu_group_create_file
	cbnz	w0, LBB0_10
; %bb.8:
	ldr	w1, [x19]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	mov	x0, 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
	ret
LBB0_9:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	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
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_iommu_group_kset,4,2           ; @iommu_group_kset
	.comm	_iommu_group_ida,4,2            ; @iommu_group_ida
	.comm	_iommu_group_ktype,4,2          ; @iommu_group_ktype
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

l_.str.1:                               ; @.str.1
	.asciz	"devices"

	.comm	_iommu_group_attr_reserved_regions,4,2 ; @iommu_group_attr_reserved_regions
	.comm	_iommu_group_attr_type,4,2      ; @iommu_group_attr_type
l_.str.2:                               ; @.str.2
	.asciz	"Allocated group %d\n"

.subsections_via_symbols
