	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rstmgr_add_sysctl
_rstmgr_add_sysctl:                     ## @rstmgr_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, %rbx
	movl	(%rdi), %edi
	callq	_device_get_sysctl_ctx
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_device_get_sysctl_tree
	movl	%eax, %edi
	callq	_SYSCTL_CHILDREN
	movq	%rax, %r15
	movq	_OID_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CTLTYPE_UINT@GOTPCREL(%rip), %rax
	movq	_CTLFLAG_RW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	orl	(%rax), %r8d
	movq	_RSTMGR_SYSCTL_FPGA2HPS@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_rstmgr_sysctl@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	leaq	L_.str.2(%rip), %r11
	leaq	L_.str.1(%rip), %r13
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %r9
	pushq	%r11
	pushq	%r13
	pushq	%rax
	pushq	%r10
	callq	_SYSCTL_ADD_PROC
	addq	$32, %rsp
	movq	_CTLFLAG_RW@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_CTLTYPE_UINT@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	_OID_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RSTMGR_SYSCTL_LWHPS2FPGA@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	(%r12), %eax
	leaq	L_.str.4(%rip), %r11
	leaq	L_.str.3(%rip), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %r9
	pushq	%r11
	pushq	%r13
	pushq	%rax
	pushq	%r10
	callq	_SYSCTL_ADD_PROC
	addq	$32, %rsp
	movq	_CTLFLAG_RW@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_CTLTYPE_UINT@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	_OID_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RSTMGR_SYSCTL_HPS2FPGA@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	(%r12), %eax
	leaq	L_.str.6(%rip), %r11
	leaq	L_.str.5(%rip), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %r9
	pushq	%r11
	pushq	%r13
	pushq	%rax
	pushq	%r10
	callq	_SYSCTL_ADD_PROC
	addq	$32, %rsp
	xorl	%eax, %eax
	addq	$8, %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	"fpga2hps"

	.comm	_CTLTYPE_UINT,4,2               ## @CTLTYPE_UINT
	.comm	_CTLFLAG_RW,4,2                 ## @CTLFLAG_RW
	.comm	_RSTMGR_SYSCTL_FPGA2HPS,4,2     ## @RSTMGR_SYSCTL_FPGA2HPS
	.comm	_rstmgr_sysctl,4,2              ## @rstmgr_sysctl
L_.str.1:                               ## @.str.1
	.asciz	"I"

L_.str.2:                               ## @.str.2
	.asciz	"Enable fpga2hps bridge"

L_.str.3:                               ## @.str.3
	.asciz	"lwhps2fpga"

	.comm	_RSTMGR_SYSCTL_LWHPS2FPGA,4,2   ## @RSTMGR_SYSCTL_LWHPS2FPGA
L_.str.4:                               ## @.str.4
	.asciz	"Enable lwhps2fpga bridge"

L_.str.5:                               ## @.str.5
	.asciz	"hps2fpga"

	.comm	_RSTMGR_SYSCTL_HPS2FPGA,4,2     ## @RSTMGR_SYSCTL_HPS2FPGA
L_.str.6:                               ## @.str.6
	.asciz	"Enable hps2fpga bridge"

	.no_dead_strip	_rstmgr_add_sysctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rstmgr_add_sysctl
_rstmgr_add_sysctl:                     ; @rstmgr_add_sysctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	ldr	w0, [x0]
	bl	_device_get_sysctl_ctx
	mov	x20, x0
	ldr	w0, [x19]
	bl	_device_get_sysctl_tree
	bl	_SYSCTL_CHILDREN
	mov	x21, x0
Lloh0:
	adrp	x22, _OID_AUTO@GOTPAGE
Lloh1:
	ldr	x22, [x22, _OID_AUTO@GOTPAGEOFF]
Lloh2:
	adrp	x23, _CTLTYPE_UINT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CTLTYPE_UINT@GOTPAGEOFF]
	ldr	w2, [x22]
	ldr	w8, [x23]
Lloh4:
	adrp	x24, _CTLFLAG_RW@GOTPAGE
Lloh5:
	ldr	x24, [x24, _CTLFLAG_RW@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w4, w9, w8
Lloh6:
	adrp	x8, _RSTMGR_SYSCTL_FPGA2HPS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RSTMGR_SYSCTL_FPGA2HPS@GOTPAGEOFF]
Lloh8:
	ldr	w6, [x8]
Lloh9:
	adrp	x25, _rstmgr_sysctl@GOTPAGE
Lloh10:
	ldr	x25, [x25, _rstmgr_sysctl@GOTPAGEOFF]
	ldr	w7, [x25]
Lloh11:
	adrp	x8, l_.str.2@PAGE
Lloh12:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh13:
	adrp	x26, l_.str.1@PAGE
Lloh14:
	add	x26, x26, l_.str.1@PAGEOFF
	stp	x26, x8, [sp]
Lloh15:
	adrp	x3, l_.str@PAGE
Lloh16:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x5, x19
	bl	_SYSCTL_ADD_PROC
	ldr	w2, [x22]
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w4, w9, w8
Lloh17:
	adrp	x8, _RSTMGR_SYSCTL_LWHPS2FPGA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RSTMGR_SYSCTL_LWHPS2FPGA@GOTPAGEOFF]
Lloh19:
	ldr	w6, [x8]
	ldr	w7, [x25]
Lloh20:
	adrp	x8, l_.str.4@PAGE
Lloh21:
	add	x8, x8, l_.str.4@PAGEOFF
	stp	x26, x8, [sp]
Lloh22:
	adrp	x3, l_.str.3@PAGE
Lloh23:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x5, x19
	bl	_SYSCTL_ADD_PROC
	ldr	w2, [x22]
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w4, w9, w8
Lloh24:
	adrp	x8, _RSTMGR_SYSCTL_HPS2FPGA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RSTMGR_SYSCTL_HPS2FPGA@GOTPAGEOFF]
Lloh26:
	ldr	w6, [x8]
	ldr	w7, [x25]
Lloh27:
	adrp	x8, l_.str.6@PAGE
Lloh28:
	add	x8, x8, l_.str.6@PAGEOFF
	stp	x26, x8, [sp]
Lloh29:
	adrp	x3, l_.str.5@PAGE
Lloh30:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x5, x19
	bl	_SYSCTL_ADD_PROC
	mov	w0, #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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	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	"fpga2hps"

	.comm	_CTLTYPE_UINT,4,2               ; @CTLTYPE_UINT
	.comm	_CTLFLAG_RW,4,2                 ; @CTLFLAG_RW
	.comm	_RSTMGR_SYSCTL_FPGA2HPS,4,2     ; @RSTMGR_SYSCTL_FPGA2HPS
	.comm	_rstmgr_sysctl,4,2              ; @rstmgr_sysctl
l_.str.1:                               ; @.str.1
	.asciz	"I"

l_.str.2:                               ; @.str.2
	.asciz	"Enable fpga2hps bridge"

l_.str.3:                               ; @.str.3
	.asciz	"lwhps2fpga"

	.comm	_RSTMGR_SYSCTL_LWHPS2FPGA,4,2   ; @RSTMGR_SYSCTL_LWHPS2FPGA
l_.str.4:                               ; @.str.4
	.asciz	"Enable lwhps2fpga bridge"

l_.str.5:                               ; @.str.5
	.asciz	"hps2fpga"

	.comm	_RSTMGR_SYSCTL_HPS2FPGA,4,2     ; @RSTMGR_SYSCTL_HPS2FPGA
l_.str.6:                               ; @.str.6
	.asciz	"Enable hps2fpga bridge"

	.no_dead_strip	_rstmgr_add_sysctl
.subsections_via_symbols
