	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92s_set_sysclk
__rtl92s_set_sysclk:                    ## @_rtl92s_set_sysclk
	.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
	movl	%esi, %r15d
	callq	_rtl_priv
	movq	%rax, %r14
	movq	_SYS_CLKR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	incq	%rsi
	movq	%rax, %rdi
	movl	%r15d, %edx
	callq	_rtl_write_byte
	movl	$400, %edi                      ## imm = 0x190
	callq	_udelay
	movq	(%rbx), %rsi
	incq	%rsi
	movq	%r14, %rdi
	callq	_rtl_read_byte
	movl	%eax, %r12d
	movl	$7, %edi
	callq	_BIT
	movl	%eax, %ebx
	andl	%r12d, %ebx
	movl	$7, %edi
	callq	_BIT
	andl	%r15d, %eax
	cmpl	%eax, %ebx
	sete	%r13b
	movl	$6, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$7, %edi
	callq	_BIT
	orl	%ebx, %eax
	testl	%r15d, %eax
	jne	LBB0_7
## %bb.1:
	movq	_SYS_CLKR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	%r14, %rdi
	callq	_rtl_read_byte
	movl	%eax, %r12d
	movl	$6, %edi
	callq	_BIT
	movb	$1, %r13b
	testl	%r12d, %eax
	jne	LBB0_7
## %bb.2:
	movl	$-99, %ebx
	leaq	L_.str(%rip), %r15
	movq	_SYS_CLKR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_pr_err
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$10, %edi
	callq	_udelay
	movq	(%r13), %rsi
	incq	%rsi
	movq	%r14, %rdi
	callq	_rtl_read_byte
	movl	%eax, %r12d
	movl	$6, %edi
	callq	_BIT
	incl	%ebx
	testl	%r12d, %eax
	je	LBB0_3
## %bb.6:
	testl	%ebx, %ebx
	setne	%r13b
	jmp	LBB0_7
LBB0_4:
	xorl	%r13d, %r13d
LBB0_7:
	movzbl	%r13b, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_CLKR,8,3                   ## @SYS_CLKR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wait for BIT(6) return value %x\n"

	.no_dead_strip	__rtl92s_set_sysclk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92s_set_sysclk
__rtl92s_set_sysclk:                    ; @_rtl92s_set_sysclk
	.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	x21, x1
	bl	_rtl_priv
	mov	x19, x0
Lloh0:
	adrp	x23, _SYS_CLKR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SYS_CLKR@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x1, x8, #1
	mov	x2, x21
	bl	_rtl_write_byte
	mov	w0, #400
	bl	_udelay
	ldr	x8, [x23]
	add	x1, x8, #1
	mov	x0, x19
	bl	_rtl_read_byte
	mov	x20, x0
	mov	w0, #7
	bl	_BIT
	and	w20, w0, w20
	mov	w0, #7
	bl	_BIT
	and	w8, w0, w21
	cmp	w20, w8
	cset	w20, eq
	mov	w0, #6
	bl	_BIT
	mov	x22, x0
	mov	w0, #7
	bl	_BIT
	orr	w8, w0, w22
	tst	w8, w21
	b.ne	LBB0_8
; %bb.1:
	ldr	x8, [x23]
	add	x1, x8, #1
	mov	x0, x19
	bl	_rtl_read_byte
	mov	x21, x0
	mov	w0, #6
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_3
; %bb.2:
	mov	w20, #1
	b	LBB0_8
LBB0_3:
	mov	w22, #-99
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_pr_err
	cbz	w22, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x23]
	add	x1, x8, #1
	mov	x0, x19
	bl	_rtl_read_byte
	mov	x21, x0
	mov	w0, #6
	bl	_BIT
	add	w22, w22, #1
	tst	w0, w21
	b.eq	LBB0_4
; %bb.6:
	cmp	w22, #0
	cset	w20, ne
	b	LBB0_8
LBB0_7:
	mov	w20, #0
LBB0_8:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_CLKR,8,3                   ; @SYS_CLKR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wait for BIT(6) return value %x\n"

	.no_dead_strip	__rtl92s_set_sysclk
.subsections_via_symbols
