	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_match_devscope
_dmar_match_devscope:                   ## @dmar_match_devscope
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	%esi, %r10d
	movl	(%rdi), %esi
	cmpl	$11, %esi
	jbe	LBB0_1
## %bb.2:
	movl	%ecx, %r9d
	movq	%rdx, %r8
	movq	%rdi, %rcx
	movl	4(%rdi), %r11d
	movq	_ACPI_DMAR_SCOPE_TYPE_ENDPOINT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r11d
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	movq	_ACPI_DMAR_SCOPE_TYPE_BRIDGE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r11d
	jne	LBB0_7
LBB0_4:
	testb	$1, %sil
	jne	LBB0_1
## %bb.5:
	leal	-11(%rsi), %eax
	cmpl	$2, %eax
	ja	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_printf
	movl	$-1, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_6:
	movl	%esi, %eax
	addl	$-12, %eax
	shrl	$31, %eax
	leal	(%rsi,%rax), %edx
	addl	$-12, %edx
	sarl	%edx
	movl	8(%rcx), %edi
	addq	$12, %rcx
	movl	%r11d, (%rsp)
	movq	%rcx, %rsi
	movl	%r10d, %ecx
	callq	_dmar_match_pathes
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dmar_match_devscope: corrupted DMAR table, dl %d\n"

	.comm	_ACPI_DMAR_SCOPE_TYPE_ENDPOINT,4,2 ## @ACPI_DMAR_SCOPE_TYPE_ENDPOINT
	.comm	_ACPI_DMAR_SCOPE_TYPE_BRIDGE,4,2 ## @ACPI_DMAR_SCOPE_TYPE_BRIDGE
	.no_dead_strip	_dmar_match_devscope
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmar_match_devscope
_dmar_match_devscope:                   ; @dmar_match_devscope
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x5, x3
	mov	x3, x1
	ldr	w1, [x0]
	subs	w8, w1, #11
	b.hi	LBB0_2
LBB0_1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w6, [x0, #4]
Lloh2:
	adrp	x9, _ACPI_DMAR_SCOPE_TYPE_ENDPOINT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ACPI_DMAR_SCOPE_TYPE_ENDPOINT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _ACPI_DMAR_SCOPE_TYPE_BRIDGE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ACPI_DMAR_SCOPE_TYPE_BRIDGE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w6, w9
	ccmp	w6, w10, #4, ne
	b.ne	LBB0_6
; %bb.3:
	tbnz	w1, #0, LBB0_1
; %bb.4:
	cmp	w8, #2
	b.ls	LBB0_1
; %bb.5:
	mov	x4, x2
	sub	w9, w1, #12
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w2, w8, #1
	add	x1, x0, #12
	ldr	w0, [x0, #8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_dmar_match_pathes
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dmar_match_devscope: corrupted DMAR table, dl %d\n"

	.comm	_ACPI_DMAR_SCOPE_TYPE_ENDPOINT,4,2 ; @ACPI_DMAR_SCOPE_TYPE_ENDPOINT
	.comm	_ACPI_DMAR_SCOPE_TYPE_BRIDGE,4,2 ; @ACPI_DMAR_SCOPE_TYPE_BRIDGE
	.no_dead_strip	_dmar_match_devscope
.subsections_via_symbols
