	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function anadig_attach
_anadig_attach:                         ## @anadig_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, %r15
	movq	_anadig_spec@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rdx
	movl	%ebx, %edi
	callq	_bus_alloc_resources
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_3
LBB0_2:
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_rman_get_bustag
	movl	%eax, 12(%r15)
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_rman_get_bushandle
	movl	%eax, 8(%r15)
	movq	_anadig_sc@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	movq	_ANADIG_PLL3_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_enable_pll
	movq	_ANADIG_PLL7_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_enable_pll
	movq	_ANADIG_PLL1_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_enable_pll
	movq	_ANADIG_PLL2_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_enable_pll
	movq	_ANADIG_PLL4_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_enable_pll
	movq	_ANADIG_PLL5_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_enable_pll
	movq	_ANADIG_PLL6_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_enable_pll
	movq	_ANADIG_REG_3P0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_READ4
	movq	_ENABLE_LINREG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_WRITE4
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_USB_MISC
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_READ4
	movl	%eax, %ebx
	movq	_EN_CLK_TO_UTMI@GOTPCREL(%rip), %r12
	orl	(%r12), %ebx
	xorl	%edi, %edi
	callq	_USB_MISC
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_WRITE4
	movl	$1, %edi
	callq	_USB_MISC
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_READ4
	movl	%eax, %ebx
	orl	(%r12), %ebx
	movl	$1, %edi
	callq	_USB_MISC
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_WRITE4
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_anadig_spec,4,2                ## @anadig_spec
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not allocate resources\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_anadig_sc,8,3                  ## @anadig_sc
	.comm	_ANADIG_PLL3_CTRL,4,2           ## @ANADIG_PLL3_CTRL
	.comm	_ANADIG_PLL7_CTRL,4,2           ## @ANADIG_PLL7_CTRL
	.comm	_ANADIG_PLL1_CTRL,4,2           ## @ANADIG_PLL1_CTRL
	.comm	_ANADIG_PLL2_CTRL,4,2           ## @ANADIG_PLL2_CTRL
	.comm	_ANADIG_PLL4_CTRL,4,2           ## @ANADIG_PLL4_CTRL
	.comm	_ANADIG_PLL5_CTRL,4,2           ## @ANADIG_PLL5_CTRL
	.comm	_ANADIG_PLL6_CTRL,4,2           ## @ANADIG_PLL6_CTRL
	.comm	_ANADIG_REG_3P0,4,2             ## @ANADIG_REG_3P0
	.comm	_ENABLE_LINREG,4,2              ## @ENABLE_LINREG
	.comm	_EN_CLK_TO_UTMI,4,2             ## @EN_CLK_TO_UTMI
	.no_dead_strip	_anadig_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function anadig_attach
_anadig_attach:                         ; @anadig_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
Lloh0:
	adrp	x8, _anadig_spec@GOTPAGE
Lloh1:
	ldr	x8, [x8, _anadig_spec@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x2, [x0]
	mov	x0, x20
	bl	_bus_alloc_resources
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_device_printf
Lloh5:
	adrp	x8, _ENXIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_rman_get_bustag
	str	w0, [x19, #12]
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_rman_get_bushandle
	str	w0, [x19, #8]
Lloh8:
	adrp	x8, _anadig_sc@GOTPAGE
Lloh9:
	ldr	x8, [x8, _anadig_sc@GOTPAGEOFF]
Lloh10:
	str	x19, [x8]
Lloh11:
	adrp	x8, _ANADIG_PLL3_CTRL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ANADIG_PLL3_CTRL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_enable_pll
Lloh14:
	adrp	x8, _ANADIG_PLL7_CTRL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ANADIG_PLL7_CTRL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_enable_pll
Lloh17:
	adrp	x8, _ANADIG_PLL1_CTRL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ANADIG_PLL1_CTRL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_enable_pll
Lloh20:
	adrp	x8, _ANADIG_PLL2_CTRL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ANADIG_PLL2_CTRL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_enable_pll
Lloh23:
	adrp	x8, _ANADIG_PLL4_CTRL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ANADIG_PLL4_CTRL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_enable_pll
Lloh26:
	adrp	x8, _ANADIG_PLL5_CTRL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ANADIG_PLL5_CTRL@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_enable_pll
Lloh29:
	adrp	x8, _ANADIG_PLL6_CTRL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ANADIG_PLL6_CTRL@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_enable_pll
Lloh32:
	adrp	x20, _ANADIG_REG_3P0@GOTPAGE
Lloh33:
	ldr	x20, [x20, _ANADIG_REG_3P0@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_READ4
Lloh34:
	adrp	x8, _ENABLE_LINREG@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENABLE_LINREG@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x20]
	mov	x0, x19
	bl	_WRITE4
	mov	w0, #0
	bl	_USB_MISC
	mov	x1, x0
	mov	x0, x19
	bl	_READ4
Lloh37:
	adrp	x21, _EN_CLK_TO_UTMI@GOTPAGE
Lloh38:
	ldr	x21, [x21, _EN_CLK_TO_UTMI@GOTPAGEOFF]
	ldr	w8, [x21]
	orr	w20, w8, w0
	mov	w0, #0
	bl	_USB_MISC
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_WRITE4
	mov	w0, #1
	bl	_USB_MISC
	mov	x1, x0
	mov	x0, x19
	bl	_READ4
	ldr	w8, [x21]
	orr	w20, w8, w0
	mov	w0, #1
	bl	_USB_MISC
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_WRITE4
	mov	w0, #0
LBB0_3:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_anadig_spec,4,2                ; @anadig_spec
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not allocate resources\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_anadig_sc,8,3                  ; @anadig_sc
	.comm	_ANADIG_PLL3_CTRL,4,2           ; @ANADIG_PLL3_CTRL
	.comm	_ANADIG_PLL7_CTRL,4,2           ; @ANADIG_PLL7_CTRL
	.comm	_ANADIG_PLL1_CTRL,4,2           ; @ANADIG_PLL1_CTRL
	.comm	_ANADIG_PLL2_CTRL,4,2           ; @ANADIG_PLL2_CTRL
	.comm	_ANADIG_PLL4_CTRL,4,2           ; @ANADIG_PLL4_CTRL
	.comm	_ANADIG_PLL5_CTRL,4,2           ; @ANADIG_PLL5_CTRL
	.comm	_ANADIG_PLL6_CTRL,4,2           ; @ANADIG_PLL6_CTRL
	.comm	_ANADIG_REG_3P0,4,2             ; @ANADIG_REG_3P0
	.comm	_ENABLE_LINREG,4,2              ; @ENABLE_LINREG
	.comm	_EN_CLK_TO_UTMI,4,2             ; @EN_CLK_TO_UTMI
	.no_dead_strip	_anadig_attach
.subsections_via_symbols
