	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_print_caps
_dmar_print_caps:                       ## @dmar_print_caps
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movl	%edi, %r14d
	movl	8(%rdx), %r15d
	movl	8(%rsi), %edi
	callq	_DMAR_MAJOR_VER
	movslq	%eax, %r12
	movl	8(%r13), %edi
	callq	_DMAR_MINOR_VER
	movl	(%rbx), %r10d
	movl	4(%rbx), %r9d
	leaq	L_.str.1(%rip), %rbx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%r15d, %edx
	movq	%r12, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	callq	_device_printf
	addq	$16, %rsp
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rcx
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.5(%rip), %rdx
	xorl	%eax, %eax
	callq	_printf
	movl	(%r13), %edi
	callq	_DMAR_CAP_ND
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%r13), %edi
	callq	_DMAR_CAP_SAGAW
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r13), %edi
	callq	_DMAR_CAP_MGAW
	movl	%eax, %r12d
	movl	(%r13), %edi
	callq	_DMAR_CAP_FRO
	movl	%eax, %r14d
	movl	(%r13), %edi
	callq	_DMAR_CAP_NFR
	movl	%eax, %r15d
	movl	(%r13), %edi
	callq	_DMAR_CAP_SPS
	movl	%eax, %ebx
	subq	$8, %rsp
	leaq	L_.str.6(%rip), %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	xorl	%eax, %eax
	pushq	%rbx
	callq	_printf
	addq	$16, %rsp
	movl	(%r13), %edi
	movq	_DMAR_CAP_PSI@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_2
## %bb.1:
	callq	_DMAR_CAP_MAMV
	leaq	L_.str.7(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
LBB0_2:
	movl	$10, %edi
	callq	_putchar
	movl	4(%r13), %edx
	leaq	L_.str.9(%rip), %rsi
	leaq	L_.str.10(%rip), %rcx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_device_printf
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.11(%rip), %rdx
	xorl	%eax, %eax
	callq	_printf
	movl	4(%r13), %edi
	callq	_DMAR_ECAP_MHMV
	movl	%eax, %ebx
	movl	4(%r13), %edi
	callq	_DMAR_ECAP_IRO
	leaq	L_.str.12(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"regs@0x%08jx, ver=%d.%d, seg=%d, flags=<%b>\n"

L_.str.1:                               ## @.str.1
	.asciz	"\020\001INCLUDE_ALL_PCI"

L_.str.2:                               ## @.str.2
	.asciz	"cap=%b,"

L_.str.3:                               ## @.str.3
	.asciz	"\020\004AFL\005WBF\006PLMR\007PHMR\bCM\027ZLR\030ISOCH"

L_.str.4:                               ## @.str.4
	.asciz	"%b, "

L_.str.5:                               ## @.str.5
	.asciz	"\020\bPSI\027DWD\030DRD\031FL1GP\034PSI"

L_.str.6:                               ## @.str.6
	.asciz	"ndoms=%d, sagaw=%d, mgaw=%d, fro=%d, nfr=%d, superp=%d"

	.comm	_DMAR_CAP_PSI,4,2               ## @DMAR_CAP_PSI
L_.str.7:                               ## @.str.7
	.asciz	", mamv=%d"

L_.str.9:                               ## @.str.9
	.asciz	"ecap=%b,"

L_.str.10:                              ## @.str.10
	.asciz	"\020\001C\002QI\003DI\004IR\005EIM\007PT\bSC\031ECS\032MTS\033NEST\034DIS\035PASID\036PRS\037ERS SRS"

L_.str.11:                              ## @.str.11
	.asciz	"\020\002NWFS\003EAFS"

L_.str.12:                              ## @.str.12
	.asciz	"mhmw=%d, iro=%d\n"

	.no_dead_strip	_dmar_print_caps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmar_print_caps
_dmar_print_caps:                       ; @dmar_print_caps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w22, [x2, #8]
	ldr	w0, [x1, #8]
	bl	_DMAR_MAJOR_VER
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x23, w0
	ldr	w0, [x19, #8]
	bl	_DMAR_MINOR_VER
                                        ; kill: def $w0 killed $w0 def $x0
	ldp	w9, w8, [x21]
Lloh0:
	adrp	x10, l_.str.1@PAGE
Lloh1:
	add	x10, x10, l_.str.1@PAGEOFF
	stp	x9, x10, [sp, #16]
	stp	x0, x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	mov	x3, x23
	bl	_device_printf
	ldr	w2, [x19]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh6:
	adrp	x3, l_.str.3@PAGE
Lloh7:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_device_printf
Lloh8:
	adrp	x8, l_.str.5@PAGE
Lloh9:
	add	x8, x8, l_.str.5@PAGEOFF
	str	x8, [sp, #8]
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	ldr	w0, [x19]
	bl	_DMAR_CAP_ND
	mov	x21, x0
	ldr	w0, [x19]
	bl	_DMAR_CAP_SAGAW
	mov	x22, x0
	ldr	w0, [x19]
	bl	_DMAR_CAP_MGAW
	mov	x23, x0
	ldr	w0, [x19]
	bl	_DMAR_CAP_FRO
	mov	x24, x0
	ldr	w0, [x19]
	bl	_DMAR_CAP_NFR
	mov	x25, x0
	ldr	w0, [x19]
	bl	_DMAR_CAP_SPS
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x25, x0, [sp, #32]
	stp	x23, x24, [sp, #16]
	stp	x21, x22, [sp]
Lloh12:
	adrp	x0, l_.str.6@PAGE
Lloh13:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
	ldr	w0, [x19]
Lloh14:
	adrp	x8, _DMAR_CAP_PSI@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DMAR_CAP_PSI@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	bl	_DMAR_CAP_MAMV
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh17:
	adrp	x0, l_.str.7@PAGE
Lloh18:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
LBB0_2:
	mov	w0, #10
	bl	_putchar
	ldr	w2, [x19, #4]
Lloh19:
	adrp	x1, l_.str.9@PAGE
Lloh20:
	add	x1, x1, l_.str.9@PAGEOFF
Lloh21:
	adrp	x3, l_.str.10@PAGE
Lloh22:
	add	x3, x3, l_.str.10@PAGEOFF
	mov	x0, x20
	bl	_device_printf
Lloh23:
	adrp	x8, l_.str.11@PAGE
Lloh24:
	add	x8, x8, l_.str.11@PAGEOFF
	str	x8, [sp, #8]
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	ldr	w0, [x19, #4]
	bl	_DMAR_ECAP_MHMV
	mov	x20, x0
	ldr	w0, [x19, #4]
	bl	_DMAR_ECAP_IRO
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh27:
	adrp	x0, l_.str.12@PAGE
Lloh28:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_printf
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"regs@0x%08jx, ver=%d.%d, seg=%d, flags=<%b>\n"

l_.str.1:                               ; @.str.1
	.asciz	"\020\001INCLUDE_ALL_PCI"

l_.str.2:                               ; @.str.2
	.asciz	"cap=%b,"

l_.str.3:                               ; @.str.3
	.asciz	"\020\004AFL\005WBF\006PLMR\007PHMR\bCM\027ZLR\030ISOCH"

l_.str.4:                               ; @.str.4
	.asciz	"%b, "

l_.str.5:                               ; @.str.5
	.asciz	"\020\bPSI\027DWD\030DRD\031FL1GP\034PSI"

l_.str.6:                               ; @.str.6
	.asciz	"ndoms=%d, sagaw=%d, mgaw=%d, fro=%d, nfr=%d, superp=%d"

	.comm	_DMAR_CAP_PSI,4,2               ; @DMAR_CAP_PSI
l_.str.7:                               ; @.str.7
	.asciz	", mamv=%d"

l_.str.9:                               ; @.str.9
	.asciz	"ecap=%b,"

l_.str.10:                              ; @.str.10
	.asciz	"\020\001C\002QI\003DI\004IR\005EIM\007PT\bSC\031ECS\032MTS\033NEST\034DIS\035PASID\036PRS\037ERS SRS"

l_.str.11:                              ; @.str.11
	.asciz	"\020\002NWFS\003EAFS"

l_.str.12:                              ; @.str.12
	.asciz	"mhmw=%d, iro=%d\n"

	.no_dead_strip	_dmar_print_caps
.subsections_via_symbols
