	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdvi_add_sysctl
_amdvi_add_sysctl:                      ## @amdvi_add_sysctl
	.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
	movq	%rdi, %r15
	movl	20(%rdi), %ebx
	movl	%ebx, %edi
	callq	_device_get_sysctl_ctx
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_device_get_sysctl_tree
	movl	%eax, %edi
	callq	_SYSCTL_CHILDREN
	movq	%rax, %rbx
	movq	_OID_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rax, %r12
	movq	_CTLFLAG_RD@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	leaq	16(%r15), %r9
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	pushq	%rax
	callq	_SYSCTL_ADD_ULONG
	addq	$16, %rsp
	movl	(%r12), %edx
	movl	(%r13), %r8d
	leaq	12(%r15), %r9
	subq	$8, %rsp
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	pushq	%rax
	callq	_SYSCTL_ADD_ULONG
	addq	$16, %rsp
	movl	(%r12), %edx
	movl	(%r13), %r8d
	leaq	8(%r15), %r9
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	pushq	%rax
	pushq	$0
	callq	_SYSCTL_ADD_U16
	addq	$16, %rsp
	movl	(%r12), %edx
	movl	(%r13), %r8d
	leaq	4(%r15), %r9
	leaq	L_.str.7(%rip), %rax
	leaq	L_.str.6(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	pushq	%rax
	pushq	$0
	callq	_SYSCTL_ADD_U16
	addq	$16, %rsp
	movl	(%r12), %edx
	movl	(%r13), %r8d
	leaq	L_.str.9(%rip), %rax
	leaq	L_.str.8(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %r9
	pushq	%rax
	pushq	$0
	callq	_SYSCTL_ADD_U16
	addq	$16, %rsp
	movl	(%r12), %edx
	movq	_CTLTYPE_UINT@GOTPCREL(%rip), %rax
	movl	(%r13), %r8d
	orl	(%rax), %r8d
	movq	%rax, %r13
	movq	_amdvi_handle_sysctl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	L_.str.12(%rip), %r11
	leaq	L_.str.11(%rip), %r12
	leaq	L_.str.10(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %r9
	pushq	%r11
	pushq	%r12
	pushq	%rax
	pushq	$0
	callq	_SYSCTL_ADD_PROC
	addq	$32, %rsp
	movq	_OID_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CTLFLAG_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	orl	(%r13), %r8d
	movq	_amdvi_handle_sysctl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	L_.str.14(%rip), %r10
	leaq	L_.str.13(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %r9
	pushq	%r10
	pushq	%r12
	pushq	%rax
	pushq	$1
	callq	_SYSCTL_ADD_PROC
	addq	$32, %rsp
	movq	_OID_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CTLFLAG_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	orl	(%r13), %r8d
	movq	_amdvi_handle_sysctl@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	leaq	L_.str.15(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %r9
	leaq	L_.str.12(%rip), %rax
	pushq	%rax
	pushq	%r12
	pushq	%r10
	pushq	$2
	callq	_SYSCTL_ADD_PROC
	addq	$32, %rsp
	movq	_OID_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CTLFLAG_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	orl	(%r13), %r8d
	movq	_amdvi_handle_sysctl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	L_.str.16(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %r9
	leaq	L_.str.14(%rip), %rbx
	pushq	%rbx
	pushq	%r12
	pushq	%rax
	pushq	$3
	callq	_SYSCTL_ADD_PROC
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OID_AUTO,4,2                   ## @OID_AUTO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"event_intr_count"

	.comm	_CTLFLAG_RD,4,2                 ## @CTLFLAG_RD
L_.str.1:                               ## @.str.1
	.asciz	"Event interrupt count"

L_.str.2:                               ## @.str.2
	.asciz	"command_count"

L_.str.3:                               ## @.str.3
	.asciz	"Command submitted count"

L_.str.4:                               ## @.str.4
	.asciz	"pci_rid"

L_.str.5:                               ## @.str.5
	.asciz	"IOMMU RID"

L_.str.6:                               ## @.str.6
	.asciz	"start_dev_rid"

L_.str.7:                               ## @.str.7
	.asciz	"Start of device under this IOMMU"

L_.str.8:                               ## @.str.8
	.asciz	"end_dev_rid"

L_.str.9:                               ## @.str.9
	.asciz	"End of device under this IOMMU"

L_.str.10:                              ## @.str.10
	.asciz	"command_head"

	.comm	_CTLTYPE_UINT,4,2               ## @CTLTYPE_UINT
	.comm	_amdvi_handle_sysctl,4,2        ## @amdvi_handle_sysctl
L_.str.11:                              ## @.str.11
	.asciz	"IU"

L_.str.12:                              ## @.str.12
	.asciz	"Command head"

L_.str.13:                              ## @.str.13
	.asciz	"command_tail"

L_.str.14:                              ## @.str.14
	.asciz	"Command tail"

L_.str.15:                              ## @.str.15
	.asciz	"event_head"

L_.str.16:                              ## @.str.16
	.asciz	"event_tail"

	.no_dead_strip	_amdvi_add_sysctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdvi_add_sysctl
_amdvi_add_sysctl:                      ; @amdvi_add_sysctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	ldr	w21, [x0, #20]
	mov	x0, x21
	bl	_device_get_sysctl_ctx
	mov	x20, x0
	mov	x0, x21
	bl	_device_get_sysctl_tree
	bl	_SYSCTL_CHILDREN
	mov	x21, x0
Lloh0:
	adrp	x22, _OID_AUTO@GOTPAGE
Lloh1:
	ldr	x22, [x22, _OID_AUTO@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh2:
	adrp	x23, _CTLFLAG_RD@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CTLFLAG_RD@GOTPAGEOFF]
	ldr	w4, [x23]
	add	x5, x19, #16
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
Lloh6:
	adrp	x6, l_.str.1@PAGE
Lloh7:
	add	x6, x6, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_SYSCTL_ADD_ULONG
	ldr	w2, [x22]
	ldr	w4, [x23]
	add	x5, x19, #12
Lloh8:
	adrp	x3, l_.str.2@PAGE
Lloh9:
	add	x3, x3, l_.str.2@PAGEOFF
Lloh10:
	adrp	x6, l_.str.3@PAGE
Lloh11:
	add	x6, x6, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_SYSCTL_ADD_ULONG
	ldr	w2, [x22]
	ldr	w4, [x23]
	add	x5, x19, #8
Lloh12:
	adrp	x3, l_.str.4@PAGE
Lloh13:
	add	x3, x3, l_.str.4@PAGEOFF
Lloh14:
	adrp	x7, l_.str.5@PAGE
Lloh15:
	add	x7, x7, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	w6, #0
	bl	_SYSCTL_ADD_U16
	ldr	w2, [x22]
	ldr	w4, [x23]
	add	x5, x19, #4
Lloh16:
	adrp	x3, l_.str.6@PAGE
Lloh17:
	add	x3, x3, l_.str.6@PAGEOFF
Lloh18:
	adrp	x7, l_.str.7@PAGE
Lloh19:
	add	x7, x7, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	w6, #0
	bl	_SYSCTL_ADD_U16
	ldr	w2, [x22]
	ldr	w4, [x23]
Lloh20:
	adrp	x3, l_.str.8@PAGE
Lloh21:
	add	x3, x3, l_.str.8@PAGEOFF
Lloh22:
	adrp	x7, l_.str.9@PAGE
Lloh23:
	add	x7, x7, l_.str.9@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x5, x19
	mov	w6, #0
	bl	_SYSCTL_ADD_U16
	ldr	w2, [x22]
Lloh24:
	adrp	x24, _CTLTYPE_UINT@GOTPAGE
Lloh25:
	ldr	x24, [x24, _CTLTYPE_UINT@GOTPAGEOFF]
	ldr	w8, [x24]
	ldr	w9, [x23]
	orr	w4, w9, w8
Lloh26:
	adrp	x25, _amdvi_handle_sysctl@GOTPAGE
Lloh27:
	ldr	x25, [x25, _amdvi_handle_sysctl@GOTPAGEOFF]
	ldr	w7, [x25]
Lloh28:
	adrp	x27, l_.str.12@PAGE
Lloh29:
	add	x27, x27, l_.str.12@PAGEOFF
Lloh30:
	adrp	x26, l_.str.11@PAGE
Lloh31:
	add	x26, x26, l_.str.11@PAGEOFF
	stp	x26, x27, [sp]
Lloh32:
	adrp	x3, l_.str.10@PAGE
Lloh33:
	add	x3, x3, l_.str.10@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x5, x19
	mov	w6, #0
	bl	_SYSCTL_ADD_PROC
	ldr	w2, [x22]
	ldr	w8, [x24]
	ldr	w9, [x23]
	orr	w4, w9, w8
	ldr	w7, [x25]
Lloh34:
	adrp	x28, l_.str.14@PAGE
Lloh35:
	add	x28, x28, l_.str.14@PAGEOFF
	stp	x26, x28, [sp]
Lloh36:
	adrp	x3, l_.str.13@PAGE
Lloh37:
	add	x3, x3, l_.str.13@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x5, x19
	mov	w6, #1
	bl	_SYSCTL_ADD_PROC
	ldr	w2, [x22]
	ldr	w8, [x24]
	ldr	w9, [x23]
	orr	w4, w9, w8
	ldr	w7, [x25]
	stp	x26, x27, [sp]
Lloh38:
	adrp	x3, l_.str.15@PAGE
Lloh39:
	add	x3, x3, l_.str.15@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x5, x19
	mov	w6, #2
	bl	_SYSCTL_ADD_PROC
	ldr	w2, [x22]
	ldr	w8, [x24]
	ldr	w9, [x23]
	orr	w4, w9, w8
	ldr	w7, [x25]
	stp	x26, x28, [sp]
Lloh40:
	adrp	x3, l_.str.16@PAGE
Lloh41:
	add	x3, x3, l_.str.16@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x5, x19
	mov	w6, #3
	bl	_SYSCTL_ADD_PROC
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OID_AUTO,4,2                   ; @OID_AUTO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"event_intr_count"

	.comm	_CTLFLAG_RD,4,2                 ; @CTLFLAG_RD
l_.str.1:                               ; @.str.1
	.asciz	"Event interrupt count"

l_.str.2:                               ; @.str.2
	.asciz	"command_count"

l_.str.3:                               ; @.str.3
	.asciz	"Command submitted count"

l_.str.4:                               ; @.str.4
	.asciz	"pci_rid"

l_.str.5:                               ; @.str.5
	.asciz	"IOMMU RID"

l_.str.6:                               ; @.str.6
	.asciz	"start_dev_rid"

l_.str.7:                               ; @.str.7
	.asciz	"Start of device under this IOMMU"

l_.str.8:                               ; @.str.8
	.asciz	"end_dev_rid"

l_.str.9:                               ; @.str.9
	.asciz	"End of device under this IOMMU"

l_.str.10:                              ; @.str.10
	.asciz	"command_head"

	.comm	_CTLTYPE_UINT,4,2               ; @CTLTYPE_UINT
	.comm	_amdvi_handle_sysctl,4,2        ; @amdvi_handle_sysctl
l_.str.11:                              ; @.str.11
	.asciz	"IU"

l_.str.12:                              ; @.str.12
	.asciz	"Command head"

l_.str.13:                              ; @.str.13
	.asciz	"command_tail"

l_.str.14:                              ; @.str.14
	.asciz	"Command tail"

l_.str.15:                              ; @.str.15
	.asciz	"event_head"

l_.str.16:                              ; @.str.16
	.asciz	"event_tail"

	.no_dead_strip	_amdvi_add_sysctl
.subsections_via_symbols
