	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_gpio_sysctl_init
_bcm_gpio_sysctl_init:                  ## @bcm_gpio_sysctl_init
	.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	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	_device_get_sysctl_ctx
	movq	%rax, %r13
	movl	24(%rbx), %edi
	callq	_device_get_sysctl_tree
	movq	%rax, %rdi
	callq	_SYSCTL_CHILDREN
	movq	_OID_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_CTLFLAG_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %r10
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	movq	%rax, %rsi
	xorl	%r9d, %r9d
	pushq	%r10
	callq	_SYSCTL_ADD_NODE
	addq	$16, %rsp
	movq	%rax, %rdi
	callq	_SYSCTL_CHILDREN
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	jle	LBB0_3
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-43(%rbp), %rdi
	movl	$3, %esi
	leaq	L_.str.2(%rip), %rdx
	movl	%r12d, %ecx
	callq	_snprintf
	movq	_OID_AUTO@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_CTLFLAG_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	subq	$8, %rsp
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	-43(%rbp), %rcx
	xorl	%r9d, %r9d
	leaq	L_.str.3(%rip), %rax
	pushq	%rax
	callq	_SYSCTL_ADD_NODE
	addq	$16, %rsp
	movq	%rax, %rdi
	callq	_SYSCTL_CHILDREN
	movq	16(%rbx), %rcx
	leaq	(%rcx,%r15), %r9
	movq	%rbx, 8(%rcx,%r15)
	movq	8(%rbx), %rdx
	movl	(%rdx,%r12,4), %edx
	movl	%edx, (%rcx,%r15)
	movl	(%r14), %edx
	movq	_CTLTYPE_STRING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_CTLFLAG_RW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movq	_bcm_gpio_func_proc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	%r13, %rdi
	movq	%rax, %rsi
	leaq	L_.str.4(%rip), %rcx
	leaq	L_.str.6(%rip), %rax
	pushq	%rax
	leaq	L_.str.5(%rip), %rax
	pushq	%rax
	pushq	%r10
	pushq	$16
	callq	_SYSCTL_ADD_PROC
	addq	$32, %rsp
	incq	%r12
	movslq	(%rbx), %rax
	addq	$16, %r15
	cmpq	%rax, %r12
	jl	LBB0_2
LBB0_3:
	addq	$24, %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	"pin"

	.comm	_CTLFLAG_RD,4,2                 ## @CTLFLAG_RD
L_.str.1:                               ## @.str.1
	.asciz	"GPIO Pins"

L_.str.2:                               ## @.str.2
	.asciz	"%d"

L_.str.3:                               ## @.str.3
	.asciz	"GPIO Pin"

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

	.comm	_CTLFLAG_RW,4,2                 ## @CTLFLAG_RW
	.comm	_CTLTYPE_STRING,4,2             ## @CTLTYPE_STRING
	.comm	_bcm_gpio_func_proc,4,2         ## @bcm_gpio_func_proc
L_.str.5:                               ## @.str.5
	.asciz	"A"

L_.str.6:                               ## @.str.6
	.asciz	"Pin Function"

	.no_dead_strip	_bcm_gpio_sysctl_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_gpio_sysctl_init
_bcm_gpio_sysctl_init:                  ; @bcm_gpio_sysctl_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_device_get_sysctl_ctx
	mov	x20, x0
	ldr	w0, [x19, #24]
	bl	_device_get_sysctl_tree
	bl	_SYSCTL_CHILDREN
	mov	x1, x0
Lloh0:
	adrp	x26, _OID_AUTO@GOTPAGE
Lloh1:
	ldr	x26, [x26, _OID_AUTO@GOTPAGEOFF]
	ldr	w2, [x26]
Lloh2:
	adrp	x8, _CTLFLAG_RD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CTLFLAG_RD@GOTPAGEOFF]
Lloh4:
	ldr	w4, [x8]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
Lloh7:
	adrp	x6, l_.str.1@PAGE
Lloh8:
	add	x6, x6, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x5, #0
	bl	_SYSCTL_ADD_NODE
	bl	_SYSCTL_CHILDREN
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x28, #0
	mov	x22, #0
Lloh9:
	adrp	x24, _bcm_gpio_func_proc@GOTPAGE
Lloh10:
	ldr	x24, [x24, _bcm_gpio_func_proc@GOTPAGEOFF]
Lloh11:
	adrp	x27, l_.str.6@PAGE
Lloh12:
	add	x27, x27, l_.str.6@PAGEOFF
Lloh13:
	adrp	x23, l_.str.5@PAGE
Lloh14:
	add	x23, x23, l_.str.5@PAGEOFF
Lloh15:
	adrp	x25, l_.str.4@PAGE
Lloh16:
	add	x25, x25, l_.str.4@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #29
	mov	w1, #3
Lloh17:
	adrp	x2, l_.str.2@PAGE
Lloh18:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x3, x22
	bl	_snprintf
	ldr	w2, [x26]
Lloh19:
	adrp	x8, _CTLFLAG_RD@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CTLFLAG_RD@GOTPAGEOFF]
Lloh21:
	ldr	w4, [x8]
	add	x3, sp, #29
	mov	x0, x20
	mov	x1, x21
	mov	x5, #0
Lloh22:
	adrp	x6, l_.str.3@PAGE
Lloh23:
	add	x6, x6, l_.str.3@PAGEOFF
	bl	_SYSCTL_ADD_NODE
	bl	_SYSCTL_CHILDREN
	mov	x1, x0
	ldp	x9, x8, [x19, #8]
	add	x5, x8, x28
	str	x19, [x5, #8]
	ldr	w8, [x9, x22, lsl #2]
	str	w8, [x5]
	ldr	w2, [x26]
Lloh24:
	adrp	x8, _CTLFLAG_RW@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CTLFLAG_RW@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _CTLTYPE_STRING@GOTPAGE
Lloh28:
	ldr	x9, [x9, _CTLTYPE_STRING@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w4, w9, w8
	ldr	w7, [x24]
	stp	x23, x27, [sp]
	mov	x0, x20
	mov	x3, x25
	mov	w6, #16
	bl	_SYSCTL_ADD_PROC
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x28, x28, #16
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
	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
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_OID_AUTO,4,2                   ; @OID_AUTO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pin"

	.comm	_CTLFLAG_RD,4,2                 ; @CTLFLAG_RD
l_.str.1:                               ; @.str.1
	.asciz	"GPIO Pins"

l_.str.2:                               ; @.str.2
	.asciz	"%d"

l_.str.3:                               ; @.str.3
	.asciz	"GPIO Pin"

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

	.comm	_CTLFLAG_RW,4,2                 ; @CTLFLAG_RW
	.comm	_CTLTYPE_STRING,4,2             ; @CTLTYPE_STRING
	.comm	_bcm_gpio_func_proc,4,2         ; @bcm_gpio_func_proc
l_.str.5:                               ; @.str.5
	.asciz	"A"

l_.str.6:                               ; @.str.6
	.asciz	"Pin Function"

	.no_dead_strip	_bcm_gpio_sysctl_init
.subsections_via_symbols
