	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmar_alloc_dev_scope           ## -- Begin function dmar_alloc_dev_scope
	.p2align	4, 0x90
_dmar_alloc_dev_scope:                  ## @dmar_alloc_dev_scope
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, (%rdx)
	cmpq	%rsi, %rdi
	jae	LBB0_11
## %bb.1:
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	_ACPI_DMAR_SCOPE_TYPE_NAMESPACE@GOTPCREL(%rip), %r14
	movq	_ACPI_DMAR_SCOPE_TYPE_ENDPOINT@GOTPCREL(%rip), %r13
	movq	_ACPI_DMAR_SCOPE_TYPE_BRIDGE@GOTPCREL(%rip), %r12
	movq	_ACPI_DMAR_SCOPE_TYPE_IOAPIC@GOTPCREL(%rip), %r8
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	(%r15)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	8(%rbx), %rax
	addq	%rax, %rbx
	cmpq	%rsi, %rbx
	jae	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%r13), %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%r12), %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%r8), %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ACPI_DMAR_SCOPE_TYPE_HPET@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
	movq	_ACPI_DMAR_SCOPE_TYPE_IOAPIC@GOTPCREL(%rip), %r8
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_10:
	movl	(%r15), %edi
	testl	%edi, %edi
	je	LBB0_11
## %bb.12:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kcalloc                        ## TAILCALL
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_DMAR_SCOPE_TYPE_NAMESPACE,8,3 ## @ACPI_DMAR_SCOPE_TYPE_NAMESPACE
	.comm	_ACPI_DMAR_SCOPE_TYPE_ENDPOINT,8,3 ## @ACPI_DMAR_SCOPE_TYPE_ENDPOINT
	.comm	_ACPI_DMAR_SCOPE_TYPE_BRIDGE,8,3 ## @ACPI_DMAR_SCOPE_TYPE_BRIDGE
	.comm	_ACPI_DMAR_SCOPE_TYPE_IOAPIC,8,3 ## @ACPI_DMAR_SCOPE_TYPE_IOAPIC
	.comm	_ACPI_DMAR_SCOPE_TYPE_HPET,8,3  ## @ACPI_DMAR_SCOPE_TYPE_HPET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported device scope\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmar_alloc_dev_scope           ; -- Begin function dmar_alloc_dev_scope
	.p2align	2
_dmar_alloc_dev_scope:                  ; @dmar_alloc_dev_scope
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	wzr, [x2]
	cmp	x0, x1
	b.hs	LBB0_9
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _ACPI_DMAR_SCOPE_TYPE_NAMESPACE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ACPI_DMAR_SCOPE_TYPE_NAMESPACE@GOTPAGEOFF]
Lloh2:
	adrp	x24, _ACPI_DMAR_SCOPE_TYPE_ENDPOINT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ACPI_DMAR_SCOPE_TYPE_ENDPOINT@GOTPAGEOFF]
Lloh4:
	adrp	x25, _ACPI_DMAR_SCOPE_TYPE_BRIDGE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _ACPI_DMAR_SCOPE_TYPE_BRIDGE@GOTPAGEOFF]
Lloh6:
	adrp	x26, _ACPI_DMAR_SCOPE_TYPE_IOAPIC@GOTPAGE
Lloh7:
	ldr	x26, [x26, _ACPI_DMAR_SCOPE_TYPE_IOAPIC@GOTPAGEOFF]
Lloh8:
	adrp	x22, l_.str@PAGE
Lloh9:
	add	x22, x22, l_.str@PAGEOFF
Lloh10:
	adrp	x27, _ACPI_DMAR_SCOPE_TYPE_HPET@GOTPAGE
Lloh11:
	ldr	x27, [x27, _ACPI_DMAR_SCOPE_TYPE_HPET@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x21, #8]
	add	x21, x21, x8
	cmp	x21, x20
	b.hs	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x9, [x23]
	ldr	x10, [x24]
	ldr	x11, [x25]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x26]
	ldr	x10, [x27]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_pr_warn
	b	LBB0_3
LBB0_7:
	ldr	w0, [x19]
	cbz	w0, LBB0_9
; %bb.8:
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	w1, #4
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_kcalloc
LBB0_9:
	mov	x0, #0
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_DMAR_SCOPE_TYPE_NAMESPACE,8,3 ; @ACPI_DMAR_SCOPE_TYPE_NAMESPACE
	.comm	_ACPI_DMAR_SCOPE_TYPE_ENDPOINT,8,3 ; @ACPI_DMAR_SCOPE_TYPE_ENDPOINT
	.comm	_ACPI_DMAR_SCOPE_TYPE_BRIDGE,8,3 ; @ACPI_DMAR_SCOPE_TYPE_BRIDGE
	.comm	_ACPI_DMAR_SCOPE_TYPE_IOAPIC,8,3 ; @ACPI_DMAR_SCOPE_TYPE_IOAPIC
	.comm	_ACPI_DMAR_SCOPE_TYPE_HPET,8,3  ; @ACPI_DMAR_SCOPE_TYPE_HPET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported device scope\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
