	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alx_reset_osc
_alx_reset_osc:                         ## @alx_reset_osc
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_ALX_MISC3@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_alx_read_mem32
	movl	(%rbx), %esi
	movq	_ALX_MISC3_25M_BY_SW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_ALX_MISC3_25M_NOTO_INTNL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_alx_write_mem32
	movq	_ALX_MISC@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_alx_read_mem32
	movl	%eax, %r12d
	movq	_ALX_REV_B0@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	_ALX_MISC_INTNLOSC_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r12d
	movq	%r14, %rdi
	callq	_alx_is_rev_a
	movq	_ALX_MISC_ISO_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	xorl	%ebx, %ebx
	cmpq	$1, %rax
	sbbl	%ebx, %ebx
	orl	%ecx, %ebx
	andl	%r12d, %ebx
	movl	(%r13), %esi
	movq	_ALX_MISC_INTNLOSC_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%ebx, %edx
	movq	%r15, %rdi
	callq	_alx_write_mem32
	movl	(%r13), %esi
	jmp	LBB0_3
LBB0_1:
	movq	_ALX_MISC_PSW_OCP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ALX_MISC_PSW_OCP_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	callq	_ALX_SET_FIELD
	movq	_ALX_MISC_INTNLOSC_OPEN@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	notl	%ebx
	andl	%r12d, %ebx
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_alx_write_mem32
	movl	(%r13), %esi
	orl	(%r14), %ebx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_alx_write_mem32
	movq	_ALX_MSIC2@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_alx_read_mem32
	movq	_ALX_MSIC2_CALB_START@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_alx_write_mem32
	movl	(%r14), %esi
	orl	(%r12), %ebx
LBB0_3:
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_alx_write_mem32
	movl	$20, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ALX_MISC3,4,2                  ## @ALX_MISC3
	.comm	_ALX_MISC3_25M_BY_SW,4,2        ## @ALX_MISC3_25M_BY_SW
	.comm	_ALX_MISC3_25M_NOTO_INTNL,4,2   ## @ALX_MISC3_25M_NOTO_INTNL
	.comm	_ALX_MISC,4,2                   ## @ALX_MISC
	.comm	_ALX_REV_B0,8,3                 ## @ALX_REV_B0
	.comm	_ALX_MISC_PSW_OCP,4,2           ## @ALX_MISC_PSW_OCP
	.comm	_ALX_MISC_PSW_OCP_DEF,4,2       ## @ALX_MISC_PSW_OCP_DEF
	.comm	_ALX_MISC_INTNLOSC_OPEN,4,2     ## @ALX_MISC_INTNLOSC_OPEN
	.comm	_ALX_MSIC2,4,2                  ## @ALX_MSIC2
	.comm	_ALX_MSIC2_CALB_START,4,2       ## @ALX_MSIC2_CALB_START
	.comm	_ALX_MISC_ISO_EN,4,2            ## @ALX_MISC_ISO_EN
	.no_dead_strip	_alx_reset_osc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alx_reset_osc
_alx_reset_osc:                         ; @alx_reset_osc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _ALX_MISC3@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ALX_MISC3@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_alx_read_mem32
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _ALX_MISC3_25M_BY_SW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ALX_MISC3_25M_BY_SW@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh5:
	adrp	x9, _ALX_MISC3_25M_NOTO_INTNL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ALX_MISC3_25M_NOTO_INTNL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_alx_write_mem32
Lloh8:
	adrp	x22, _ALX_MISC@GOTPAGE
Lloh9:
	ldr	x22, [x22, _ALX_MISC@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_alx_read_mem32
	mov	x21, x0
Lloh10:
	adrp	x8, _ALX_REV_B0@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ALX_REV_B0@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x8, x20
	b.le	LBB0_2
; %bb.1:
Lloh13:
	adrp	x23, _ALX_MISC_INTNLOSC_OPEN@GOTPAGE
Lloh14:
	ldr	x23, [x23, _ALX_MISC_INTNLOSC_OPEN@GOTPAGEOFF]
	ldr	w8, [x23]
	bic	w21, w21, w8
	mov	x0, x20
	bl	_alx_is_rev_a
Lloh15:
	adrp	x8, _ALX_MISC_ISO_EN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ALX_MISC_ISO_EN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	x0, #0
	mov	w9, #-1
	csinv	w8, w9, w8, eq
	and	w20, w21, w8
	ldr	w1, [x22]
	ldr	w8, [x23]
	orr	w2, w20, w8
	mov	x0, x19
	bl	_alx_write_mem32
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	b	LBB0_3
LBB0_2:
Lloh18:
	adrp	x8, _ALX_MISC_PSW_OCP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ALX_MISC_PSW_OCP@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _ALX_MISC_PSW_OCP_DEF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ALX_MISC_PSW_OCP_DEF@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_ALX_SET_FIELD
Lloh24:
	adrp	x23, _ALX_MISC_INTNLOSC_OPEN@GOTPAGE
Lloh25:
	ldr	x23, [x23, _ALX_MISC_INTNLOSC_OPEN@GOTPAGEOFF]
	ldr	w8, [x23]
	bic	w20, w21, w8
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_alx_write_mem32
	ldr	w1, [x22]
	ldr	w8, [x23]
	orr	w2, w8, w20
	mov	x0, x19
	bl	_alx_write_mem32
Lloh26:
	adrp	x21, _ALX_MSIC2@GOTPAGE
Lloh27:
	ldr	x21, [x21, _ALX_MSIC2@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_alx_read_mem32
Lloh28:
	adrp	x22, _ALX_MSIC2_CALB_START@GOTPAGE
Lloh29:
	ldr	x22, [x22, _ALX_MSIC2_CALB_START@GOTPAGEOFF]
	ldr	w8, [x22]
	bic	w20, w0, w8
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_alx_write_mem32
	ldr	w1, [x21]
	ldr	w8, [x22]
	orr	w2, w8, w20
	mov	x0, x19
LBB0_3:
	bl	_alx_write_mem32
	mov	w0, #20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_udelay
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ALX_MISC3,4,2                  ; @ALX_MISC3
	.comm	_ALX_MISC3_25M_BY_SW,4,2        ; @ALX_MISC3_25M_BY_SW
	.comm	_ALX_MISC3_25M_NOTO_INTNL,4,2   ; @ALX_MISC3_25M_NOTO_INTNL
	.comm	_ALX_MISC,4,2                   ; @ALX_MISC
	.comm	_ALX_REV_B0,8,3                 ; @ALX_REV_B0
	.comm	_ALX_MISC_PSW_OCP,4,2           ; @ALX_MISC_PSW_OCP
	.comm	_ALX_MISC_PSW_OCP_DEF,4,2       ; @ALX_MISC_PSW_OCP_DEF
	.comm	_ALX_MISC_INTNLOSC_OPEN,4,2     ; @ALX_MISC_INTNLOSC_OPEN
	.comm	_ALX_MSIC2,4,2                  ; @ALX_MSIC2
	.comm	_ALX_MSIC2_CALB_START,4,2       ; @ALX_MSIC2_CALB_START
	.comm	_ALX_MISC_ISO_EN,4,2            ; @ALX_MISC_ISO_EN
	.no_dead_strip	_alx_reset_osc
.subsections_via_symbols
