	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_match_quirks
_dmar_match_quirks:                     ## @dmar_match_quirks
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -96(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r12
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.1:
	movl	%edx, %r13d
	movq	%rsi, %rbx
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_pci_find_bsf
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_pci_get_device
	movq	%rax, %r15
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_pci_get_revid
	testl	%r13d, %r13d
	jle	LBB0_12
## %bb.3:
	movl	%r13d, %r13d
	shlq	$5, %r13
	xorl	%r14d, %r14d
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	callq	*16(%rbx,%r14)
	movq	-104(%rbp), %rax                ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$32, %r14
	cmpq	%r14, %r13
	je	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, (%rbx,%r14)
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx,%r14), %rcx
	cmpq	%rax, %rcx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_QUIRK_NB_ALL_REV@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rdi), %edi
	movl	24(%rbx,%r14), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_11:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_12:
	testq	%r12, %r12
	movl	-96(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_25
## %bb.13:
	leaq	-80(%rbp), %rsi
	movl	$1, %edi
	callq	_do_cpuid
	testl	%r14d, %r14d
	jle	LBB0_25
## %bb.14:
	movq	-80(%rbp), %rcx
	movq	_CPUID_EXT_FAMILY@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	andq	%rcx, %rbx
	sarq	$20, %rbx
	movq	_CPUID_EXT_MODEL@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	andq	%rcx, %r13
	sarq	$16, %r13
	movq	_CPUID_FAMILY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	andq	%rcx, %rdx
	sarq	$8, %rdx
	movq	_CPUID_MODEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	andq	%rcx, %rsi
	sarq	$4, %rsi
	movq	_CPUID_STEPPING@GOTPCREL(%rip), %rax
	andq	(%rax), %rcx
	movl	%r14d, %eax
	imulq	$56, %rax, %r15
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_23:                                ##   in Loop: Header=BB0_15 Depth=1
	callq	*40(%r12,%r14)
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_15 Depth=1
	addq	$56, %r14
	cmpq	%r14, %r15
	je	LBB0_25
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%r12,%r14)
	jne	LBB0_24
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpq	%r13, 8(%r12,%r14)
	jne	LBB0_24
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpq	%rdx, 16(%r12,%r14)
	jne	LBB0_24
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpq	%rsi, 24(%r12,%r14)
	jne	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	movslq	32(%r12,%r14), %rax
	cmpq	$-1, %rax
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpq	%rax, %rcx
	jne	LBB0_24
LBB0_21:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	(%rdi), %edi
	movl	48(%r12,%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.26:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_QUIRK_NB_ALL_REV,8,3           ## @QUIRK_NB_ALL_REV
	.comm	_bootverbose,8,3                ## @bootverbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NB IOMMU quirk %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"cannot find northbridge\n"

	.comm	_CPUID_EXT_FAMILY,8,3           ## @CPUID_EXT_FAMILY
	.comm	_CPUID_EXT_MODEL,8,3            ## @CPUID_EXT_MODEL
	.comm	_CPUID_FAMILY,8,3               ## @CPUID_FAMILY
	.comm	_CPUID_MODEL,8,3                ## @CPUID_MODEL
	.comm	_CPUID_STEPPING,8,3             ## @CPUID_STEPPING
L_.str.2:                               ## @.str.2
	.asciz	"CPU IOMMU quirk %s\n"

	.no_dead_strip	_dmar_match_quirks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmar_match_quirks
_dmar_match_quirks:                     ; @dmar_match_quirks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x21, x4
	mov	x20, x3
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	cbz	x1, LBB0_11
; %bb.1:
	mov	x26, x2
	mov	x25, x1
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	bl	_pci_find_bsf
	cbz	x0, LBB0_10
; %bb.2:
	mov	x22, x0
	bl	_pci_get_device
	mov	x23, x0
	mov	x0, x22
	bl	_pci_get_revid
	cmp	w26, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x24, x0
	mov	w26, w26
	add	x27, x25, #16
Lloh3:
	adrp	x28, _QUIRK_NB_ALL_REV@GOTPAGE
Lloh4:
	ldr	x28, [x28, _QUIRK_NB_ALL_REV@GOTPAGEOFF]
Lloh5:
	adrp	x25, _bootverbose@GOTPAGE
Lloh6:
	ldr	x25, [x25, _bootverbose@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x27]
	mov	x0, x19
	mov	x1, x22
	blr	x8
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x27, x27, #32
	subs	x26, x26, #1
	b.eq	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x27, #-16]
	cmp	x8, x23
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldur	x8, [x27, #-8]
	ldr	x9, [x28]
	cmp	x8, x24
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25]
	cbz	x8, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19]
	ldr	w8, [x27, #8]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_device_printf
	b	LBB0_4
LBB0_10:
	ldr	w0, [x19]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_device_printf
LBB0_11:
	cbz	x20, LBB0_24
; %bb.12:
	add	x1, sp, #8
	mov	w0, #1
	bl	_do_cpuid
	cmp	w21, #1
	b.lt	LBB0_24
; %bb.13:
	ldr	x8, [sp, #8]
Lloh11:
	adrp	x9, _CPUID_EXT_FAMILY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CPUID_EXT_FAMILY@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	and	x9, x9, x8
Lloh14:
	adrp	x10, _CPUID_EXT_MODEL@GOTPAGE
Lloh15:
	ldr	x10, [x10, _CPUID_EXT_MODEL@GOTPAGEOFF]
	asr	x22, x9, #20
Lloh16:
	ldr	x9, [x10]
	and	x9, x9, x8
	asr	x23, x9, #16
Lloh17:
	adrp	x9, _CPUID_FAMILY@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CPUID_FAMILY@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	and	x9, x9, x8
	asr	x24, x9, #8
Lloh20:
	adrp	x9, _CPUID_MODEL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CPUID_MODEL@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	and	x9, x9, x8
	asr	x25, x9, #4
Lloh23:
	adrp	x9, _CPUID_STEPPING@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CPUID_STEPPING@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	and	x26, x9, x8
	mov	w21, w21
	add	x27, x20, #24
Lloh26:
	adrp	x28, _bootverbose@GOTPAGE
Lloh27:
	ldr	x28, [x28, _bootverbose@GOTPAGEOFF]
Lloh28:
	adrp	x20, l_.str.2@PAGE
Lloh29:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x27, #16]
	mov	x0, x19
	blr	x8
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x27, x27, #56
	subs	x21, x21, #1
	b.eq	LBB0_24
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x27, #-24]
	cmp	x8, x22
	b.ne	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldur	x8, [x27, #-16]
	cmp	x8, x23
	b.ne	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldur	x8, [x27, #-8]
	cmp	x8, x24
	b.ne	LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x27]
	cmp	x8, x25
	b.ne	LBB0_15
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	ldrsw	x8, [x27, #8]
	cmn	w8, #1
	b.eq	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	x26, x8
	b.ne	LBB0_15
LBB0_22:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x28]
	cbz	x8, LBB0_14
; %bb.23:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [x19]
	ldr	w8, [x27, #24]
	str	x8, [sp]
	mov	x1, x20
	bl	_device_printf
	b	LBB0_14
LBB0_24:
	ldr	x8, [sp, #40]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.25:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_QUIRK_NB_ALL_REV,8,3           ; @QUIRK_NB_ALL_REV
	.comm	_bootverbose,8,3                ; @bootverbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NB IOMMU quirk %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"cannot find northbridge\n"

	.comm	_CPUID_EXT_FAMILY,8,3           ; @CPUID_EXT_FAMILY
	.comm	_CPUID_EXT_MODEL,8,3            ; @CPUID_EXT_MODEL
	.comm	_CPUID_FAMILY,8,3               ; @CPUID_FAMILY
	.comm	_CPUID_MODEL,8,3                ; @CPUID_MODEL
	.comm	_CPUID_STEPPING,8,3             ; @CPUID_STEPPING
l_.str.2:                               ; @.str.2
	.asciz	"CPU IOMMU quirk %s\n"

	.no_dead_strip	_dmar_match_quirks
.subsections_via_symbols
