	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx6_anatop_attach
_imx6_anatop_attach:                    ## @imx6_anatop_attach
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	callq	_device_get_softc
	movq	%rax, %r14
	movl	%ebx, 8(%rax)
	movq	_imx6_anatop_spec@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_bus_alloc_resources
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.2:
	movl	(%r12), %esi
	movl	(%r14), %edx
	movl	%ebx, %edi
	callq	_bus_release_resources
	jmp	LBB0_5
LBB0_3:
	movq	_intr_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	16(%r14), %rdi
	movl	%eax, 24(%r14)
	movq	%r14, 16(%r14)
	callq	_config_intrhook_establish
	movl	8(%r14), %edi
	callq	_device_get_sysctl_ctx
	movl	%eax, %ebx
	movl	8(%r14), %edi
	callq	_device_get_sysctl_tree
	movl	%eax, %edi
	callq	_SYSCTL_CHILDREN
	movq	_OID_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_CTLFLAG_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r14, %r9
	addq	$4, %r9
	leaq	L_.str.2(%rip), %r10
	leaq	L_.str.1(%rip), %rcx
	movl	%ebx, %edi
	movl	%eax, %esi
	pushq	%r10
	pushq	$0
	callq	_SYSCTL_ADD_UINT
	addq	$16, %rsp
	movq	_imx6_anatop_sc@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	movq	_IMX6_ANALOG_PMU_MISC0_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IMX6_ANALOG_PMU_MISC0_SELFBIASOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_imx6_anatop_write_4
LBB0_4:
	xorl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_imx6_anatop_spec,4,2           ## @imx6_anatop_spec
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot allocate resources\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_intr_setup,4,2                 ## @intr_setup
	.comm	_OID_AUTO,4,2                   ## @OID_AUTO
L_.str.1:                               ## @.str.1
	.asciz	"cpu_voltage"

	.comm	_CTLFLAG_RD,4,2                 ## @CTLFLAG_RD
L_.str.2:                               ## @.str.2
	.asciz	"Current CPU voltage in millivolts"

	.comm	_imx6_anatop_sc,8,3             ## @imx6_anatop_sc
	.comm	_IMX6_ANALOG_PMU_MISC0_SET,4,2  ## @IMX6_ANALOG_PMU_MISC0_SET
	.comm	_IMX6_ANALOG_PMU_MISC0_SELFBIASOFF,4,2 ## @IMX6_ANALOG_PMU_MISC0_SELFBIASOFF
	.no_dead_strip	_imx6_anatop_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx6_anatop_attach
_imx6_anatop_attach:                    ; @imx6_anatop_attach
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	bl	_device_get_softc
	mov	x19, x0
	str	w20, [x0, #8]
Lloh0:
	adrp	x22, _imx6_anatop_spec@GOTPAGE
Lloh1:
	ldr	x22, [x22, _imx6_anatop_spec@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w2, [x0]
	mov	x0, x20
	bl	_bus_alloc_resources
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_device_printf
Lloh4:
	adrp	x8, _ENXIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
	cbz	w21, LBB0_4
; %bb.2:
	ldr	w1, [x22]
	ldr	w2, [x19]
	mov	x0, x20
	bl	_bus_release_resources
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _intr_setup@GOTPAGE
Lloh8:
	ldr	x8, [x8, _intr_setup@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	add	x0, x19, #16
	str	w8, [x19, #24]
	str	x19, [x19, #16]
	bl	_config_intrhook_establish
	ldr	w0, [x19, #8]
	bl	_device_get_sysctl_ctx
	mov	x20, x0
	ldr	w0, [x19, #8]
	bl	_device_get_sysctl_tree
	bl	_SYSCTL_CHILDREN
	mov	x1, x0
Lloh10:
	adrp	x8, _OID_AUTO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OID_AUTO@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x8, _CTLFLAG_RD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CTLFLAG_RD@GOTPAGEOFF]
Lloh15:
	ldr	w4, [x8]
	add	x5, x19, #4
Lloh16:
	adrp	x3, l_.str.1@PAGE
Lloh17:
	add	x3, x3, l_.str.1@PAGEOFF
Lloh18:
	adrp	x7, l_.str.2@PAGE
Lloh19:
	add	x7, x7, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w6, #0
	bl	_SYSCTL_ADD_UINT
Lloh20:
	adrp	x8, _imx6_anatop_sc@GOTPAGE
Lloh21:
	ldr	x8, [x8, _imx6_anatop_sc@GOTPAGEOFF]
Lloh22:
	str	x19, [x8]
Lloh23:
	adrp	x8, _IMX6_ANALOG_PMU_MISC0_SET@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IMX6_ANALOG_PMU_MISC0_SET@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _IMX6_ANALOG_PMU_MISC0_SELFBIASOFF@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IMX6_ANALOG_PMU_MISC0_SELFBIASOFF@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_imx6_anatop_write_4
	mov	w21, #0
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_imx6_anatop_spec,4,2           ; @imx6_anatop_spec
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot allocate resources\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_intr_setup,4,2                 ; @intr_setup
	.comm	_OID_AUTO,4,2                   ; @OID_AUTO
l_.str.1:                               ; @.str.1
	.asciz	"cpu_voltage"

	.comm	_CTLFLAG_RD,4,2                 ; @CTLFLAG_RD
l_.str.2:                               ; @.str.2
	.asciz	"Current CPU voltage in millivolts"

	.comm	_imx6_anatop_sc,8,3             ; @imx6_anatop_sc
	.comm	_IMX6_ANALOG_PMU_MISC0_SET,4,2  ; @IMX6_ANALOG_PMU_MISC0_SET
	.comm	_IMX6_ANALOG_PMU_MISC0_SELFBIASOFF,4,2 ; @IMX6_ANALOG_PMU_MISC0_SELFBIASOFF
	.no_dead_strip	_imx6_anatop_attach
.subsections_via_symbols
